Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation

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

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation.



4273
4274
4275
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 4273

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

Instance Attribute Details

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

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



4266
4267
4268
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 4266

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4271
4272
4273
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 4271

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4278
4279
4280
4281
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 4278

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