Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1Track
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1p3beta1/classes.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb,
generated/google/apis/videointelligence_v1p3beta1/representations.rb
Overview
A track of an object instance.
Instance Attribute Summary collapse
-
#attributes ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>
Optional.
-
#confidence ⇒ Float
Optional.
-
#segment ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment
Video segment.
-
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1TimestampedObject>
The object with timestamp and attributes per frame in the track.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1Track
constructor
A new instance of GoogleCloudVideointelligenceV1p3beta1Track.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1Track
Returns a new instance of GoogleCloudVideointelligenceV1p3beta1Track
4383 4384 4385 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>
Optional. Attributes in the track level.
Corresponds to the JSON property attributes
4366 4367 4368 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4366 def attributes @attributes end |
#confidence ⇒ Float
Optional. The confidence score of the tracked object.
Corresponds to the JSON property confidence
4371 4372 4373 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4371 def confidence @confidence end |
#segment ⇒ Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1VideoSegment
Video segment.
Corresponds to the JSON property segment
4376 4377 4378 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4376 def segment @segment end |
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p3beta1TimestampedObject>
The object with timestamp and attributes per frame in the track.
Corresponds to the JSON property timestampedObjects
4381 4382 4383 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4381 def @timestamped_objects end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4388 4389 4390 4391 4392 4393 |
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4388 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 |