Class: Google::Cloud::Vision::Annotation::Face::Features::Ears
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Ears
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Ears
The landmarks for the ear tragions.
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
-
#left ⇒ Landmark
readonly
The left ear tragion.
-
#right ⇒ Landmark
readonly
The right ear tragion.
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
#left ⇒ Landmark (readonly)
The left ear tragion.
748 749 750 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 748 def left @left end |
#right ⇒ Landmark (readonly)
The right ear tragion.
748 749 750 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 748 def right @right end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
763 764 765 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 763 def to_a [left, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
772 773 774 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 772 def to_h { left: left.to_h, right: right.to_h } end |