Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Landmark = Landmark' {}
- newLandmark :: Landmark
- landmark_type :: Lens' Landmark (Maybe LandmarkType)
- landmark_x :: Lens' Landmark (Maybe Double)
- landmark_y :: Lens' Landmark (Maybe Double)
Documentation
Indicates the location of the landmark on the face.
See: newLandmark
smart constructor.
Landmark' | |
|
Instances
FromJSON Landmark Source # | |
Generic Landmark Source # | |
Read Landmark Source # | |
Show Landmark Source # | |
NFData Landmark Source # | |
Defined in Amazonka.Rekognition.Types.Landmark | |
Eq Landmark Source # | |
Hashable Landmark Source # | |
Defined in Amazonka.Rekognition.Types.Landmark | |
type Rep Landmark Source # | |
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_type :: Lens' Landmark (Maybe LandmarkType) Source #
Type of landmark.
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.