Class: Google::Cloud::Vision::Annotation::Face::Features::Chin
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Chin
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Chin
The landmarks of the chin 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 chin, gnathion.
-
#left ⇒ Landmark
readonly
The chin, left gonion.
-
#right ⇒ Landmark
readonly
The chin, right gonion.
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 chin, gnathion.
686 687 688 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 686 def center @center end |
#left ⇒ Landmark (readonly)
The chin, left gonion.
686 687 688 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 686 def left @left end |
#right ⇒ Landmark (readonly)
The chin, right gonion.
686 687 688 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 686 def right @right end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
702 703 704 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 702 def to_a [left, center, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
711 712 713 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 711 def to_h { left: left.to_h, center: center.to_h, right: right.to_h } end |