public class FaceDetail
extends java.lang.Object
implements java.io.Serializable
Structure containing attributes of the face that the algorithm detected.
A FaceDetail
object contains either the default facial
attributes or all facial attributes. The default attributes are
BoundingBox
, Confidence
, Landmarks
,
Pose
, and Quality
.
GetFaceDetection is the only Amazon Rekognition Video stored video
operation that can return a FaceDetail
object with all
attributes. To specify which attributes to return, use the
FaceAttributes
input parameter for StartFaceDetection.
The following Amazon Rekognition Video operations return only the default
attributes. The corresponding Start operations don't have a
FaceAttributes
input parameter.
GetCelebrityRecognition
GetPersonTracking
GetFaceSearch
The Amazon Rekognition Image DetectFaces and IndexFaces
operations can return all facial attributes. To specify which attributes to
return, use the Attributes
input parameter for
DetectFaces
. For IndexFaces
, use the
DetectAttributes
input parameter.
Constructor and Description |
---|
FaceDetail() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AgeRange |
getAgeRange()
The estimated age range, in years, for the face.
|
Beard |
getBeard()
Indicates whether or not the face has a beard, and the confidence level
in the determination.
|
BoundingBox |
getBoundingBox()
Bounding box of the face.
|
java.lang.Float |
getConfidence()
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
java.util.List<Emotion> |
getEmotions()
The emotions that appear to be expressed on the face, and the confidence
level in the determination.
|
Eyeglasses |
getEyeglasses()
Indicates whether or not the face is wearing eye glasses, and the
confidence level in the determination.
|
EyeOpen |
getEyesOpen()
Indicates whether or not the eyes on the face are open, and the
confidence level in the determination.
|
Gender |
getGender()
The predicted gender of a detected face.
|
java.util.List<Landmark> |
getLandmarks()
Indicates the location of landmarks on the face.
|
MouthOpen |
getMouthOpen()
Indicates whether or not the mouth on the face is open, and the
confidence level in the determination.
|
Mustache |
getMustache()
Indicates whether or not the face has a mustache, and the confidence
level in the determination.
|
Pose |
getPose()
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
ImageQuality |
getQuality()
Identifies image brightness and sharpness.
|
Smile |
getSmile()
Indicates whether or not the face is smiling, and the confidence level in
the determination.
|
Sunglasses |
getSunglasses()
Indicates whether or not the face is wearing sunglasses, and the
confidence level in the determination.
|
int |
hashCode() |
void |
setAgeRange(AgeRange ageRange)
The estimated age range, in years, for the face.
|
void |
setBeard(Beard beard)
Indicates whether or not the face has a beard, and the confidence level
in the determination.
|
void |
setBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
void |
setConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
void |
setEmotions(java.util.Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence
level in the determination.
|
void |
setEyeglasses(Eyeglasses eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the
confidence level in the determination.
|
void |
setEyesOpen(EyeOpen eyesOpen)
Indicates whether or not the eyes on the face are open, and the
confidence level in the determination.
|
void |
setGender(Gender gender)
The predicted gender of a detected face.
|
void |
setLandmarks(java.util.Collection<Landmark> landmarks)
Indicates the location of landmarks on the face.
|
void |
setMouthOpen(MouthOpen mouthOpen)
Indicates whether or not the mouth on the face is open, and the
confidence level in the determination.
|
void |
setMustache(Mustache mustache)
Indicates whether or not the face has a mustache, and the confidence
level in the determination.
|
void |
setPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
void |
setQuality(ImageQuality quality)
Identifies image brightness and sharpness.
|
void |
setSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in
the determination.
|
void |
setSunglasses(Sunglasses sunglasses)
Indicates whether or not the face is wearing sunglasses, and the
confidence level in the determination.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FaceDetail |
withAgeRange(AgeRange ageRange)
The estimated age range, in years, for the face.
|
FaceDetail |
withBeard(Beard beard)
Indicates whether or not the face has a beard, and the confidence level
in the determination.
|
FaceDetail |
withBoundingBox(BoundingBox boundingBox)
Bounding box of the face.
|
FaceDetail |
withConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a
different object such as a tree).
|
FaceDetail |
withEmotions(java.util.Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence
level in the determination.
|
FaceDetail |
withEmotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence
level in the determination.
|
FaceDetail |
withEyeglasses(Eyeglasses eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the
confidence level in the determination.
|
FaceDetail |
withEyesOpen(EyeOpen eyesOpen)
Indicates whether or not the eyes on the face are open, and the
confidence level in the determination.
|
FaceDetail |
withGender(Gender gender)
The predicted gender of a detected face.
|
FaceDetail |
withLandmarks(java.util.Collection<Landmark> landmarks)
Indicates the location of landmarks on the face.
|
FaceDetail |
withLandmarks(Landmark... landmarks)
Indicates the location of landmarks on the face.
|
FaceDetail |
withMouthOpen(MouthOpen mouthOpen)
Indicates whether or not the mouth on the face is open, and the
confidence level in the determination.
|
FaceDetail |
withMustache(Mustache mustache)
Indicates whether or not the face has a mustache, and the confidence
level in the determination.
|
FaceDetail |
withPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
FaceDetail |
withQuality(ImageQuality quality)
Identifies image brightness and sharpness.
|
FaceDetail |
withSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in
the determination.
|
FaceDetail |
withSunglasses(Sunglasses sunglasses)
Indicates whether or not the face is wearing sunglasses, and the
confidence level in the determination.
|
public BoundingBox getBoundingBox()
Bounding box of the face. Default attribute.
Bounding box of the face. Default attribute.
public void setBoundingBox(BoundingBox boundingBox)
Bounding box of the face. Default attribute.
boundingBox
- Bounding box of the face. Default attribute.
public FaceDetail withBoundingBox(BoundingBox boundingBox)
Bounding box of the face. Default attribute.
Returns a reference to this object so that method calls can be chained together.
boundingBox
- Bounding box of the face. Default attribute.
public AgeRange getAgeRange()
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
public void setAgeRange(AgeRange ageRange)
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
ageRange
- The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
public FaceDetail withAgeRange(AgeRange ageRange)
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
Returns a reference to this object so that method calls can be chained together.
ageRange
- The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
public Smile getSmile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
Indicates whether or not the face is smiling, and the confidence level in the determination.
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 FaceDetail withSmile(Smile smile)
Indicates whether or not the face is smiling, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
smile
- Indicates whether or not the face is smiling, and the confidence level in the determination.
public Eyeglasses getEyeglasses()
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
public void setEyeglasses(Eyeglasses eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
eyeglasses
- Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
public FaceDetail withEyeglasses(Eyeglasses eyeglasses)
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
eyeglasses
- Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
public Sunglasses getSunglasses()
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
public void setSunglasses(Sunglasses sunglasses)
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
sunglasses
- Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
public FaceDetail withSunglasses(Sunglasses sunglasses)
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
sunglasses
- Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
public Gender getGender()
The predicted gender of a detected face.
The predicted gender of a detected face.
public void setGender(Gender gender)
The predicted gender of a detected face.
gender
- The predicted gender of a detected face.
public FaceDetail withGender(Gender gender)
The predicted gender of a detected face.
Returns a reference to this object so that method calls can be chained together.
gender
- The predicted gender of a detected face.
public Beard getBeard()
Indicates whether or not the face has a beard, and the confidence level in the determination.
Indicates whether or not the face has a beard, and the confidence level in the determination.
public void setBeard(Beard beard)
Indicates whether or not the face has a beard, and the confidence level in the determination.
beard
- Indicates whether or not the face has a beard, and the confidence level in the determination.
public FaceDetail withBeard(Beard beard)
Indicates whether or not the face has a beard, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
beard
- Indicates whether or not the face has a beard, and the confidence level in the determination.
public Mustache getMustache()
Indicates whether or not the face has a mustache, and the confidence level in the determination.
Indicates whether or not the face has a mustache, and the confidence level in the determination.
public void setMustache(Mustache mustache)
Indicates whether or not the face has a mustache, and the confidence level in the determination.
mustache
- Indicates whether or not the face has a mustache, and the confidence level in the determination.
public FaceDetail withMustache(Mustache mustache)
Indicates whether or not the face has a mustache, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
mustache
- Indicates whether or not the face has a mustache, and the confidence level in the determination.
public EyeOpen getEyesOpen()
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
public void setEyesOpen(EyeOpen eyesOpen)
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
eyesOpen
- Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
public FaceDetail withEyesOpen(EyeOpen eyesOpen)
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
eyesOpen
- Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
public MouthOpen getMouthOpen()
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
public void setMouthOpen(MouthOpen mouthOpen)
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
mouthOpen
- Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
public FaceDetail withMouthOpen(MouthOpen mouthOpen)
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
Returns a reference to this object so that method calls can be chained together.
mouthOpen
- Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
public java.util.List<Emotion> getEmotions()
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
public void setEmotions(java.util.Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
public FaceDetail withEmotions(Emotion... emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
Returns a reference to this object so that method calls can be chained together.
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
public FaceDetail withEmotions(java.util.Collection<Emotion> emotions)
The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
Returns a reference to this object so that method calls can be chained together.
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. The API is only making a determination of the physical appearance of a person's face. It is not a determination of the person’s internal emotional state and should not be used in such a way. For example, a person pretending to have a sad face might not be sad emotionally.
public java.util.List<Landmark> getLandmarks()
Indicates the location of landmarks on the face. Default attribute.
Indicates the location of landmarks on the face. Default attribute.
public void setLandmarks(java.util.Collection<Landmark> landmarks)
Indicates the location of landmarks on the face. Default attribute.
landmarks
- Indicates the location of landmarks on the face. Default attribute.
public FaceDetail withLandmarks(Landmark... landmarks)
Indicates the location of landmarks on the face. Default attribute.
Returns a reference to this object so that method calls can be chained together.
landmarks
- Indicates the location of landmarks on the face. Default attribute.
public FaceDetail withLandmarks(java.util.Collection<Landmark> landmarks)
Indicates the location of landmarks on the face. Default attribute.
Returns a reference to this object so that method calls can be chained together.
landmarks
- Indicates the location of landmarks on the face. Default attribute.
public Pose getPose()
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
public void setPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
pose
- Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
public FaceDetail withPose(Pose pose)
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
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. Default attribute.
public ImageQuality getQuality()
Identifies image brightness and sharpness. Default attribute.
Identifies image brightness and sharpness. Default attribute.
public void setQuality(ImageQuality quality)
Identifies image brightness and sharpness. Default attribute.
quality
- Identifies image brightness and sharpness. Default attribute.
public FaceDetail withQuality(ImageQuality quality)
Identifies image brightness and sharpness. Default attribute.
Returns a reference to this object so that method calls can be chained together.
quality
- Identifies image brightness and sharpness. Default attribute.
public java.lang.Float getConfidence()
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
Constraints:
Length: 0 - 100
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
public void setConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
Constraints:
Length: 0 - 100
confidence
- Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
public FaceDetail withConfidence(java.lang.Float confidence)
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
confidence
- Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
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.