amazonka-rekognition-1.6.0: 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 #

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 #

See: detectModerationLabels smart constructor.

Instances

Eq DetectModerationLabels # 
Data 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 # 
Show DetectModerationLabels # 
Generic DetectModerationLabels # 
Hashable DetectModerationLabels # 
ToJSON DetectModerationLabels # 
NFData DetectModerationLabels # 

Methods

rnf :: DetectModerationLabels -> () #

AWSRequest DetectModerationLabels # 
ToHeaders DetectModerationLabels # 
ToPath DetectModerationLabels # 
ToQuery DetectModerationLabels # 
type Rep DetectModerationLabels # 
type Rep DetectModerationLabels = D1 * (MetaData "DetectModerationLabels" "Network.AWS.Rekognition.DetectModerationLabels" "amazonka-rekognition-1.6.0-4TmAlrIlJHI1iGSYhkZbGT" False) (C1 * (MetaCons "DetectModerationLabels'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dmlMinConfidence") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Double))) (S1 * (MetaSel (Just Symbol "_dmlImage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Image))))
type Rs DetectModerationLabels # 

Request Lenses

dmlMinConfidence :: Lens' DetectModerationLabels (Maybe Double) #

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 #

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 #

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 #

See: detectModerationLabelsResponse smart constructor.

Instances

Eq DetectModerationLabelsResponse # 
Data DetectModerationLabelsResponse # 

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 # 
Show DetectModerationLabelsResponse # 
Generic DetectModerationLabelsResponse # 
NFData DetectModerationLabelsResponse # 
type Rep DetectModerationLabelsResponse # 
type Rep DetectModerationLabelsResponse = D1 * (MetaData "DetectModerationLabelsResponse" "Network.AWS.Rekognition.DetectModerationLabels" "amazonka-rekognition-1.6.0-4TmAlrIlJHI1iGSYhkZbGT" False) (C1 * (MetaCons "DetectModerationLabelsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dmlrsModerationLabels") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [ModerationLabel]))) (S1 * (MetaSel (Just Symbol "_dmlrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

dmlrsModerationLabels :: Lens' DetectModerationLabelsResponse [ModerationLabel] #

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