Class: Aws::Rekognition::Types::Landmark

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-rekognition/types.rb

Overview

Indicates the location of the landmark on the face.

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

Type of the landmark.

Returns:

  • (String)


1036
1037
1038
1039
1040
1041
# File 'lib/aws-sdk-rekognition/types.rb', line 1036

class Landmark < Struct.new(
  :type,
  :x,
  :y)
  include Aws::Structure
end

#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)


1036
1037
1038
1039
1040
1041
# File 'lib/aws-sdk-rekognition/types.rb', line 1036

class Landmark < Struct.new(
  :type,
  :x,
  :y)
  include Aws::Structure
end

#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)


1036
1037
1038
1039
1040
1041
# File 'lib/aws-sdk-rekognition/types.rb', line 1036

class Landmark < Struct.new(
  :type,
  :x,
  :y)
  include Aws::Structure
end