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.
1107 1108 1109 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1107 def bottom @bottom end |
#top ⇒ Landmark (readonly) Also known as: upper
The upper lip.
1107 1108 1109 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1107 def top @top end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
1125 1126 1127 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1125 def to_a [top, bottom] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
1134 1135 1136 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1134 def to_h { top: top.to_h, bottom: bottom.to_h } end |