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

Returns:

  • (String)


2166
2167
2168
2169
2170
2171
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2166

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)


2166
2167
2168
2169
2170
2171
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2166

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)


2166
2167
2168
2169
2170
2171
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 2166

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