Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation

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



1433
1434
1435
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1433

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

Instance Attribute Details

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

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



1426
1427
1428
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1426

def frames
  @frames
end

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

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



1431
1432
1433
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1431

def segments
  @segments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1438
1439
1440
1441
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1438

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