Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1Track

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1Track

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1Track.



3645
3646
3647
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3645

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#attributesArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>

Optional. Attributes in the track level. Corresponds to the JSON property attributes



3628
3629
3630
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3628

def attributes
  @attributes
end

#confidenceFloat

Optional. The confidence score of the tracked object. Corresponds to the JSON property confidence

Returns:

  • (Float)


3633
3634
3635
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3633

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment

Video segment. Corresponds to the JSON property segment



3638
3639
3640
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3638

def segment
  @segment
end

#timestamped_objectsArray<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1TimestampedObject>

The object with timestamp and attributes per frame in the track. Corresponds to the JSON property timestampedObjects



3643
3644
3645
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3643

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3650
3651
3652
3653
3654
3655
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 3650

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