Class: Google::Apis::VisionV1::TextDetectionParams
- Inherits:
-
Object
- Object
- Google::Apis::VisionV1::TextDetectionParams
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vision_v1/classes.rb,
lib/google/apis/vision_v1/representations.rb,
lib/google/apis/vision_v1/representations.rb
Overview
Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.
Instance Attribute Summary collapse
-
#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) ⇒ TextDetectionParams
constructor
A new instance of TextDetectionParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextDetectionParams
Returns a new instance of TextDetectionParams.
9954 9955 9956 |
# File 'lib/google/apis/vision_v1/classes.rb', line 9954 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
9951 9952 9953 |
# File 'lib/google/apis/vision_v1/classes.rb', line 9951 def enable_text_detection_confidence_score @enable_text_detection_confidence_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9959 9960 9961 |
# File 'lib/google/apis/vision_v1/classes.rb', line 9959 def update!(**args) @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score) end |