Class: Google::Cloud::Vision::Annotation::Face::Features::Nose
- Inherits:
-
Object
- Object
- Google::Cloud::Vision::Annotation::Face::Features::Nose
- Defined in:
- lib/google/cloud/vision/annotation/face.rb
Overview
Nose
The landmarks of the nose 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
-
#bottom ⇒ Landmark
readonly
The nose, bottom center.
-
#left ⇒ Landmark
readonly
The nose, bottom left.
-
#right ⇒ Landmark
readonly
The nose, bottom right.
-
#tip ⇒ Landmark
readonly
The nose tip.
-
#top ⇒ Landmark
readonly
The midpoint between the eyes.
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
#bottom ⇒ Landmark (readonly)
The nose, bottom center.
1256 1257 1258 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1256 def bottom @bottom end |
#left ⇒ Landmark (readonly)
The nose, bottom left.
1256 1257 1258 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1256 def left @left end |
#right ⇒ Landmark (readonly)
The nose, bottom right.
1256 1257 1258 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1256 def right @right end |
#tip ⇒ Landmark (readonly)
The nose tip.
1256 1257 1258 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1256 def tip @tip end |
#top ⇒ Landmark (readonly)
The midpoint between the eyes.
1256 1257 1258 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1256 def top @top end |
Instance Method Details
#to_a ⇒ Array
Returns the object's property values as an array.
1274 1275 1276 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1274 def to_a [left, bottom, tip, top, right] end |
#to_h ⇒ Hash
Deeply converts object to a hash. All keys will be symbolized.
1283 1284 1285 1286 |
# File 'lib/google/cloud/vision/annotation/face.rb', line 1283 def to_h { left: left.to_h, bottom: bottom.to_h, tip: tip.to_h, top: top.to_h, right: right.to_h } end |