@Generated(value="software.amazon.awssdk:codegen") public final class FaceDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FaceDetail.Builder,FaceDetail>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
FaceDetail.Builder |
| Modifier and Type | Method and Description |
|---|---|
AgeRange |
ageRange()
The estimated age range, in years, for the face.
|
Beard |
beard()
Indicates whether or not the face has a beard, and the confidence level in the determination.
|
BoundingBox |
boundingBox()
Bounding box of the face.
|
static FaceDetail.Builder |
builder() |
Float |
confidence()
Confidence level that the bounding box contains a face (and not a different object such as a tree).
|
List<Emotion> |
emotions()
The emotions that appear to be expressed on the face, and the confidence level in the determination.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Eyeglasses |
eyeglasses()
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
|
EyeOpen |
eyesOpen()
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
|
Gender |
gender()
The predicted gender of a detected face.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEmotions()
For responses, this returns true if the service returned a value for the Emotions property.
|
int |
hashCode() |
boolean |
hasLandmarks()
For responses, this returns true if the service returned a value for the Landmarks property.
|
List<Landmark> |
landmarks()
Indicates the location of landmarks on the face.
|
MouthOpen |
mouthOpen()
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
|
Mustache |
mustache()
Indicates whether or not the face has a mustache, and the confidence level in the determination.
|
Pose |
pose()
Indicates the pose of the face as determined by its pitch, roll, and yaw.
|
ImageQuality |
quality()
Identifies image brightness and sharpness.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends FaceDetail.Builder> |
serializableBuilderClass() |
Smile |
smile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
|
Sunglasses |
sunglasses()
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
|
FaceDetail.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BoundingBox boundingBox()
Bounding box of the face. Default attribute.
public final AgeRange ageRange()
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
public final Smile smile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
public final Eyeglasses eyeglasses()
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
public final Sunglasses sunglasses()
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
public final Gender gender()
The predicted gender of a detected face.
public final Beard beard()
Indicates whether or not the face has a beard, and the confidence level in the determination.
public final Mustache mustache()
Indicates whether or not the face has a mustache, and the confidence level in the determination.
public final EyeOpen eyesOpen()
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
public final MouthOpen mouthOpen()
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
public final boolean hasEmotions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasEmotions() method.
public final boolean hasLandmarks()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<Landmark> landmarks()
Indicates the location of landmarks on the face. Default attribute.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasLandmarks() method.
public final Pose pose()
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
public final ImageQuality quality()
Identifies image brightness and sharpness. Default attribute.
public final Float confidence()
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
public FaceDetail.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<FaceDetail.Builder,FaceDetail>public static FaceDetail.Builder builder()
public static Class<? extends FaceDetail.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.