Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute

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 attribute.

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) ⇒ GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute

Returns a new instance of GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute



1397
1398
1399
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1397

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

Instance Attribute Details

#emotionsArray<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>

Emotion attributes. Corresponds to the JSON property emotions



1388
1389
1390
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1388

def emotions
  @emotions
end

#normalized_bounding_boxGoogle::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox

Normalized bounding box. The normalized vertex coordinates are relative to the original image. Range: [0, 1]. Corresponds to the JSON property normalizedBoundingBox



1395
1396
1397
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1395

def normalized_bounding_box
  @normalized_bounding_box
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1402
1403
1404
1405
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 1402

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