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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#typeString

Type of landmark.

Returns:

  • (String)


3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 3362

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

#xFloat

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

Returns:

  • (Float)


3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 3362

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

#yFloat

The y-coordinate of the landmark expressed as a ratio of the height of the image. The y-coordinate is measured from the top of the image. For example, if the image height is 200 pixels and the y-coordinate of the landmark is at 50 pixels, this value is 0.25.

Returns:

  • (Float)


3362
3363
3364
3365
3366
3367
3368
# File 'gems/aws-sdk-rekognition/lib/aws-sdk-rekognition/types.rb', line 3362

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