Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1Track
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1Track
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p2beta1/classes.rb,
lib/google/apis/videointelligence_v1p2beta1/representations.rb,
lib/google/apis/videointelligence_v1p2beta1/representations.rb
Overview
A track of an object instance.
Instance Attribute Summary collapse
-
#attributes ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>
Optional.
-
#confidence ⇒ Float
Optional.
-
#segment ⇒ Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment
Video segment.
-
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1TimestampedObject>
The object with timestamp and attributes per frame in the track.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1Track
constructor
A new instance of GoogleCloudVideointelligenceV1p1beta1Track.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1Track
Returns a new instance of GoogleCloudVideointelligenceV1p1beta1Track.
3172 3173 3174 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3172 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>
Optional. Attributes in the track level.
Corresponds to the JSON property attributes
3155 3156 3157 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3155 def attributes @attributes end |
#confidence ⇒ Float
Optional. The confidence score of the tracked object.
Corresponds to the JSON property confidence
3160 3161 3162 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3160 def confidence @confidence end |
#segment ⇒ Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
3165 3166 3167 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3165 def segment @segment end |
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p1beta1TimestampedObject>
The object with timestamp and attributes per frame in the track.
Corresponds to the JSON property timestampedObjects
3170 3171 3172 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3170 def @timestamped_objects end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3177 3178 3179 3180 3181 3182 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 3177 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @confidence = args[:confidence] if args.key?(:confidence) @segment = args[:segment] if args.key?(:segment) @timestamped_objects = args[:timestamped_objects] if args.key?(:timestamped_objects) end |