Smaws_Client_Rekognition.DetectProtectiveEquipmentDetects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE.
You pass the input image as base64-encoded image bytes or as a reference to an image in an Amazon S3 bucket. The image must be either a PNG or JPG formatted file.
DetectProtectiveEquipment detects PPE worn by up to 15 persons detected in an image.
For each person detected in the image the API returns an array of body parts (face, head, left-hand, right-hand). For each body part, an array of detected items of PPE is returned, including an indicator of whether or not the PPE covers the body part. The API returns the confidence it has in each detection (person, PPE, body part and body part coverage). It also returns a bounding box (BoundingBox) for each detected person and each detected item of PPE.
You can optionally request a summary of detected PPE items with the SummarizationAttributes input parameter. The summary provides the following information.
This is a stateless API operation. That is, the operation does not persist any data.
This operation requires permissions to perform the rekognition:DetectProtectiveEquipment action.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_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
| `ThrottlingException of Types.throttling_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.detect_protective_equipment_request ->
(Types.detect_protective_equipment_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_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
| `ThrottlingException of Types.throttling_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.detect_protective_equipment_request ->
(Types.detect_protective_equipment_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `AccessDeniedException of Types.access_denied_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
| `ThrottlingException of Types.throttling_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result