Class: Google::Cloud::Vision::V1::TextDetectionParams
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::V1::TextDetectionParams
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/vision/v1/image_annotator.rb
Overview
Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
Instance Attribute Summary collapse
-
#advanced_ocr_options ⇒ ::Array<::String>
A list of advanced OCR options to further fine-tune OCR behavior.
-
#enable_text_detection_confidence_score ⇒ ::Boolean
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result.
Instance Attribute Details
#advanced_ocr_options ⇒ ::Array<::String>
Returns A list of advanced OCR options to further fine-tune OCR behavior. Current valid values are:
legacy_layout
: a heuristics layout detection algorithm, which serves as an alternative to the current ML-based layout detection algorithm. Customers can choose the best suitable layout algorithm based on their situation.
583 584 585 586 |
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 583 class TextDetectionParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#enable_text_detection_confidence_score ⇒ ::Boolean
Returns 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.
583 584 585 586 |
# File 'proto_docs/google/cloud/vision/v1/image_annotator.rb', line 583 class TextDetectionParams include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |