Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation

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

Overview

Face detection annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation



1370
1371
1372
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1370

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

Instance Attribute Details

#framesArray<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>

All video frames where a face was detected. Corresponds to the JSON property frames



1363
1364
1365
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1363

def frames
  @frames
end

#segmentsArray<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>

All video segments where a face was detected. Corresponds to the JSON property segments



1368
1369
1370
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1368

def segments
  @segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1375
1376
1377
1378
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1375

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