Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation

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

Person detection annotation per video.

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) ⇒ GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation.



5150
5151
5152
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5150

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

Instance Attribute Details

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

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



5143
5144
5145
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5143

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


5148
5149
5150
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5148

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5155
5156
5157
5158
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 5155

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