public class EquipmentDetection
extends java.lang.Object
implements java.io.Serializable
Information about an item of Personal Protective Equipment (PPE) detected by DetectProtectiveEquipment. For more information, see DetectProtectiveEquipment.
| Constructor and Description |
|---|
EquipmentDetection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
A bounding box surrounding the item of detected PPE.
|
java.lang.Float |
getConfidence()
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE. |
CoversBodyPart |
getCoversBodyPart()
Information about the body part covered by the detected PPE.
|
java.lang.String |
getType()
The type of detected PPE.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
A bounding box surrounding the item of detected PPE.
|
void |
setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE. |
void |
setCoversBodyPart(CoversBodyPart coversBodyPart)
Information about the body part covered by the detected PPE.
|
void |
setType(ProtectiveEquipmentType type)
The type of detected PPE.
|
void |
setType(java.lang.String type)
The type of detected PPE.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EquipmentDetection |
withBoundingBox(BoundingBox boundingBox)
A bounding box surrounding the item of detected PPE.
|
EquipmentDetection |
withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE. |
EquipmentDetection |
withCoversBodyPart(CoversBodyPart coversBodyPart)
Information about the body part covered by the detected PPE.
|
EquipmentDetection |
withType(ProtectiveEquipmentType type)
The type of detected PPE.
|
EquipmentDetection |
withType(java.lang.String type)
The type of detected PPE.
|
public BoundingBox getBoundingBox()
A bounding box surrounding the item of detected PPE.
A bounding box surrounding the item of detected PPE.
public void setBoundingBox(BoundingBox boundingBox)
A bounding box surrounding the item of detected PPE.
boundingBox - A bounding box surrounding the item of detected PPE.
public EquipmentDetection withBoundingBox(BoundingBox boundingBox)
A bounding box surrounding the item of detected PPE.
Returns a reference to this object so that method calls can be chained together.
boundingBox - A bounding box surrounding the item of detected PPE.
public java.lang.Float getConfidence()
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE.
Constraints:
Length: 0 - 100
The confidence that Amazon Rekognition has that the bounding box
(BoundingBox) contains an item of PPE.
public void setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE.
Constraints:
Length: 0 - 100
confidence -
The confidence that Amazon Rekognition has that the bounding
box (BoundingBox) contains an item of PPE.
public EquipmentDetection withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box (
BoundingBox) contains an item of PPE.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence -
The confidence that Amazon Rekognition has that the bounding
box (BoundingBox) contains an item of PPE.
public java.lang.String getType()
The type of detected PPE.
Constraints:
Allowed Values: FACE_COVER, HAND_COVER, HEAD_COVER
The type of detected PPE.
ProtectiveEquipmentTypepublic void setType(java.lang.String type)
The type of detected PPE.
Constraints:
Allowed Values: FACE_COVER, HAND_COVER, HEAD_COVER
type - The type of detected PPE.
ProtectiveEquipmentTypepublic EquipmentDetection withType(java.lang.String type)
The type of detected PPE.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FACE_COVER, HAND_COVER, HEAD_COVER
type - The type of detected PPE.
ProtectiveEquipmentTypepublic void setType(ProtectiveEquipmentType type)
The type of detected PPE.
Constraints:
Allowed Values: FACE_COVER, HAND_COVER, HEAD_COVER
type - The type of detected PPE.
ProtectiveEquipmentTypepublic EquipmentDetection withType(ProtectiveEquipmentType type)
The type of detected PPE.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FACE_COVER, HAND_COVER, HEAD_COVER
type - The type of detected PPE.
ProtectiveEquipmentTypepublic CoversBodyPart getCoversBodyPart()
Information about the body part covered by the detected PPE.
Information about the body part covered by the detected PPE.
public void setCoversBodyPart(CoversBodyPart coversBodyPart)
Information about the body part covered by the detected PPE.
coversBodyPart - Information about the body part covered by the detected PPE.
public EquipmentDetection withCoversBodyPart(CoversBodyPart coversBodyPart)
Information about the body part covered by the detected PPE.
Returns a reference to this object so that method calls can be chained together.
coversBodyPart - Information about the body part covered by the detected PPE.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.