Class: Google::Apis::VisionV1p1beta1::GoogleCloudVisionV1p1beta1TextDetectionParams

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vision_v1p1beta1/classes.rb,
lib/google/apis/vision_v1p1beta1/representations.rb,
lib/google/apis/vision_v1p1beta1/representations.rb

Overview

Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVisionV1p1beta1TextDetectionParams

Returns a new instance of GoogleCloudVisionV1p1beta1TextDetectionParams.



2909
2910
2911
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 2909

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_text_detection_confidence_scoreBoolean 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

Returns:

  • (Boolean)


2906
2907
2908
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 2906

def enable_text_detection_confidence_score
  @enable_text_detection_confidence_score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2914
2915
2916
# File 'lib/google/apis/vision_v1p1beta1/classes.rb', line 2914

def update!(**args)
  @enable_text_detection_confidence_score = args[:enable_text_detection_confidence_score] if args.key?(:enable_text_detection_confidence_score)
end