Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1Track

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1/classes.rb,
generated/google/apis/videointelligence_v1/representations.rb,
generated/google/apis/videointelligence_v1/representations.rb

Overview

A track of an object instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1Track

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1Track.



5509
5510
5511
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5509

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

Instance Attribute Details

#attributesArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>

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



5492
5493
5494
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5492

def attributes
  @attributes
end

#confidenceFloat

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

Returns:

  • (Float)


5497
5498
5499
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5497

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment

Video segment. Corresponds to the JSON property segment



5502
5503
5504
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5502

def segment
  @segment
end

#timestamped_objectsArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1TimestampedObject>

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



5507
5508
5509
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5507

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5514
5515
5516
5517
5518
5519
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5514

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