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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-rekognition/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 landmark.

Returns:

  • (String)


2995
2996
2997
2998
2999
3000
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2995

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

#xFloat

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

Returns:

  • (Float)


2995
2996
2997
2998
2999
3000
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2995

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

#yFloat

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

Returns:

  • (Float)


2995
2996
2997
2998
2999
3000
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2995

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