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

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

Overview

A track of an object instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1Track

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1Track.



6346
6347
6348
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6346

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



6329
6330
6331
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6329

def attributes
  @attributes
end

#confidenceFloat

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

Returns:

  • (Float)


6334
6335
6336
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6334

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1VideoSegment

Video segment. Corresponds to the JSON property segment



6339
6340
6341
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6339

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



6344
6345
6346
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6344

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6351
6352
6353
6354
6355
6356
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 6351

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