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.
1121 1122 1123 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1121 def bottom @bottom end |
#top ⇒ Landmark (readonly) Also known as: upper
The upper lip.
1121 1122 1123 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1121 def top @top end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
1139 1140 1141 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1139 def to_a [top, bottom] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
1148 1149 1150 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1148 def to_h { top: top.to_h, bottom: bottom.to_h } end |