@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ComparedFace extends Object implements Serializable, Cloneable, StructuredPojo
Provides face metadata for target image faces that are analyzed by CompareFaces
and
RecognizeCelebrities
.
Constructor and Description |
---|
ComparedFace() |
Modifier and Type | Method and Description |
---|---|
ComparedFace |
clone() |
boolean |
equals(Object obj) |
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
Float |
getConfidence()
Level of confidence that what the bounding box contains is a face.
|
List<Emotion> |
getEmotions()
The emotions that appear to be expressed on the face, and the confidence level in the determination.
|
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.
|
Smile |
getSmile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
|
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)
Level of confidence that what the bounding box contains is a face.
|
void |
setEmotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination.
|
void |
setLandmarks(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.
|
void |
setSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
|
String |
toString()
Returns a string representation of this object.
|
ComparedFace |
withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
ComparedFace |
withConfidence(Float confidence)
Level of confidence that what the bounding box contains is a face.
|
ComparedFace |
withEmotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination.
|
ComparedFace |
withEmotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination.
|
ComparedFace |
withLandmarks(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.
|
ComparedFace |
withSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
|
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 ComparedFace withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
boundingBox
- Bounding box of the face.public void setConfidence(Float confidence)
Level of confidence that what the bounding box contains is a face.
confidence
- Level of confidence that what the bounding box contains is a face.public Float getConfidence()
Level of confidence that what the bounding box contains is a face.
public ComparedFace withConfidence(Float confidence)
Level of confidence that what the bounding box contains is a face.
confidence
- Level of confidence that what the bounding box contains is a face.public List<Landmark> getLandmarks()
An array of facial landmarks.
public void setLandmarks(Collection<Landmark> landmarks)
An array of facial landmarks.
landmarks
- An array of facial landmarks.public ComparedFace withLandmarks(Landmark... landmarks)
An array of facial landmarks.
NOTE: This method appends the values to the existing list (if any). Use
setLandmarks(java.util.Collection)
or withLandmarks(java.util.Collection)
if you want to
override the existing values.
landmarks
- An array of facial landmarks.public ComparedFace withLandmarks(Collection<Landmark> landmarks)
An array of facial landmarks.
landmarks
- An array of facial landmarks.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 Pose getPose()
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.
pose
- Indicates the pose of the face as determined by its pitch, roll, and yaw.public void setQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
quality
- Identifies face image brightness and sharpness.public ImageQuality getQuality()
Identifies face image brightness and sharpness.
public ComparedFace withQuality(ImageQuality quality)
Identifies face image brightness and sharpness.
quality
- Identifies face image brightness and sharpness.public List<Emotion> getEmotions()
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
public void setEmotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid
values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and
"Fear".public ComparedFace withEmotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
NOTE: This method appends the values to the existing list (if any). Use
setEmotions(java.util.Collection)
or withEmotions(java.util.Collection)
if you want to override
the existing values.
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid
values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and
"Fear".public ComparedFace withEmotions(Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid
values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and
"Fear".public void setSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
smile
- Indicates whether or not the face is smiling, and the confidence level in the determination.public Smile getSmile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
public ComparedFace withSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
smile
- Indicates whether or not the face is smiling, and the confidence level in the determination.public String toString()
toString
in class Object
Object.toString()
public ComparedFace clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.