libZSservicesZSamazonka-rekognitionZSamazonka-rekognition
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Rekognition.Types.Point

Description

 
Synopsis

Documentation

data Point Source #

The X and Y coordinates of a point on an image. The X and Y values returned are ratios of the overall image size. For example, if the input image is 700x200 and the operation returns X=0.5 and Y=0.25, then the point is at the (350,50) pixel coordinate on the image.

An array of Point objects, Polygon, is returned by DetectText and by DetectCustomLabels. Polygon represents a fine-grained polygon around a detected item. For more information, see Geometry in the Amazon Rekognition Developer Guide.

See: newPoint smart constructor.

Constructors

Point' 

Fields

  • x :: Maybe Double

    The value of the X coordinate for a point on a Polygon.

  • y :: Maybe Double

    The value of the Y coordinate for a point on a Polygon.

Instances

Instances details
Eq Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

Read Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Show Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

Generic Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Associated Types

type Rep Point :: Type -> Type #

Methods

from :: Point -> Rep Point x #

to :: Rep Point x -> Point #

NFData Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Methods

rnf :: Point -> () #

Hashable Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

Methods

hashWithSalt :: Int -> Point -> Int #

hash :: Point -> Int #

FromJSON Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

type Rep Point Source # 
Instance details

Defined in Amazonka.Rekognition.Types.Point

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

newPoint :: Point Source #

Create a value of Point 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:x:Point', point_x - The value of the X coordinate for a point on a Polygon.

$sel:y:Point', point_y - The value of the Y coordinate for a point on a Polygon.

point_x :: Lens' Point (Maybe Double) Source #

The value of the X coordinate for a point on a Polygon.

point_y :: Lens' Point (Maybe Double) Source #

The value of the Y coordinate for a point on a Polygon.