amazonka-comprehend-2.0: Amazon Comprehend 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.Comprehend.Types.Geometry

Description

 
Synopsis

Documentation

data Geometry Source #

Information about the location of items on a document page.

For additional information, see Geometry in the Amazon Textract API reference.

See: newGeometry smart constructor.

Constructors

Geometry' 

Fields

  • boundingBox :: Maybe BoundingBox

    An axis-aligned coarse representation of the location of the recognized item on the document page.

  • polygon :: Maybe [Point]

    Within the bounding box, a fine-grained polygon around the recognized item.

Instances

Instances details
FromJSON Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Generic Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Associated Types

type Rep Geometry :: Type -> Type #

Methods

from :: Geometry -> Rep Geometry x #

to :: Rep Geometry x -> Geometry #

Read Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Show Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

NFData Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Methods

rnf :: Geometry -> () #

Eq Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Hashable Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

Methods

hashWithSalt :: Int -> Geometry -> Int #

hash :: Geometry -> Int #

type Rep Geometry Source # 
Instance details

Defined in Amazonka.Comprehend.Types.Geometry

type Rep Geometry = D1 ('MetaData "Geometry" "Amazonka.Comprehend.Types.Geometry" "amazonka-comprehend-2.0-Ko6GCjAQF2RARapSdPn69F" 'False) (C1 ('MetaCons "Geometry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "boundingBox") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BoundingBox)) :*: S1 ('MetaSel ('Just "polygon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Point]))))

newGeometry :: Geometry Source #

Create a value of Geometry 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:boundingBox:Geometry', geometry_boundingBox - An axis-aligned coarse representation of the location of the recognized item on the document page.

$sel:polygon:Geometry', geometry_polygon - Within the bounding box, a fine-grained polygon around the recognized item.

geometry_boundingBox :: Lens' Geometry (Maybe BoundingBox) Source #

An axis-aligned coarse representation of the location of the recognized item on the document page.

geometry_polygon :: Lens' Geometry (Maybe [Point]) Source #

Within the bounding box, a fine-grained polygon around the recognized item.