Values.DetectModerationLabelsResponseSourceDetects 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.
type nonrec t = {moderationLabels : ModerationLabels.t option;Array of detected Moderation labels. For video operations, this includes the time, in milliseconds from the start of the video, they were detected.
*)moderationModelVersion : String_.t option;Version number of the base moderation detection model that was used to detect unsafe content.
*)humanLoopActivationOutput : HumanLoopActivationOutput.t option;Shows the results of the human in the loop evaluation.
*)projectVersion : ProjectVersionId.t option;Identifier of the custom adapter that was used during inference. If during inference the adapter was EXPIRED, then the parameter will not be returned, indicating that a base moderation detection project version was used.
*)contentTypes : ContentTypes.t option;A list of predicted results for the type of content an image contains. For example, the image content might be from animation, sports, or a video game.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.t| `HumanLoopQuotaExceededException of HumanLoopQuotaExceededException.t| `ImageTooLargeException of ImageTooLargeException.t| `InternalServerError of InternalServerError.t| `InvalidImageFormatException of InvalidImageFormatException.t| `InvalidParameterException of InvalidParameterException.t| `InvalidS3ObjectException of InvalidS3ObjectException.t| `ProvisionedThroughputExceededException of
ProvisionedThroughputExceededException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `ResourceNotReadyException of ResourceNotReadyException.t| `ThrottlingException of ThrottlingException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of unit
| `HumanLoopQuotaExceededException of HumanLoopQuotaExceededException.t
| `ImageTooLargeException of unit
| `InternalServerError of unit
| `InvalidImageFormatException of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ResourceNotReadyException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of unit
| `HumanLoopQuotaExceededException of HumanLoopQuotaExceededException.t
| `ImageTooLargeException of unit
| `InternalServerError of unit
| `InvalidImageFormatException of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException of unit
| `ResourceNotFoundException of unit
| `ResourceNotReadyException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Float of Percent.t
| `Integer of UInteger.t
| `String of String_.t ])
list ]
list
| `String of String_.t
| `Structure of
(string
* [> `List of [> `String of HumanLoopActivationReason.t ] list
| `String of HumanLoopArn.t ])
list ])
list ]