Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute

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



1460
1461
1462
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1460

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

Instance Attribute Details

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

Emotion attributes. Corresponds to the JSON property emotions



1451
1452
1453
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1451

def emotions
  @emotions
end

#normalized_bounding_boxGoogle::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox

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



1458
1459
1460
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1458

def normalized_bounding_box
  @normalized_bounding_box
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1465
1466
1467
1468
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 1465

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