Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1/classes.rb,
generated/google/apis/videointelligence_v1/representations.rb,
generated/google/apis/videointelligence_v1/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::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Entity
Detected entity from video analysis.
-
#frames ⇒ Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
-
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment
Video segment.
-
#track_id ⇒ Fixnum
Streaming mode ONLY.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation.
4227 4228 4229 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4227 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
4197 4198 4199 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4197 def confidence @confidence end |
#entity ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Entity
Detected entity from video analysis.
Corresponds to the JSON property entity
4202 4203 4204 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4202 def entity @entity end |
#frames ⇒ Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
messages in frames.
Streaming mode: it can only be one ObjectTrackingFrame message in frames.
Corresponds to the JSON property frames
4210 4211 4212 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4210 def frames @frames end |
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
4215 4216 4217 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4215 def segment @segment end |
#track_id ⇒ Fixnum
Streaming mode ONLY.
In streaming mode, we do not know the end time of a tracked object
before it is completed. Hence, there is no VideoSegment info returned.
Instead, we provide a unique identifiable integer track_id so that
the customers can correlate the results of the ongoing
ObjectTrackAnnotation of the same track_id over time.
Corresponds to the JSON property trackId
4225 4226 4227 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4225 def track_id @track_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4232 4233 4234 4235 4236 4237 4238 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 4232 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) @track_id = args[:track_id] if args.key?(:track_id) end |