public class ComparedFace
extends java.lang.Object
implements java.io.Serializable
Provides face metadata for target image faces that are analyzed by
CompareFaces
and RecognizeCelebrities
.
Constructor and Description |
---|
ComparedFace() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
java.lang.Float |
getConfidence()
Level of confidence that what the bounding box contains is a face.
|
java.util.List<Landmark> |
getLandmarks()
An array of facial landmarks.
|
Pose |
getPose()
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
ImageQuality |
getQuality()
Identifies face image brightness and sharpness.
|
int |
hashCode() |
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
void |
setConfidence(java.lang.Float confidence)
Level of confidence that what the bounding box contains is a face.
|
void |
setLandmarks(java.util.Collection<Landmark> landmarks)
An array of facial landmarks.
|
void |
setPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
void |
setQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ComparedFace |
withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
ComparedFace |
withConfidence(java.lang.Float confidence)
Level of confidence that what the bounding box contains is a face.
|
ComparedFace |
withLandmarks(java.util.Collection<Landmark> landmarks)
An array of facial landmarks.
|
ComparedFace |
withLandmarks(Landmark... landmarks)
An array of facial landmarks.
|
ComparedFace |
withPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
ComparedFace |
withQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
|
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 ComparedFace 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()
Level of confidence that what the bounding box contains is a face.
Constraints:
Length: 0 - 100
Level of confidence that what the bounding box contains is a face.
public void setConfidence(java.lang.Float confidence)
Level of confidence that what the bounding box contains is a face.
Constraints:
Length: 0 - 100
confidence
- Level of confidence that what the bounding box contains is a face.
public ComparedFace withConfidence(java.lang.Float confidence)
Level of confidence that what the bounding box contains is a face.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- Level of confidence that what the bounding box contains is a face.
public java.util.List<Landmark> getLandmarks()
An array of facial landmarks.
An array of facial landmarks.
public void setLandmarks(java.util.Collection<Landmark> landmarks)
An array of facial landmarks.
landmarks
- An array of facial landmarks.
public ComparedFace withLandmarks(Landmark... landmarks)
An array of facial landmarks.
Returns a reference to this object so that method calls can be chained together.
landmarks
- An array of facial landmarks.
public ComparedFace withLandmarks(java.util.Collection<Landmark> landmarks)
An array of facial landmarks.
Returns a reference to this object so that method calls can be chained together.
landmarks
- An array of facial landmarks.
public Pose getPose()
Indicates the pose of the face as determined by its pitch, roll, and yaw.
Indicates the pose of the face as determined by its pitch, roll, and yaw.
public void setPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
pose
- Indicates the pose of the face as determined by its pitch, roll, and yaw.
public ComparedFace withPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
Returns a reference to this object so that method calls can be chained together.
pose
- Indicates the pose of the face as determined by its pitch, roll, and yaw.
public ImageQuality getQuality()
Identifies face image brightness and sharpness.
Identifies face image brightness and sharpness.
public void setQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
quality
- Identifies face image brightness and sharpness.
public ComparedFace withQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
Returns a reference to this object so that method calls can be chained together.
quality
- Identifies face image brightness and sharpness.
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.