amazonka-rekognition-1.6.1: Amazon Rekognition SDK.

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

Network.AWS.Rekognition.DetectModerationLabels

Contents

Description

Detects explicit or suggestive adult content in a specified JPEG or PNG format image. Use DetectModerationLabels to moderate images depending on your requirements. For example, you might want to filter images that contain nudity, but not images containing suggestive content.

To filter images, use the labels returned by DetectModerationLabels to determine which types of content are appropriate. For information about moderation labels, see moderation .

You pass the input image either as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. If you use the Amazon CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.

Synopsis

Creating a Request

detectModerationLabels Source #

Creates a value of DetectModerationLabels with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • dmlMinConfidence - Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value. If you don't specify MinConfidence , the operation returns labels with confidence values greater than or equal to 50 percent.
  • dmlImage - The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

data DetectModerationLabels Source #

See: detectModerationLabels smart constructor.

Instances
Eq DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Data DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DetectModerationLabels -> c DetectModerationLabels #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DetectModerationLabels #

toConstr :: DetectModerationLabels -> Constr #

dataTypeOf :: DetectModerationLabels -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DetectModerationLabels) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DetectModerationLabels) #

gmapT :: (forall b. Data b => b -> b) -> DetectModerationLabels -> DetectModerationLabels #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DetectModerationLabels -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DetectModerationLabels -> r #

gmapQ :: (forall d. Data d => d -> u) -> DetectModerationLabels -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DetectModerationLabels -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DetectModerationLabels -> m DetectModerationLabels #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectModerationLabels -> m DetectModerationLabels #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectModerationLabels -> m DetectModerationLabels #

Read DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Show DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Generic DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Associated Types

type Rep DetectModerationLabels :: Type -> Type #

Hashable DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

ToJSON DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

AWSRequest DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Associated Types

type Rs DetectModerationLabels :: Type #

ToHeaders DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

ToPath DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

ToQuery DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

NFData DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Methods

rnf :: DetectModerationLabels -> () #

type Rep DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

type Rep DetectModerationLabels = D1 (MetaData "DetectModerationLabels" "Network.AWS.Rekognition.DetectModerationLabels" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "DetectModerationLabels'" PrefixI True) (S1 (MetaSel (Just "_dmlMinConfidence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Double)) :*: S1 (MetaSel (Just "_dmlImage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Image)))
type Rs DetectModerationLabels Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Request Lenses

dmlMinConfidence :: Lens' DetectModerationLabels (Maybe Double) Source #

Specifies the minimum confidence level for the labels to return. Amazon Rekognition doesn't return any labels with a confidence level lower than this specified value. If you don't specify MinConfidence , the operation returns labels with confidence values greater than or equal to 50 percent.

dmlImage :: Lens' DetectModerationLabels Image Source #

The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.

Destructuring the Response

detectModerationLabelsResponse Source #

Creates a value of DetectModerationLabelsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DetectModerationLabelsResponse Source #

See: detectModerationLabelsResponse smart constructor.

Instances
Eq DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Data DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DetectModerationLabelsResponse -> c DetectModerationLabelsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DetectModerationLabelsResponse #

toConstr :: DetectModerationLabelsResponse -> Constr #

dataTypeOf :: DetectModerationLabelsResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DetectModerationLabelsResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DetectModerationLabelsResponse) #

gmapT :: (forall b. Data b => b -> b) -> DetectModerationLabelsResponse -> DetectModerationLabelsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DetectModerationLabelsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DetectModerationLabelsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DetectModerationLabelsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DetectModerationLabelsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DetectModerationLabelsResponse -> m DetectModerationLabelsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectModerationLabelsResponse -> m DetectModerationLabelsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DetectModerationLabelsResponse -> m DetectModerationLabelsResponse #

Read DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Show DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Generic DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

Associated Types

type Rep DetectModerationLabelsResponse :: Type -> Type #

NFData DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

type Rep DetectModerationLabelsResponse Source # 
Instance details

Defined in Network.AWS.Rekognition.DetectModerationLabels

type Rep DetectModerationLabelsResponse = D1 (MetaData "DetectModerationLabelsResponse" "Network.AWS.Rekognition.DetectModerationLabels" "amazonka-rekognition-1.6.1-ELwOF0LSGWFp8S3Ef6QMe" False) (C1 (MetaCons "DetectModerationLabelsResponse'" PrefixI True) (S1 (MetaSel (Just "_dmlrsModerationLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ModerationLabel])) :*: S1 (MetaSel (Just "_dmlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

dmlrsModerationLabels :: Lens' DetectModerationLabelsResponse [ModerationLabel] Source #

Array of detected Moderation labels and the time, in millseconds from the start of the video, they were detected.