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
-
#initialize(left, right) ⇒ Eyebrows
constructor
A new instance of Eyebrows.
- #inspect ⇒ Object
-
#to_a ⇒ Array
Returns the object’s property values as an array.
-
#to_h ⇒ Hash
Deeply converts object to a hash.
- #to_s ⇒ Object
Constructor Details
#initialize(left, right) ⇒ Eyebrows
Returns a new instance of Eyebrows.
823 824 825 826 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 823 def initialize left, right @left = left @right = right end |
Instance Attribute Details
#left ⇒ Eyebrow (readonly)
The left eyebrow.
818 819 820 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 818 def left @left end |
#right ⇒ Eyebrow (readonly)
The right eyebrow.
818 819 820 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 818 def right @right end |
Instance Method Details
#inspect ⇒ Object
852 853 854 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 852 def inspect "#<Eyebrows #{self}>" end |
#to_a ⇒ Array
Returns the object’s property values as an array.
833 834 835 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 833 def to_a [left, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
842 843 844 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 842 def to_h { left: left.to_h, right: right.to_h } end |
#to_s ⇒ Object
847 848 849 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 847 def to_s "(left: #{left.inspect}, right: #{right.inspect})" end |