amazonka-rekognition-2.0: Amazon Rekognition SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Rekognition.Types.Landmark

Description

 
Synopsis

Documentation

data Landmark Source #

Indicates the location of the landmark on the face.

See: newLandmark smart constructor.

Constructors

Landmark' 

Fields

  • type' :: Maybe LandmarkType

    Type of landmark.

  • x :: Maybe Double

    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.

  • y :: Maybe Double

    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.

Instances

Instances details
FromJSON Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Generic Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Associated Types

type Rep Landmark :: Type -> Type #

Methods

from :: Landmark -> Rep Landmark x #

to :: Rep Landmark x -> Landmark #

Read Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Show Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

NFData Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Methods

rnf :: Landmark -> () #

Eq Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Hashable Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

Methods

hashWithSalt :: Int -> Landmark -> Int #

hash :: Landmark -> Int #

type Rep Landmark Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Landmark

type Rep Landmark = D1 ('MetaData "Landmark" "Amazonka.Rekognition.Types.Landmark" "amazonka-rekognition-2.0-EaCrS9R3rWADqefEZvOx5B" 'False) (C1 ('MetaCons "Landmark'" 'PrefixI 'True) (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LandmarkType)) :*: (S1 ('MetaSel ('Just "x") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "y") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)))))

newLandmark :: Landmark Source #

Create a value of Landmark with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:type':Landmark', landmark_type - Type of landmark.

$sel:x:Landmark', landmark_x - 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.

$sel:y:Landmark', landmark_y - 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.

landmark_x :: Lens' Landmark (Maybe Double) Source #

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.

landmark_y :: Lens' Landmark (Maybe Double) Source #

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.