Values.DetectProtectiveEquipmentResponseSourceDetects Personal Protective Equipment (PPE) worn by people detected in an image. Amazon Rekognition can detect the following types of PPE. Face cover Hand cover Head cover 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. The persons detected as wearing all of the types of PPE that you specify. The persons detected as not wearing all of the types PPE that you specify. The persons detected where PPE adornment could not be determined. 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.
type nonrec t = {protectiveEquipmentModelVersion : String_.t option;The version number of the PPE detection model used to detect PPE in the image.
*)persons : ProtectiveEquipmentPersons.t option;An array of persons detected in the image (including persons not wearing PPE).
*)summary : ProtectiveEquipmentSummary.t option;Summary information for the types of PPE specified in the SummarizationAttributes input parameter.
*)}type nonrec error = [ | `AccessDeniedException of AccessDeniedException.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| `ThrottlingException of ThrottlingException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `AccessDeniedException of unit
| `ImageTooLargeException of unit
| `InternalServerError of unit
| `InvalidImageFormatException of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException of unit
| `ThrottlingException of unit
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `AccessDeniedException of unit
| `ImageTooLargeException of unit
| `InternalServerError of unit
| `InvalidImageFormatException of unit
| `InvalidParameterException of unit
| `InvalidS3ObjectException of unit
| `ProvisionedThroughputExceededException 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
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Float of Percent.t
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Float of Percent.t
| `Structure of
(string
* [> `Boolean of Boolean.t
| `Float of Float_.t ])
list ])
list ]
list ])
list ]
list
| `Structure of (string * [> `Float of Float_.t ]) list ])
list ]
list
| `String of String_.t
| `Structure of
(string * [> `List of [> `Integer of UInteger.t ] list ]) list ])
list ]