Class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation

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



2260
2261
2262
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2260

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

Instance Attribute Details

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

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



2253
2254
2255
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2253

def tracks
  @tracks
end

#versionString

Feature version. Corresponds to the JSON property version

Returns:

  • (String)


2258
2259
2260
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2258

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2265
2266
2267
2268
# File 'generated/google/apis/videointelligence_v1/classes.rb', line 2265

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