class Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation

Set of detected objects with bounding boxes.

Attributes

bounding_poly[RW]

A bounding polygon for the detected image annotation. Corresponds to the JSON property `boundingPoly` @return [Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p1beta1BoundingPoly]

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_v1p2beta1/classes.rb, line 1674
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_v1p2beta1/classes.rb, line 1679
def update!(**args)
  @bounding_poly = args[:bounding_poly] if args.key?(:bounding_poly)
  @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