public class ProtectiveEquipmentSummarizationAttributes
extends java.lang.Object
implements java.io.Serializable
Specifies summary attributes to return from a call to
DetectProtectiveEquipment. You can specify which types of PPE to
summarize. You can also specify a minimum confidence value for detections.
Summary information is returned in the Summary
(ProtectiveEquipmentSummary) field of the response from
DetectProtectiveEquipment
. The summary includes which persons in
an image were detected wearing the requested types of person protective
equipment (PPE), which persons were detected as not wearing PPE, and the
persons in which a determination could not be made. For more information, see
ProtectiveEquipmentSummary.
Constructor and Description |
---|
ProtectiveEquipmentSummarizationAttributes() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Float |
getMinConfidence()
The minimum confidence level for which you want summary information.
|
java.util.List<java.lang.String> |
getRequiredEquipmentTypes()
An array of personal protective equipment types for which you want
summary information.
|
int |
hashCode() |
void |
setMinConfidence(java.lang.Float minConfidence)
The minimum confidence level for which you want summary information.
|
void |
setRequiredEquipmentTypes(java.util.Collection<java.lang.String> requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ProtectiveEquipmentSummarizationAttributes |
withMinConfidence(java.lang.Float minConfidence)
The minimum confidence level for which you want summary information.
|
ProtectiveEquipmentSummarizationAttributes |
withRequiredEquipmentTypes(java.util.Collection<java.lang.String> requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information.
|
ProtectiveEquipmentSummarizationAttributes |
withRequiredEquipmentTypes(java.lang.String... requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information.
|
public ProtectiveEquipmentSummarizationAttributes()
public java.lang.Float getMinConfidence()
The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between 50-100% as
DetectProtectiveEquipment
returns predictions only where the
detection confidence is between 50% - 100%. If you specify a value that
is less than 50%, the results are the same specifying a value of 50%.
Constraints:
Length: 0 - 100
The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between
50-100% as DetectProtectiveEquipment
returns
predictions only where the detection confidence is between 50% -
100%. If you specify a value that is less than 50%, the results
are the same specifying a value of 50%.
public void setMinConfidence(java.lang.Float minConfidence)
The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between 50-100% as
DetectProtectiveEquipment
returns predictions only where the
detection confidence is between 50% - 100%. If you specify a value that
is less than 50%, the results are the same specifying a value of 50%.
Constraints:
Length: 0 - 100
minConfidence
- The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between
50-100% as DetectProtectiveEquipment
returns
predictions only where the detection confidence is between 50%
- 100%. If you specify a value that is less than 50%, the
results are the same specifying a value of 50%.
public ProtectiveEquipmentSummarizationAttributes withMinConfidence(java.lang.Float minConfidence)
The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between 50-100% as
DetectProtectiveEquipment
returns predictions only where the
detection confidence is between 50% - 100%. If you specify a value that
is less than 50%, the results are the same specifying a value of 50%.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
minConfidence
- The minimum confidence level for which you want summary information. The confidence level applies to person detection, body part detection, equipment detection, and body part coverage. Amazon Rekognition doesn't return summary information with a confidence than this specified value. There isn't a default value.
Specify a MinConfidence
value that is between
50-100% as DetectProtectiveEquipment
returns
predictions only where the detection confidence is between 50%
- 100%. If you specify a value that is less than 50%, the
results are the same specifying a value of 50%.
public java.util.List<java.lang.String> getRequiredEquipmentTypes()
An array of personal protective equipment types for which you want
summary information. If a person is detected wearing a required
requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned in
ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
An array of personal protective equipment types for which you
want summary information. If a person is detected wearing a
required requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned in
ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
public void setRequiredEquipmentTypes(java.util.Collection<java.lang.String> requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information. If a person is detected wearing a required
requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned in
ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
requiredEquipmentTypes
-
An array of personal protective equipment types for which you
want summary information. If a person is detected wearing a
required requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned
in ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
public ProtectiveEquipmentSummarizationAttributes withRequiredEquipmentTypes(java.lang.String... requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information. If a person is detected wearing a required
requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned in
ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
Returns a reference to this object so that method calls can be chained together.
requiredEquipmentTypes
-
An array of personal protective equipment types for which you
want summary information. If a person is detected wearing a
required requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned
in ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
public ProtectiveEquipmentSummarizationAttributes withRequiredEquipmentTypes(java.util.Collection<java.lang.String> requiredEquipmentTypes)
An array of personal protective equipment types for which you want
summary information. If a person is detected wearing a required
requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned in
ProtectiveEquipmentSummary by
DetectProtectiveEquipment
.
Returns a reference to this object so that method calls can be chained together.
requiredEquipmentTypes
-
An array of personal protective equipment types for which you
want summary information. If a person is detected wearing a
required requipment type, the person's ID is added to the
PersonsWithRequiredEquipment
array field returned
in ProtectiveEquipmentSummary by
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.