Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2Track

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

Overview

A track of an object instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta2Track

Returns a new instance of GoogleCloudVideointelligenceV1beta2Track.



2028
2029
2030
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2028

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

Instance Attribute Details

#attributesArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2DetectedAttribute>

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



2011
2012
2013
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2011

def attributes
  @attributes
end

#confidenceFloat

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

Returns:

  • (Float)


2016
2017
2018
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2016

def confidence
  @confidence
end

#segmentGoogle::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2VideoSegment

Video segment. Corresponds to the JSON property segment



2021
2022
2023
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2021

def segment
  @segment
end

#timestamped_objectsArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2TimestampedObject>

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



2026
2027
2028
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2026

def timestamped_objects
  @timestamped_objects
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2033
2034
2035
2036
2037
2038
# File 'generated/google/apis/videointelligence_v1p2beta1/classes.rb', line 2033

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