@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComparedSourceImageFace extends Object implements Serializable, Cloneable, StructuredPojo
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 |
---|---|
ComparedSourceImageFace |
clone() |
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
Float |
getConfidence()
Confidence level that the selected bounding box contains a face.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
void |
setConfidence(Float confidence)
Confidence level that the selected bounding box contains a face.
|
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(Float confidence)
Confidence level that the selected bounding box contains a face.
|
public void setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
boundingBox
- Bounding box of the face.public BoundingBox getBoundingBox()
Bounding box of the face.
public ComparedSourceImageFace withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
boundingBox
- Bounding box of the face.public void setConfidence(Float confidence)
Confidence level that the selected bounding box contains a face.
confidence
- Confidence level that the selected bounding box contains a face.public Float getConfidence()
Confidence level that the selected bounding box contains a face.
public ComparedSourceImageFace withConfidence(Float confidence)
Confidence level that the selected bounding box contains a face.
confidence
- Confidence level that the selected bounding box contains a face.public String toString()
toString
in class Object
Object.toString()
public ComparedSourceImageFace clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.