Class: Google::Cloud::Vision::Annotation::Face::Features::Eyebrow
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Eyebrow
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Eyebrow
The landmarks of an eyebrow 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 Eyebrows, Google::Cloud::Vision::Annotation::Face::Features and Google::Cloud::Vision::Annotation::Face.
Instance Attribute Summary collapse
-
#left ⇒ Landmark
readonly
The eyebrow, left.
-
#right ⇒ Landmark
readonly
The eyebrow, right.
-
#top ⇒ Landmark
readonly
The eyebrow, upper midpoint.
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 eyebrow, left.
900 901 902 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 900 def left @left end |
#right ⇒ Landmark (readonly)
The eyebrow, right.
900 901 902 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 900 def right @right end |
#top ⇒ Landmark (readonly)
The eyebrow, upper midpoint.
900 901 902 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 900 def top @top end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
916 917 918 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 916 def to_a [left, top, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
925 926 927 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 925 def to_h { left: left.to_h, top: top.to_h, right: right.to_h } end |