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
show all
Defined in:
(unknown)

Overview

Indicates the location of the landmark on the face.

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

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

Returns:

  • (String)

    Type of landmark.

#xFloat

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.

Returns:

  • (Float)

    The x-coordinate of the landmark expressed as a ratio of the width of the image.

#yFloat

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.

Returns:

  • (Float)

    The y-coordinate of the landmark expressed as a ratio of the height of the image.