Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation

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

Overview

Person detection annotation per video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation.



5778
5779
5780
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5778

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

Instance Attribute Details

#tracksArray<Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p3beta1Track>

The detected tracks of a person. Corresponds to the JSON property tracks



5771
5772
5773
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5771

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


5776
5777
5778
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5776

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5783
5784
5785
5786
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5783

def update!(**args)
  @tracks = args[:tracks] if args.key?(:tracks)
  @version = args[:version] if args.key?(:version)
end