Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/videointelligence_v1beta2/classes.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb,
generated/google/apis/videointelligence_v1beta2/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.



4548
4549
4550
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 4548

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

Instance Attribute Details

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

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



4541
4542
4543
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 4541

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


4546
4547
4548
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 4546

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4553
4554
4555
4556
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 4553

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