Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1Track

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

Overview

A track of an object instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1Track

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1Track.



4316
4317
4318
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4316

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

Instance Attribute Details

#attributesArray<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>

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



4299
4300
4301
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4299

def attributes
  @attributes
end

#confidenceFloat

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

Returns:

  • (Float)


4304
4305
4306
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4304

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment

Video segment. Corresponds to the JSON property segment



4309
4310
4311
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4309

def segment
  @segment
end

#timestamped_objectsArray<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1TimestampedObject>

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



4314
4315
4316
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4314

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4321
4322
4323
4324
4325
4326
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4321

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