Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p3beta1/classes.rb,
lib/google/apis/videointelligence_v1p3beta1/representations.rb,
lib/google/apis/videointelligence_v1p3beta1/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::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1Entity
Detected entity from video analysis.
-
#frames ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>
Information corresponding to all frames where this object track appears.
-
#segment ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment
Video segment.
-
#track_id ⇒ Fixnum
Streaming mode ONLY.
-
#version ⇒ String
Feature version.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
constructor
A new instance of GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation
Returns a new instance of GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.
2875 2876 2877 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2875 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
2841 2842 2843 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2841 def confidence @confidence end |
#entity ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1Entity
Detected entity from video analysis.
Corresponds to the JSON property entity
2846 2847 2848 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2846 def entity @entity end |
#frames ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>
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
2854 2855 2856 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2854 def frames @frames end |
#segment ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
2859 2860 2861 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2859 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
2868 2869 2870 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2868 def track_id @track_id end |
#version ⇒ String
Feature version.
Corresponds to the JSON property version
2873 2874 2875 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2873 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2880 2881 2882 2883 2884 2885 2886 2887 |
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 2880 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 |