Class: Google::Cloud::Vision::Annotation::Face::Features::Lips
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Lips
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Lips
The landmarks of the lips in the features of a face.
See Google::Cloud::Vision::Annotation::Face::Features and Google::Cloud::Vision::Annotation::Face.
Instance Attribute Summary collapse
-
#bottom ⇒ Landmark
(also: #lower)
readonly
The lower lip.
-
#top ⇒ Landmark
(also: #upper)
readonly
The upper lip.
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
#bottom ⇒ Landmark (readonly) Also known as: lower
The lower lip.
1109 1110 1111 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1109 def bottom @bottom end |
#top ⇒ Landmark (readonly) Also known as: upper
The upper lip.
1109 1110 1111 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1109 def top @top end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
1127 1128 1129 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1127 def to_a [top, bottom] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
1136 1137 1138 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1136 def to_h { top: top.to_h, bottom: bottom.to_h } end |