Reference documentation and code samples for the Cloud Vision V1 Client class TextDetectionParams.
Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
Generated from protobuf message google.cloud.vision.v1.TextDetectionParams
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enable_text_detection_confidence_score |
bool
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well. |
↳ advanced_ocr_options |
array
A list of advanced OCR options to fine-tune OCR behavior. |
getEnableTextDetectionConfidenceScore
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well.
Returns | |
---|---|
Type | Description |
bool |
setEnableTextDetectionConfidenceScore
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getAdvancedOcrOptions
A list of advanced OCR options to fine-tune OCR behavior.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setAdvancedOcrOptions
A list of advanced OCR options to fine-tune OCR behavior.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |