Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1p2beta1/classes.rb,
lib/google/apis/vision_v1p2beta1/representations.rb,
lib/google/apis/vision_v1p2beta1/representations.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 fine-tune OCR behavior.
-
#enable_text_detection_confidence_score ⇒ Boolean
(also: #enable_text_detection_confidence_score?)
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1TextDetectionParams
constructor
A new instance of GoogleCloudVisionV1p2beta1TextDetectionParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1TextDetectionParams
Returns a new instance of GoogleCloudVisionV1p2beta1TextDetectionParams.
4634 4635 4636 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 4634 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advanced_ocr_options ⇒ Array<String>
A list of advanced OCR options to fine-tune OCR behavior.
Corresponds to the JSON property advancedOcrOptions
4624 4625 4626 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 4624 def @advanced_ocr_options end |
#enable_text_detection_confidence_score ⇒ Boolean Also known as: enable_text_detection_confidence_score?
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.
Corresponds to the JSON property enableTextDetectionConfidenceScore
4631 4632 4633 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 4631 def enable_text_detection_confidence_score @enable_text_detection_confidence_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4639 4640 4641 4642 |
# File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 4639 def update!(**args) @advanced_ocr_options = args[:advanced_ocr_options] if args.key?(:advanced_ocr_options) @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score) end |