Class: Gcloud::Vision::Annotation::Face::Features::Eyebrows
- Inherits:
-
Object
- Object
- Gcloud::Vision::Annotation::Face::Features::Eyebrows
- Defined in:
- lib/gcloud/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 Gcloud::Vision::Annotation::Face::Features and Gcloud::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_ary ⇒ Array
Returns the object’s property values as an array.
-
#to_h ⇒ Hash
Deeply converts object to a hash.
-
#to_hash ⇒ Hash
Deeply converts object to a hash.
- #to_s ⇒ Object
Constructor Details
#initialize(left, right) ⇒ Eyebrows
937 938 939 940 |
# File 'lib/gcloud/vision/annotation/face.rb', line 937 def initialize left, right @left = left @right = right end |
Instance Attribute Details
#left ⇒ Eyebrow (readonly)
The left eyebrow.
932 933 934 |
# File 'lib/gcloud/vision/annotation/face.rb', line 932 def left @left end |
#right ⇒ Eyebrow (readonly)
The right eyebrow.
932 933 934 |
# File 'lib/gcloud/vision/annotation/face.rb', line 932 def right @right end |
Instance Method Details
#inspect ⇒ Object
984 985 986 |
# File 'lib/gcloud/vision/annotation/face.rb', line 984 def inspect "#<Eyebrows #{self}>" end |
#to_a ⇒ Array
Returns the object’s property values as an array.
947 948 949 |
# File 'lib/gcloud/vision/annotation/face.rb', line 947 def to_a to_ary end |
#to_ary ⇒ Array
Returns the object’s property values as an array.
956 957 958 |
# File 'lib/gcloud/vision/annotation/face.rb', line 956 def to_ary [left, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
965 966 967 |
# File 'lib/gcloud/vision/annotation/face.rb', line 965 def to_h to_hash end |
#to_hash ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
974 975 976 |
# File 'lib/gcloud/vision/annotation/face.rb', line 974 def to_hash { left: left.to_h, right: right.to_h } end |
#to_s ⇒ Object
979 980 981 |
# File 'lib/gcloud/vision/annotation/face.rb', line 979 def to_s "(left: #{left.inspect}, right: #{right.inspect})" end |