Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1LabelLocation
- 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 location.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Confidence that the label is accurate.
-
#level ⇒ String
Label level.
-
#segment ⇒ Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment
Video segment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelLocation
constructor
A new instance of GoogleCloudVideointelligenceV1beta1LabelLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1LabelLocation
Returns a new instance of GoogleCloudVideointelligenceV1beta1LabelLocation
561 562 563 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 561 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Confidence that the label is accurate. Range: [0, 1].
Corresponds to the JSON property confidence
549 550 551 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 549 def confidence @confidence end |
#level ⇒ String
Label level.
Corresponds to the JSON property level
554 555 556 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 554 def level @level end |
#segment ⇒ Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
559 560 561 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 559 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
566 567 568 569 570 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 566 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @level = args[:level] if args.key?(:level) @segment = args[:segment] if args.key?(:segment) end |