public class DetectProtectiveEquipmentRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
DetectProtectiveEquipmentRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Image |
getImage()
The image in which you want to detect PPE on detected persons.
|
ProtectiveEquipmentSummarizationAttributes |
getSummarizationAttributes()
An array of PPE types that you want to summarize.
|
int |
hashCode() |
void |
setImage(Image image)
The image in which you want to detect PPE on detected persons.
|
void |
setSummarizationAttributes(ProtectiveEquipmentSummarizationAttributes summarizationAttributes)
An array of PPE types that you want to summarize.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetectProtectiveEquipmentRequest |
withImage(Image image)
The image in which you want to detect PPE on detected persons.
|
DetectProtectiveEquipmentRequest |
withSummarizationAttributes(ProtectiveEquipmentSummarizationAttributes summarizationAttributes)
An array of PPE types that you want to summarize.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Image getImage()
The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
public void setImage(Image image)
The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
image
- The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
public DetectProtectiveEquipmentRequest withImage(Image image)
The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
Returns a reference to this object so that method calls can be chained together.
image
- The image in which you want to detect PPE on detected persons. The image can be passed as image bytes or you can reference an image stored in an Amazon S3 bucket.
public ProtectiveEquipmentSummarizationAttributes getSummarizationAttributes()
An array of PPE types that you want to summarize.
An array of PPE types that you want to summarize.
public void setSummarizationAttributes(ProtectiveEquipmentSummarizationAttributes summarizationAttributes)
An array of PPE types that you want to summarize.
summarizationAttributes
- An array of PPE types that you want to summarize.
public DetectProtectiveEquipmentRequest withSummarizationAttributes(ProtectiveEquipmentSummarizationAttributes summarizationAttributes)
An array of PPE types that you want to summarize.
Returns a reference to this object so that method calls can be chained together.
summarizationAttributes
- An array of PPE types that you want to summarize.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.