class Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation

Prediction for what the object in the bounding box is.

Attributes

language_code[RW]

The BCP-47 language code, such as “en-US” or “sr-Latn”. For more information, see www.unicode.org/reports/tr35/#Unicode_locale_identifier. Corresponds to the JSON property `languageCode` @return [String]

mid[RW]

Object ID that should align with EntityAnnotation mid. Corresponds to the JSON property `mid` @return [String]

name[RW]

Object name, expressed in its `language_code` language. Corresponds to the JSON property `name` @return [String]

score[RW]

Score of the result. Range [0, 1]. Corresponds to the JSON property `score` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/vision_v1/classes.rb, line 7882
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 7887
def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @mid = args[:mid] if args.key?(:mid)
  @name = args[:name] if args.key?(:name)
  @score = args[:score] if args.key?(:score)
end