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.RegionOfInterest

Description

 
Synopsis

Documentation

data RegionOfInterest Source #

Specifies a location within the frame that Rekognition checks for objects of interest such as text, labels, or faces. It uses a BoundingBox or Polygon to set a region of the screen.

A word, face, or label is included in the region if it is more than half in that region. If there is more than one region, the word, face, or label is compared with all regions of the screen. Any object of interest that is more than half in a region is kept in the results.

See: newRegionOfInterest smart constructor.

Constructors

RegionOfInterest' 

Fields

Instances

Instances details
FromJSON RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

ToJSON RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

Generic RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

Associated Types

type Rep RegionOfInterest :: Type -> Type #

Read RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

Show RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

NFData RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

Methods

rnf :: RegionOfInterest -> () #

Eq RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

Hashable RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

type Rep RegionOfInterest Source # 
Instance details

Defined in Amazonka.Rekognition.Types.RegionOfInterest

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

newRegionOfInterest :: RegionOfInterest Source #

Create a value of RegionOfInterest 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:RegionOfInterest', regionOfInterest_boundingBox - The box representing a region of interest on screen.

$sel:polygon:RegionOfInterest', regionOfInterest_polygon - Specifies a shape made up of up to 10 Point objects to define a region of interest.

regionOfInterest_boundingBox :: Lens' RegionOfInterest (Maybe BoundingBox) Source #

The box representing a region of interest on screen.

regionOfInterest_polygon :: Lens' RegionOfInterest (Maybe [Point]) Source #

Specifies a shape made up of up to 10 Point objects to define a region of interest.