Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1Track

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

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1Track

Returns a new instance of GoogleCloudVideointelligenceV1Track.



1288
1289
1290
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1288

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

Instance Attribute Details

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

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



1271
1272
1273
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1271

def attributes
  @attributes
end

#confidenceFloat

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

Returns:

  • (Float)


1276
1277
1278
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1276

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1VideoSegment

Video segment. Corresponds to the JSON property segment



1281
1282
1283
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1281

def segment
  @segment
end

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

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



1286
1287
1288
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1286

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1293
1294
1295
1296
1297
1298
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 1293

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