public class ComparedSourceImageFace
extends java.lang.Object
implements java.io.Serializable
Type that describes the face Amazon Rekognition chose to compare with the faces in the target. This contains a bounding box for the selected face and confidence level that the bounding box contains a face. Note that Amazon Rekognition selects the largest face in the source image for this comparison.
Constructor and Description |
---|
ComparedSourceImageFace() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
java.lang.Float |
getConfidence()
Confidence level that the selected bounding box contains a face.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
void |
setConfidence(java.lang.Float confidence)
Confidence level that the selected bounding box contains a face.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ComparedSourceImageFace |
withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
ComparedSourceImageFace |
withConfidence(java.lang.Float confidence)
Confidence level that the selected bounding box contains a face.
|
public BoundingBox getBoundingBox()
Bounding box of the face.
Bounding box of the face.
public void setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
boundingBox
- Bounding box of the face.
public ComparedSourceImageFace withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- Bounding box of the face.
public java.lang.Float getConfidence()
Confidence level that the selected bounding box contains a face.
Constraints:
Length: 0 - 100
Confidence level that the selected bounding box contains a face.
public void setConfidence(java.lang.Float confidence)
Confidence level that the selected bounding box contains a face.
Constraints:
Length: 0 - 100
confidence
- Confidence level that the selected bounding box contains a face.
public ComparedSourceImageFace withConfidence(java.lang.Float confidence)
Confidence level that the selected bounding box contains a face.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- Confidence level that the selected bounding box contains a face.
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.