Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation

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



2059
2060
2061
# File 'lib/google/apis/videointelligence_v1beta2/classes.rb', line 2059

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

Instance Attribute Details

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

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



2052
2053
2054
# File 'lib/google/apis/videointelligence_v1beta2/classes.rb', line 2052

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


2057
2058
2059
# File 'lib/google/apis/videointelligence_v1beta2/classes.rb', line 2057

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2064
2065
2066
2067
# File 'lib/google/apis/videointelligence_v1beta2/classes.rb', line 2064

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