public class ProtectiveEquipmentBodyPart
extends java.lang.Object
implements java.io.Serializable
Information about a body part detected by DetectProtectiveEquipment
that contains PPE. An array of ProtectiveEquipmentBodyPart
objects is returned for each person detected by
DetectProtectiveEquipment
.
Constructor and Description |
---|
ProtectiveEquipmentBodyPart() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getConfidence()
The confidence that Amazon Rekognition has in the detection accuracy of
the detected body part.
|
java.util.List<EquipmentDetection> |
getEquipmentDetections()
An array of Personal Protective Equipment items detected around a body
part.
|
java.lang.String |
getName()
The detected body part.
|
int |
hashCode() |
void |
setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of
the detected body part.
|
void |
setEquipmentDetections(java.util.Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body
part.
|
void |
setName(BodyPart name)
The detected body part.
|
void |
setName(java.lang.String name)
The detected body part.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ProtectiveEquipmentBodyPart |
withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of
the detected body part.
|
ProtectiveEquipmentBodyPart |
withEquipmentDetections(java.util.Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body
part.
|
ProtectiveEquipmentBodyPart |
withEquipmentDetections(EquipmentDetection... equipmentDetections)
An array of Personal Protective Equipment items detected around a body
part.
|
ProtectiveEquipmentBodyPart |
withName(BodyPart name)
The detected body part.
|
ProtectiveEquipmentBodyPart |
withName(java.lang.String name)
The detected body part.
|
public java.lang.String getName()
The detected body part.
Constraints:
Allowed Values: FACE, HEAD, LEFT_HAND, RIGHT_HAND
The detected body part.
BodyPart
public void setName(java.lang.String name)
The detected body part.
Constraints:
Allowed Values: FACE, HEAD, LEFT_HAND, RIGHT_HAND
name
- The detected body part.
BodyPart
public ProtectiveEquipmentBodyPart withName(java.lang.String name)
The detected body part.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FACE, HEAD, LEFT_HAND, RIGHT_HAND
name
- The detected body part.
BodyPart
public void setName(BodyPart name)
The detected body part.
Constraints:
Allowed Values: FACE, HEAD, LEFT_HAND, RIGHT_HAND
name
- The detected body part.
BodyPart
public ProtectiveEquipmentBodyPart withName(BodyPart name)
The detected body part.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: FACE, HEAD, LEFT_HAND, RIGHT_HAND
name
- The detected body part.
BodyPart
public java.lang.Float getConfidence()
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
Constraints:
Length: 0 - 100
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
public void setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
Constraints:
Length: 0 - 100
confidence
- The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
public ProtectiveEquipmentBodyPart withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has in the detection accuracy of the detected body part.
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 in the detection accuracy of the detected body part.
public java.util.List<EquipmentDetection> getEquipmentDetections()
An array of Personal Protective Equipment items detected around a body part.
An array of Personal Protective Equipment items detected around a body part.
public void setEquipmentDetections(java.util.Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.
public ProtectiveEquipmentBodyPart withEquipmentDetections(EquipmentDetection... equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
Returns a reference to this object so that method calls can be chained together.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.
public ProtectiveEquipmentBodyPart withEquipmentDetections(java.util.Collection<EquipmentDetection> equipmentDetections)
An array of Personal Protective Equipment items detected around a body part.
Returns a reference to this object so that method calls can be chained together.
equipmentDetections
- An array of Personal Protective Equipment items detected around a body part.
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.