class Google::Apis::VisionV1::ImageContext
Image
context.
Attributes
List of languages to use for TEXT_DETECTION. In most cases, an empty value will yield the best results as it will allow text detection to automatically detect the text language. For languages based on the latin alphabet a hint is not needed. In rare cases, when the language of the text in the image is known in advance, setting this hint will help get better results (although it will hurt a great deal if the hint is wrong). Text detection will return an error if one or more of the languages specified here are not supported. The exact list of supported languages are specified here: cloud.google.com/translate/v2/using_rest#language-params 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::VisionV1::LatLongRect]
Public Class Methods
# File lib/google/apis/vision_v1/classes.rb, line 684 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/vision_v1/classes.rb, line 689 def update!(**args) @language_hints = args[:language_hints] if args.key?(:language_hints) @lat_long_rect = args[:lat_long_rect] if args.key?(:lat_long_rect) end