Class: Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p1beta1/classes.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb,
generated/google/apis/videointelligence_v1p1beta1/representations.rb
Overview
Annotations corresponding to one tracked object.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
Object category's labeling confidence of this track.
-
#entity ⇒ Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity
Detected entity from video analysis.
-
#frames ⇒ Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
-
#segment ⇒ Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment
Video segment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation
2208 2209 2210 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2208 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
Object category's labeling confidence of this track.
Corresponds to the JSON property confidence
2191 2192 2193 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2191 def confidence @confidence end |
#entity ⇒ Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity
Detected entity from video analysis.
Corresponds to the JSON property entity
2196 2197 2198 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2196 def entity @entity end |
#frames ⇒ Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
Corresponds to the JSON property frames
2201 2202 2203 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2201 def frames @frames end |
#segment ⇒ Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
2206 2207 2208 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2206 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2213 2214 2215 2216 2217 2218 |
# File 'generated/google/apis/videointelligence_v1p1beta1/classes.rb', line 2213 def update!(**args) @confidence = args[:confidence] if args.key?(:confidence) @entity = args[:entity] if args.key?(:entity) @frames = args[:frames] if args.key?(:frames) @segment = args[:segment] if args.key?(:segment) end |