Cloud Vision V1p4beta1 API - Class Google::Cloud::Vision::V1p4beta1::ProductSearchResults::ObjectAnnotation (v0.4.0)

Reference documentation and code samples for the Cloud Vision V1p4beta1 API class Google::Cloud::Vision::V1p4beta1::ProductSearchResults::ObjectAnnotation.

Prediction for what the object in the bounding box is.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

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