@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
.
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 . 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 and 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 detected on the face, and the confidence level in the determination.
|
boolean |
equals(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()
Gender of the face and the confidence level in the determination.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public BoundingBox boundingBox()
Bounding box of the face. Default attribute.
public 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 Smile smile()
Indicates whether or not the face is smiling, and the confidence level in the determination.
public Eyeglasses eyeglasses()
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
public Sunglasses sunglasses()
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
public Gender gender()
Gender of the face and the confidence level in the determination.
public Beard beard()
Indicates whether or not the face has a beard, and the confidence level in the determination.
public Mustache mustache()
Indicates whether or not the face has a mustache, and the confidence level in the determination.
public EyeOpen eyesOpen()
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
public MouthOpen mouthOpen()
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
public List<Emotion> emotions()
The emotions detected on the face, and the confidence level in the determination. For example, HAPPY, SAD, and ANGRY.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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.
public Pose pose()
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
public ImageQuality quality()
Identifies image brightness and sharpness. Default attribute.
public 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<FaceDetail.Builder,FaceDetail>
public static FaceDetail.Builder builder()
public static Class<? extends FaceDetail.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.