Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1PersonDetectionAnnotation

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

Overview

Person detection annotation per video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1PersonDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1PersonDetectionAnnotation.



871
872
873
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 871

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

Instance Attribute Details

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

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



864
865
866
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 864

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


869
870
871
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 869

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



876
877
878
879
# File 'lib/google/apis/videointelligence_v1/classes.rb', line 876

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