@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 analysed 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<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 |
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 |
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.
|
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(Float confidence)
Level of confidence that what the bounding box contains is a face.
|
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.
|
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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.