Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
- 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
-
#emotions ⇒ Array<Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>
Emotion attributes.
-
#normalized_bounding_box ⇒ Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
Normalized bounding box.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
constructor
A new instance of GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#emotions ⇒ Array<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_box ⇒ Google::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 |