You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Returns:

  • (String)


1036
1037
1038
1039
1040
1041
# File 'gems/aws-sdk-rekognition/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 'gems/aws-sdk-rekognition/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 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 1036

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