public class CompareFacesMatch
extends java.lang.Object
implements java.io.Serializable
Provides information about a face in a target image that matches the source
image face analyzed by CompareFaces
. The Face
property contains the bounding box of the face in the target image. The
Similarity
property is the confidence that the source image face
matches the face in the bounding box.
Constructor and Description |
---|
CompareFacesMatch() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ComparedFace |
getFace()
Provides face metadata (bounding box and confidence that the bounding box
actually contains a face).
|
java.lang.Float |
getSimilarity()
Level of confidence that the faces match.
|
int |
hashCode() |
void |
setFace(ComparedFace face)
Provides face metadata (bounding box and confidence that the bounding box
actually contains a face).
|
void |
setSimilarity(java.lang.Float similarity)
Level of confidence that the faces match.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CompareFacesMatch |
withFace(ComparedFace face)
Provides face metadata (bounding box and confidence that the bounding box
actually contains a face).
|
CompareFacesMatch |
withSimilarity(java.lang.Float similarity)
Level of confidence that the faces match.
|
public java.lang.Float getSimilarity()
Level of confidence that the faces match.
Constraints:
Length: 0 - 100
Level of confidence that the faces match.
public void setSimilarity(java.lang.Float similarity)
Level of confidence that the faces match.
Constraints:
Length: 0 - 100
similarity
- Level of confidence that the faces match.
public CompareFacesMatch withSimilarity(java.lang.Float similarity)
Level of confidence that the faces match.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
similarity
- Level of confidence that the faces match.
public ComparedFace getFace()
Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
public void setFace(ComparedFace face)
Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
face
- Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
public CompareFacesMatch withFace(ComparedFace face)
Provides face metadata (bounding box and confidence that the bounding box actually contains a face).
Returns a reference to this object so that method calls can be chained together.
face
- Provides face metadata (bounding box and confidence that the bounding box actually 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.