class Google::Apis::VisionV1::ImageContext

Image context and/or feature-specific parameters.

Attributes

crop_hints_params[RW]

Parameters for crop hints annotation request. Corresponds to the JSON property `cropHintsParams` @return [Google::Apis::VisionV1::CropHintsParams]

language_hints[RW]

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>]

lat_long_rect[RW]

Rectangle determined by min and max `LatLng` pairs. Corresponds to the JSON property `latLongRect` @return [Google::Apis::VisionV1::LatLongRect]

product_search_params[RW]

Parameters for a product search request. Corresponds to the JSON property `productSearchParams` @return [Google::Apis::VisionV1::ProductSearchParams]

text_detection_params[RW]

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::VisionV1::TextDetectionParams]

web_detection_params[RW]

Parameters for web detection request. Corresponds to the JSON property `webDetectionParams` @return [Google::Apis::VisionV1::WebDetectionParams]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 8570
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/vision_v1/classes.rb, line 8575
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