Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation

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

Annotations corresponding to one tracked object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation.



2934
2935
2936
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2934

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)


2899
2900
2901
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2899

def confidence
  @confidence
end

#entityGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1Entity

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



2904
2905
2906
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2904

def entity
  @entity
end

#framesArray<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>

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



2912
2913
2914
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2912

def frames
  @frames
end

#segmentGoogle::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment

Video segment. Corresponds to the JSON property segment



2917
2918
2919
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2917

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)


2927
2928
2929
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2927

def track_id
  @track_id
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


2932
2933
2934
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2932

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2939
2940
2941
2942
2943
2944
2945
2946
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2939

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