You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Rekognition::Types::Landmark
- Inherits:
-
Struct
- Object
- Struct
- Aws::Rekognition::Types::Landmark
- Defined in:
- (unknown)
Overview
Indicates the location of the landmark on the face.
Instance Attribute Summary collapse
-
#type ⇒ String
Type of landmark.
-
#x ⇒ Float
The x-coordinate of the landmark expressed as a ratio of the width of the image.
-
#y ⇒ Float
The y-coordinate of the landmark expressed as a ratio of the height of the image.
Instance Attribute Details
#type ⇒ String
Type of landmark.
Possible values:
- eyeLeft
- eyeRight
- nose
- mouthLeft
- mouthRight
- leftEyeBrowLeft
- leftEyeBrowRight
- leftEyeBrowUp
- rightEyeBrowLeft
- rightEyeBrowRight
- rightEyeBrowUp
- leftEyeLeft
- leftEyeRight
- leftEyeUp
- leftEyeDown
- rightEyeLeft
- rightEyeRight
- rightEyeUp
- rightEyeDown
- noseLeft
- noseRight
- mouthUp
- mouthDown
- leftPupil
- rightPupil
- upperJawlineLeft
- midJawlineLeft
- chinBottom
- midJawlineRight
- upperJawlineRight
#x ⇒ Float
The x-coordinate of the landmark expressed as a ratio of the width of the image. The x-coordinate is measured from the left-side of the image. For example, if the image is 700 pixels wide and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.
#y ⇒ Float
The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.