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 the 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

Returns:

  • (String)

    Type of the landmark.

#xFloat

x-coordinate from the top left of the landmark expressed as the ratio of the width of the image. For example, if the images is 700x200 and the x-coordinate of the landmark is at 350 pixels, this value is 0.5.

Returns:

  • (Float)

    x-coordinate from the top left of the landmark expressed as the ratio of the width of the image.

#yFloat

y-coordinate from the top left of the landmark expressed as the ratio of the height of the image. For example, if the images is 700x200 and the y-coordinate of the landmark is at 100 pixels, this value is 0.5.

Returns:

  • (Float)

    y-coordinate from the top left of the landmark expressed as the ratio of the height of the image.