Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
- 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::GoogleCloudVideointelligenceV1beta2Entity
Detected entity from video analysis.
-
#frames ⇒ Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
-
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment
Video segment.
-
#track_id ⇒ Fixnum
Streaming mode ONLY.
-
#version ⇒ String
Feature version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation.
2204 2205 2206 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2204 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
2170 2171 2172 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2170 def confidence @confidence end |
#entity ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2Entity
Detected entity from video analysis.
Corresponds to the JSON property entity
2175 2176 2177 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2175 def entity @entity end |
#frames ⇒ Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame>
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
2183 2184 2185 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2183 def frames @frames end |
#segment ⇒ Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2VideoSegment
Video segment.
Corresponds to the JSON property segment
2188 2189 2190 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2188 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
2197 2198 2199 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2197 def track_id @track_id end |
#version ⇒ String
Feature version.
Corresponds to the JSON property version
2202 2203 2204 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2202 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2209 2210 2211 2212 2213 2214 2215 2216 |
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2209 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) @version = args[:version] if args.key?(:version) end |