Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta1/classes.rb,
generated/google/apis/videointelligence_v1beta1/representations.rb,
generated/google/apis/videointelligence_v1beta1/representations.rb
Overview
Label annotation.
Instance Attribute Summary collapse
-
#description ⇒ String
Textual description, e.g.
-
#language_code ⇒ String
Language code for
description
in BCP-47 format. -
#locations ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation>
Where the label was detected and with what confidence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1beta1LabelAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1beta1LabelAnnotation
432 433 434 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
Textual description, e.g. Fixed-gear bicycle
.
Corresponds to the JSON property description
420 421 422 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 420 def description @description end |
#language_code ⇒ String
Language code for description
in BCP-47 format.
Corresponds to the JSON property languageCode
425 426 427 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 425 def language_code @language_code end |
#locations ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation>
Where the label was detected and with what confidence.
Corresponds to the JSON property locations
430 431 432 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 430 def locations @locations end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
437 438 439 440 441 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 437 def update!(**args) @description = args[:description] if args.key?(:description) @language_code = args[:language_code] if args.key?(:language_code) @locations = args[:locations] if args.key?(:locations) end |