public class ProtectiveEquipmentPerson
extends java.lang.Object
implements java.io.Serializable
A person detected by a call to DetectProtectiveEquipment. The API
returns all persons detected in the input image in an array of
ProtectiveEquipmentPerson
objects.
Constructor and Description |
---|
ProtectiveEquipmentPerson() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<ProtectiveEquipmentBodyPart> |
getBodyParts()
An array of body parts detected on a person's body (including body parts
without PPE).
|
BoundingBox |
getBoundingBox()
A bounding box around the detected person.
|
java.lang.Float |
getConfidence()
The confidence that Amazon Rekognition has that the bounding box contains
a person.
|
java.lang.Integer |
getId()
The identifier for the detected person.
|
int |
hashCode() |
void |
setBodyParts(java.util.Collection<ProtectiveEquipmentBodyPart> bodyParts)
An array of body parts detected on a person's body (including body parts
without PPE).
|
void |
setBoundingBox(BoundingBox boundingBox)
A bounding box around the detected person.
|
void |
setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box contains
a person.
|
void |
setId(java.lang.Integer id)
The identifier for the detected person.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ProtectiveEquipmentPerson |
withBodyParts(java.util.Collection<ProtectiveEquipmentBodyPart> bodyParts)
An array of body parts detected on a person's body (including body parts
without PPE).
|
ProtectiveEquipmentPerson |
withBodyParts(ProtectiveEquipmentBodyPart... bodyParts)
An array of body parts detected on a person's body (including body parts
without PPE).
|
ProtectiveEquipmentPerson |
withBoundingBox(BoundingBox boundingBox)
A bounding box around the detected person.
|
ProtectiveEquipmentPerson |
withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box contains
a person.
|
ProtectiveEquipmentPerson |
withId(java.lang.Integer id)
The identifier for the detected person.
|
public java.util.List<ProtectiveEquipmentBodyPart> getBodyParts()
An array of body parts detected on a person's body (including body parts without PPE).
An array of body parts detected on a person's body (including body parts without PPE).
public void setBodyParts(java.util.Collection<ProtectiveEquipmentBodyPart> bodyParts)
An array of body parts detected on a person's body (including body parts without PPE).
bodyParts
- An array of body parts detected on a person's body (including body parts without PPE).
public ProtectiveEquipmentPerson withBodyParts(ProtectiveEquipmentBodyPart... bodyParts)
An array of body parts detected on a person's body (including body parts without PPE).
Returns a reference to this object so that method calls can be chained together.
bodyParts
- An array of body parts detected on a person's body (including body parts without PPE).
public ProtectiveEquipmentPerson withBodyParts(java.util.Collection<ProtectiveEquipmentBodyPart> bodyParts)
An array of body parts detected on a person's body (including body parts without PPE).
Returns a reference to this object so that method calls can be chained together.
bodyParts
- An array of body parts detected on a person's body (including body parts without PPE).
public BoundingBox getBoundingBox()
A bounding box around the detected person.
A bounding box around the detected person.
public void setBoundingBox(BoundingBox boundingBox)
A bounding box around the detected person.
boundingBox
- A bounding box around the detected person.
public ProtectiveEquipmentPerson withBoundingBox(BoundingBox boundingBox)
A bounding box around the detected person.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- A bounding box around the detected person.
public java.lang.Float getConfidence()
The confidence that Amazon Rekognition has that the bounding box contains a person.
Constraints:
Length: 0 - 100
The confidence that Amazon Rekognition has that the bounding box contains a person.
public void setConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box contains a person.
Constraints:
Length: 0 - 100
confidence
- The confidence that Amazon Rekognition has that the bounding box contains a person.
public ProtectiveEquipmentPerson withConfidence(java.lang.Float confidence)
The confidence that Amazon Rekognition has that the bounding box contains a person.
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 contains a person.
public java.lang.Integer getId()
The identifier for the detected person. The identifier is only unique for
a single call to DetectProtectiveEquipment
.
Constraints:
Range: 0 -
The identifier for the detected person. The identifier is only
unique for a single call to
DetectProtectiveEquipment
.
public void setId(java.lang.Integer id)
The identifier for the detected person. The identifier is only unique for
a single call to DetectProtectiveEquipment
.
Constraints:
Range: 0 -
id
-
The identifier for the detected person. The identifier is only
unique for a single call to
DetectProtectiveEquipment
.
public ProtectiveEquipmentPerson withId(java.lang.Integer id)
The identifier for the detected person. The identifier is only unique for
a single call to DetectProtectiveEquipment
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
id
-
The identifier for the detected person. The identifier is only
unique for a single call to
DetectProtectiveEquipment
.
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.