Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation

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

Overview

Annotations corresponding to one tracked object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation.



4019
4020
4021
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4019

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

Instance Attribute Details

#confidenceFloat

Object category's labeling confidence of this track. Corresponds to the JSON property confidence

Returns:

  • (Float)


3985
3986
3987
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3985

def confidence
  @confidence
end

#entityGoogle::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1Entity

Detected entity from video analysis. Corresponds to the JSON property entity



3990
3991
3992
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3990

def entity
  @entity
end

#framesArray<Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>

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



3998
3999
4000
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 3998

def frames
  @frames
end

#segmentGoogle::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment

Video segment. Corresponds to the JSON property segment



4003
4004
4005
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4003

def segment
  @segment
end

#track_idFixnum

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

Returns:

  • (Fixnum)


4012
4013
4014
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4012

def track_id
  @track_id
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4017
4018
4019
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4017

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4024
4025
4026
4027
4028
4029
4030
4031
# File 'generated/google/apis/videointelligence_v1p3beta1/classes.rb', line 4024

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