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.
Detects 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.
For .NET Core this operation is only available in asynchronous form. Please refer to DetectProtectiveEquipmentAsync.
Namespace: Amazon.Rekognition
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z
public virtual DetectProtectiveEquipmentResponse DetectProtectiveEquipment( DetectProtectiveEquipmentRequest request )
Container for the necessary parameters to execute the DetectProtectiveEquipment service method.
Exception | Condition |
---|---|
AccessDeniedException | You are not authorized to perform the action. |
ImageTooLargeException | The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide. |
InternalServerErrorException | Amazon Rekognition experienced a service issue. Try your call again. |
InvalidImageFormatException | The provided image format is not supported. |
InvalidParameterException | Input parameter violated a constraint. Validate your parameter before calling the API operation again. |
InvalidS3ObjectException | Amazon Rekognition is unable to access the S3 object specified in the request. |
ProvisionedThroughputExceededException | The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition. |
ThrottlingException | Amazon Rekognition is temporarily unable to process the request. Try your call again. |
.NET Framework:
Supported in: 4.5 and newer, 3.5