Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation

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

Returns a new instance of GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation.



1787
1788
1789
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1787

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

Instance Attribute Details

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

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



1780
1781
1782
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1780

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


1785
1786
1787
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1785

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1792
1793
1794
1795
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 1792

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