Cloud Vision V1p3beta1 API - Class Google::Cloud::Vision::V1p3beta1::LocalizedObjectAnnotation (v0.10.1)

Reference documentation and code samples for the Cloud Vision V1p3beta1 API class Google::Cloud::Vision::V1p3beta1::LocalizedObjectAnnotation.

Set of detected objects with bounding boxes.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#bounding_poly

def bounding_poly() -> ::Google::Cloud::Vision::V1p3beta1::BoundingPoly
Returns

#bounding_poly=

def bounding_poly=(value) -> ::Google::Cloud::Vision::V1p3beta1::BoundingPoly
Parameter
Returns

#language_code

def language_code() -> ::String
Returns
  • (::String) — The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

#language_code=

def language_code=(value) -> ::String
Parameter
  • value (::String) — The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
Returns
  • (::String) — The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.

#mid

def mid() -> ::String
Returns
  • (::String) — Object ID that should align with EntityAnnotation mid.

#mid=

def mid=(value) -> ::String
Parameter
  • value (::String) — Object ID that should align with EntityAnnotation mid.
Returns
  • (::String) — Object ID that should align with EntityAnnotation mid.

#name

def name() -> ::String
Returns
  • (::String) — Object name, expressed in its language_code language.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Object name, expressed in its language_code language.
Returns
  • (::String) — Object name, expressed in its language_code language.

#score

def score() -> ::Float
Returns
  • (::Float) — Score of the result. Range [0, 1].

#score=

def score=(value) -> ::Float
Parameter
  • value (::Float) — Score of the result. Range [0, 1].
Returns
  • (::Float) — Score of the result. Range [0, 1].