Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.Rekognition.DetectModerationLabels
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.
- detectModerationLabels :: Image -> DetectModerationLabels
- data DetectModerationLabels
- dmlMinConfidence :: Lens' DetectModerationLabels (Maybe Double)
- dmlImage :: Lens' DetectModerationLabels Image
- detectModerationLabelsResponse :: Int -> DetectModerationLabelsResponse
- data DetectModerationLabelsResponse
- dmlrsModerationLabels :: Lens' DetectModerationLabelsResponse [ModerationLabel]
- dmlrsResponseStatus :: Lens' DetectModerationLabelsResponse Int
Creating a Request
Arguments
:: Image | |
-> 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 specifyMinConfidence
, 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
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 #
Arguments
:: Int | |
-> 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:
dmlrsModerationLabels
- Array of detected Moderation labels and the time, in millseconds from the start of the video, they were detected.dmlrsResponseStatus
- -- | The response status code.
data DetectModerationLabelsResponse #
See: detectModerationLabelsResponse
smart constructor.
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.
dmlrsResponseStatus :: Lens' DetectModerationLabelsResponse Int #
- - | The response status code.