libZSservicesZSamazonka-textractZSamazonka-textract
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.Textract.Types.Geometry

Description

 
Synopsis

Documentation

data Geometry Source #

Information about where the following items are located on a document page: detected page, text, key-value pairs, tables, table cells, and selection elements.

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
Eq Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Read Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Show Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Generic Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Associated Types

type Rep Geometry :: Type -> Type #

Methods

from :: Geometry -> Rep Geometry x #

to :: Rep Geometry x -> Geometry #

NFData Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Methods

rnf :: Geometry -> () #

Hashable Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

Methods

hashWithSalt :: Int -> Geometry -> Int #

hash :: Geometry -> Int #

FromJSON Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

type Rep Geometry Source # 
Instance details

Defined in Amazonka.Textract.Types.Geometry

type Rep Geometry = D1 ('MetaData "Geometry" "Amazonka.Textract.Types.Geometry" "libZSservicesZSamazonka-textractZSamazonka-textract" '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.