Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2Track
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2Track
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta2/classes.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb
Overview
A track of an object instance.
Instance Attribute Summary collapse
-
#attributes ⇒ Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2DetectedAttribute>
Optional.
-
#confidence ⇒ Float
Optional.
-
#segment ⇒ Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment
Video segment.
-
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2TimestampedObject>
The object with timestamp and attributes per frame in the track.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2Track
constructor
A new instance of GoogleCloudVideointelligenceV1beta2Track.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2Track
Returns a new instance of GoogleCloudVideointelligenceV1beta2Track.
2432 2433 2434 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2432 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2DetectedAttribute>
Optional. Attributes in the track level.
Corresponds to the JSON property attributes
2415 2416 2417 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2415 def attributes @attributes end |
#confidence ⇒ Float
Optional. The confidence score of the tracked object.
Corresponds to the JSON property confidence
2420 2421 2422 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2420 def confidence @confidence end |
#segment ⇒ Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2VideoSegment
Video segment.
Corresponds to the JSON property segment
2425 2426 2427 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2425 def segment @segment end |
#timestamped_objects ⇒ Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2TimestampedObject>
The object with timestamp and attributes per frame in the track.
Corresponds to the JSON property timestampedObjects
2430 2431 2432 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2430 def @timestamped_objects end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2437 2438 2439 2440 2441 2442 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 2437 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 |