AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the DetectModerationLabels operation.
Detects unsafe 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 Detecting Unsafe Content in the Amazon Rekognition Developer Guide.
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 AWS CLI to call Amazon Rekognition operations, passing image bytes is not supported. The image must be either a PNG or JPEG formatted file.
You can specify an adapter to use when retrieving label predictions by providing a
ProjectVersionArn
to the ProjectVersion
argument.
Namespace: Amazon.Rekognition.Model
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z
public class DetectModerationLabelsRequest : AmazonRekognitionRequest IAmazonWebServiceRequest
The DetectModerationLabelsRequest type exposes the following members
Name | Description | |
---|---|---|
DetectModerationLabelsRequest() |
Name | Type | Description | |
---|---|---|---|
HumanLoopConfig | Amazon.Rekognition.Model.HumanLoopConfig |
Gets and sets the property HumanLoopConfig. Sets up the configuration for human evaluation, including the FlowDefinition the image will be sent to. |
|
Image | Amazon.Rekognition.Model.Image |
Gets and sets the property 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.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode
image bytes passed using the |
|
MinConfidence | System.Single |
Gets and sets the property MinConfidence. 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 |
|
ProjectVersion | System.String |
Gets and sets the property ProjectVersion. Identifier for the custom adapter. Expects the ProjectVersionArn as a value. Use the CreateProject or CreateProjectVersion APIs to create a custom adapter. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5