class Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageContext
Image context and/or feature-specific parameters.
Attributes
Parameters for crop hints annotation request. Corresponds to the JSON property `cropHintsParams` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1CropHintsParams]
List of languages to use for TEXT_DETECTION. In most cases, an empty value yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting `language_hints` is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong). Text detection returns an error if one or more of the specified languages is not one of the [supported languages](cloud. google.com/vision/docs/languages). Corresponds to the JSON property `languageHints` @return [Array<String>]
Rectangle determined by min and max `LatLng` pairs. Corresponds to the JSON property `latLongRect` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1LatLongRect]
Parameters for a product search request. Corresponds to the JSON property `productSearchParams` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ProductSearchParams]
Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features. Corresponds to the JSON property `textDetectionParams` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1TextDetectionParams]
Parameters for web detection request. Corresponds to the JSON property `webDetectionParams` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1WebDetectionParams]
Public Class Methods
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 3712 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1p2beta1/classes.rb, line 3717 def update!(**args) @crop_hints_params = args[:crop_hints_params] if args.key?(:crop_hints_params) @language_hints = args[:language_hints] if args.key?(:language_hints) @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect) @product_search_params = args[:product_search_params] if args.key?(:product_search_params) @text_detection_params = args[:text_detection_params] if args.key?(:text_detection_params) @web_detection_params = args[:web_detection_params] if args.key?(:web_detection_params) end