Module Smaws_Client_Rekognition.DetectModerationLabels

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.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `ImageTooLargeException of Types.image_too_large_exception | `InternalServerError of Types.internal_server_error | `InvalidImageFormatException of Types.invalid_image_format_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceNotReadyException of Types.resource_not_ready_exception | `ThrottlingException of Types.throttling_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.detect_moderation_labels_request -> (Types.detect_moderation_labels_response, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `ImageTooLargeException of Types.image_too_large_exception | `InternalServerError of Types.internal_server_error | `InvalidImageFormatException of Types.invalid_image_format_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceNotReadyException of Types.resource_not_ready_exception | `ThrottlingException of Types.throttling_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.detect_moderation_labels_request -> (Types.detect_moderation_labels_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `HumanLoopQuotaExceededException of Types.human_loop_quota_exceeded_exception | `ImageTooLargeException of Types.image_too_large_exception | `InternalServerError of Types.internal_server_error | `InvalidImageFormatException of Types.invalid_image_format_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidS3ObjectException of Types.invalid_s3_object_exception | `ProvisionedThroughputExceededException of Types.provisioned_throughput_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceNotReadyException of Types.resource_not_ready_exception | `ThrottlingException of Types.throttling_exception ] * Smaws_Lib.Response.metadata) Stdlib.result