class Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation

Annotations corresponding to one tracked object.

Attributes

confidence[RW]

Object category's labeling confidence of this track. Corresponds to the JSON property `confidence` @return [Float]

entity[RW]

Detected entity from video analysis. Corresponds to the JSON property `entity` @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1Entity]

frames[RW]

Information corresponding to all frames where this object track appears. Non- streaming batch mode: it may be one or multiple ObjectTrackingFrame messages in frames. Streaming mode: it can only be one ObjectTrackingFrame message in frames. Corresponds to the JSON property `frames` @return [Array<Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>]

segment[RW]

Video segment. Corresponds to the JSON property `segment` @return [Google::Apis::VideointelligenceV1p1beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment]

track_id[RW]

Streaming mode ONLY. In streaming mode, we do not know the end time of a tracked object before it is completed. Hence, there is no VideoSegment info returned. Instead, we provide a unique identifiable integer track_id so that the customers can correlate the results of the ongoing ObjectTrackAnnotation of the same track_id over time. Corresponds to the JSON property `trackId` @return [Fixnum]

version[RW]

Feature version. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/videointelligence_v1p1beta1/classes.rb, line 4492
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/videointelligence_v1p1beta1/classes.rb, line 4497
def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @entity = args[:entity] if args.key?(:entity)
  @frames = args[:frames] if args.key?(:frames)
  @segment = args[:segment] if args.key?(:segment)
  @track_id = args[:track_id] if args.key?(:track_id)
  @version = args[:version] if args.key?(:version)
end