Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelLocation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1LabelLocation
- 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::GoogleCloudVideointelligenceV1VideoSegment
Video segment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1LabelLocation
constructor
A new instance of GoogleCloudVideointelligenceV1LabelLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1LabelLocation
Returns a new instance of GoogleCloudVideointelligenceV1LabelLocation
117 118 119 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 117 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
105 106 107 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 105 def confidence @confidence end |
#level ⇒ String
Label level.
Corresponds to the JSON property level
110 111 112 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 110 def level @level end |
#segment ⇒ Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment
Video segment.
Corresponds to the JSON property segment
115 116 117 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 115 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
122 123 124 125 126 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 122 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 |