public class FaceMatch
extends java.lang.Object
implements java.io.Serializable
Provides face metadata. In addition, it also provides the confidence in the match of this face with the input face.
Constructor and Description |
---|
FaceMatch() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Face |
getFace()
Describes the face properties such as the bounding box, face ID, image ID
of the source image, and external image ID that you assigned.
|
java.lang.Float |
getSimilarity()
Confidence in the match of this face with the input face.
|
int |
hashCode() |
void |
setFace(Face face)
Describes the face properties such as the bounding box, face ID, image ID
of the source image, and external image ID that you assigned.
|
void |
setSimilarity(java.lang.Float similarity)
Confidence in the match of this face with the input face.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FaceMatch |
withFace(Face face)
Describes the face properties such as the bounding box, face ID, image ID
of the source image, and external image ID that you assigned.
|
FaceMatch |
withSimilarity(java.lang.Float similarity)
Confidence in the match of this face with the input face.
|
public java.lang.Float getSimilarity()
Confidence in the match of this face with the input face.
Constraints:
Length: 0 - 100
Confidence in the match of this face with the input face.
public void setSimilarity(java.lang.Float similarity)
Confidence in the match of this face with the input face.
Constraints:
Length: 0 - 100
similarity
- Confidence in the match of this face with the input face.
public FaceMatch withSimilarity(java.lang.Float similarity)
Confidence in the match of this face with the input face.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
similarity
- Confidence in the match of this face with the input face.
public Face getFace()
Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
public void setFace(Face face)
Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
face
- Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
public FaceMatch withFace(Face face)
Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
Returns a reference to this object so that method calls can be chained together.
face
- Describes the face properties such as the bounding box, face ID, image ID of the source image, and external image ID that you assigned.
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.