Class: Google::Cloud::Vision::Annotation::Face::Features::Mouth
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Mouth
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Mouth
The landmarks of the mouth in the features of a face.
Left and right are defined from the vantage of the viewer of the
image, without considering mirror projections typical of photos.
So face.features.eyes.left
typically is the person's right eye.
See Google::Cloud::Vision::Annotation::Face::Features and Google::Cloud::Vision::Annotation::Face.
Instance Attribute Summary collapse
-
#center ⇒ Landmark
readonly
The mouth, center.
-
#left ⇒ Landmark
readonly
The mouth, left.
-
#right ⇒ Landmark
readonly
TThe mouth, right.
Instance Method Summary collapse
-
#to_a ⇒ Array
Returns the object's property values as an array.
-
#to_h ⇒ Hash
Deeply converts object to a hash.
Instance Attribute Details
#center ⇒ Landmark (readonly)
The mouth, center.
1182 1183 1184 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1182 def center @center end |
#left ⇒ Landmark (readonly)
The mouth, left.
1182 1183 1184 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1182 def left @left end |
#right ⇒ Landmark (readonly)
TThe mouth, right.
1182 1183 1184 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1182 def right @right end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
1198 1199 1200 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1198 def to_a [left, center, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
1207 1208 1209 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1207 def to_h { left: left.to_h, center: center.to_h, right: right.to_h } end |