public class ProtectiveEquipmentSummary
extends java.lang.Object
implements java.io.Serializable
Summary information for required items of personal protective equipment (PPE)
detected on persons by a call to DetectProtectiveEquipment. You
specify the required type of PPE in the SummarizationAttributes
(ProtectiveEquipmentSummarizationAttributes) input parameter. The
summary includes which persons were detected wearing the required personal
protective equipment (PersonsWithRequiredEquipment
), which
persons were detected as not wearing the required PPE (
PersonsWithoutRequiredEquipment
), and the persons in which a
determination could not be made (PersonsIndeterminate
).
To get a total for each category, use the size of the field array. For
example, to find out how many people were detected as wearing the specified
PPE, use the size of the PersonsWithRequiredEquipment
array. If
you want to find out more about a person, such as the location
(BoundingBox) of the person on the image, use the person ID in each
array element. Each person ID matches the ID field of a
ProtectiveEquipmentPerson object returned in the Persons
array by DetectProtectiveEquipment
.
Constructor and Description |
---|
ProtectiveEquipmentSummary() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.Integer> |
getPersonsIndeterminate()
An array of IDs for persons where it was not possible to determine if
they are wearing personal protective equipment.
|
java.util.List<java.lang.Integer> |
getPersonsWithoutRequiredEquipment()
An array of IDs for persons who are not wearing all of the types of PPE
specified in the RequiredEquipmentTypes field of the detected personal
protective equipment.
|
java.util.List<java.lang.Integer> |
getPersonsWithRequiredEquipment()
An array of IDs for persons who are wearing detected personal protective
equipment.
|
int |
hashCode() |
void |
setPersonsIndeterminate(java.util.Collection<java.lang.Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if
they are wearing personal protective equipment.
|
void |
setPersonsWithoutRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE
specified in the RequiredEquipmentTypes field of the detected personal
protective equipment.
|
void |
setPersonsWithRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective
equipment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ProtectiveEquipmentSummary |
withPersonsIndeterminate(java.util.Collection<java.lang.Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if
they are wearing personal protective equipment.
|
ProtectiveEquipmentSummary |
withPersonsIndeterminate(java.lang.Integer... personsIndeterminate)
An array of IDs for persons where it was not possible to determine if
they are wearing personal protective equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithoutRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE
specified in the RequiredEquipmentTypes field of the detected personal
protective equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithoutRequiredEquipment(java.lang.Integer... personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE
specified in the RequiredEquipmentTypes field of the detected personal
protective equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective
equipment.
|
ProtectiveEquipmentSummary |
withPersonsWithRequiredEquipment(java.lang.Integer... personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective
equipment.
|
public java.util.List<java.lang.Integer> getPersonsWithRequiredEquipment()
An array of IDs for persons who are wearing detected personal protective equipment.
An array of IDs for persons who are wearing detected personal protective equipment.
public void setPersonsWithRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.
public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment(java.lang.Integer... personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.
public ProtectiveEquipmentSummary withPersonsWithRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithRequiredEquipment)
An array of IDs for persons who are wearing detected personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsWithRequiredEquipment
- An array of IDs for persons who are wearing detected personal protective equipment.
public java.util.List<java.lang.Integer> getPersonsWithoutRequiredEquipment()
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
public void setPersonsWithoutRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
personsWithoutRequiredEquipment
- An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(java.lang.Integer... personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsWithoutRequiredEquipment
- An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
public ProtectiveEquipmentSummary withPersonsWithoutRequiredEquipment(java.util.Collection<java.lang.Integer> personsWithoutRequiredEquipment)
An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsWithoutRequiredEquipment
- An array of IDs for persons who are not wearing all of the types of PPE specified in the RequiredEquipmentTypes field of the detected personal protective equipment.
public java.util.List<java.lang.Integer> getPersonsIndeterminate()
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
public void setPersonsIndeterminate(java.util.Collection<java.lang.Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
public ProtectiveEquipmentSummary withPersonsIndeterminate(java.lang.Integer... personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
public ProtectiveEquipmentSummary withPersonsIndeterminate(java.util.Collection<java.lang.Integer> personsIndeterminate)
An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
Returns a reference to this object so that method calls can be chained together.
personsIndeterminate
- An array of IDs for persons where it was not possible to determine if they are wearing personal protective equipment.
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.