Class: Google::Cloud::Vision::Annotation::Face::Features::Eyebrows
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Eyebrows
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Eyebrows
The landmarks of the eyebrows 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
-
#left ⇒ Eyebrow
readonly
The left eyebrow.
-
#right ⇒ Eyebrow
readonly
The right eyebrow.
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 ⇒ Eyebrow (readonly)
The left eyebrow.
820 821 822 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 820 def left @left end |
#right ⇒ Eyebrow (readonly)
The right eyebrow.
820 821 822 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 820 def right @right end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
835 836 837 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 835 def to_a [left, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
844 845 846 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 844 def to_h { left: left.to_h, right: right.to_h } end |