Interface FaceDetail.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FaceDetail.Builder,,FaceDetail> SdkBuilder<FaceDetail.Builder,,FaceDetail> SdkPojo
- Enclosing class:
FaceDetail
-
Method Summary
Modifier and TypeMethodDescriptiondefault FaceDetail.BuilderageRange(Consumer<AgeRange.Builder> ageRange) The estimated age range, in years, for the face.The estimated age range, in years, for the face.default FaceDetail.Builderbeard(Consumer<Beard.Builder> beard) 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.default FaceDetail.BuilderboundingBox(Consumer<BoundingBox.Builder> boundingBox) Bounding box of the face.boundingBox(BoundingBox boundingBox) Bounding box of the face.confidence(Float confidence) Confidence level that the bounding box contains a face (and not a different object such as a tree).emotions(Collection<Emotion> emotions) The emotions that appear to be expressed on the face, and the confidence level in the determination.emotions(Consumer<Emotion.Builder>... emotions) The emotions that appear to be expressed on the face, and the confidence level in the determination.The emotions that appear to be expressed on the face, and the confidence level in the determination.default FaceDetail.BuildereyeDirection(Consumer<EyeDirection.Builder> eyeDirection) Indicates the direction the eyes are gazing in, as defined by pitch and yaw.eyeDirection(EyeDirection eyeDirection) Indicates the direction the eyes are gazing in, as defined by pitch and yaw.default FaceDetail.Buildereyeglasses(Consumer<Eyeglasses.Builder> eyeglasses) Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.eyeglasses(Eyeglasses eyeglasses) Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.default FaceDetail.BuildereyesOpen(Consumer<EyeOpen.Builder> eyesOpen) 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.default FaceDetail.BuilderfaceOccluded(Consumer<FaceOccluded.Builder> faceOccluded) FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.faceOccluded(FaceOccluded faceOccluded) FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.default FaceDetail.Buildergender(Consumer<Gender.Builder> gender) The predicted gender of a detected face.The predicted gender of a detected face.landmarks(Collection<Landmark> landmarks) Indicates the location of landmarks on the face.landmarks(Consumer<Landmark.Builder>... landmarks) Indicates the location of landmarks on the face.Indicates the location of landmarks on the face.default FaceDetail.BuildermouthOpen(Consumer<MouthOpen.Builder> mouthOpen) 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.default FaceDetail.Buildermustache(Consumer<Mustache.Builder> mustache) 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.default FaceDetail.Builderpose(Consumer<Pose.Builder> pose) Indicates the pose of the face as determined by its pitch, roll, and yaw.Indicates the pose of the face as determined by its pitch, roll, and yaw.default FaceDetail.Builderquality(Consumer<ImageQuality.Builder> quality) Identifies image brightness and sharpness.quality(ImageQuality quality) Identifies image brightness and sharpness.default FaceDetail.Buildersmile(Consumer<Smile.Builder> smile) 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.default FaceDetail.Buildersunglasses(Consumer<Sunglasses.Builder> sunglasses) Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.sunglasses(Sunglasses sunglasses) Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
boundingBox
Bounding box of the face. Default attribute.
- Parameters:
boundingBox- Bounding box of the face. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
Bounding box of the face. Default attribute.
This is a convenience method that creates an instance of theBoundingBox.Builderavoiding the need to create one manually viaBoundingBox.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toboundingBox(BoundingBox).- Parameters:
boundingBox- a consumer that will call methods onBoundingBox.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ageRange
The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.
- Parameters:
ageRange- The estimated age range, in years, for the face. Low represents the lowest estimated age and High represents the highest estimated age.- Returns:
- 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.
This is a convenience method that creates an instance of theAgeRange.Builderavoiding the need to create one manually viaAgeRange.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toageRange(AgeRange).- Parameters:
ageRange- a consumer that will call methods onAgeRange.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
smile
Indicates whether or not the face is smiling, and the confidence level in the determination.
- Parameters:
smile- Indicates whether or not the face is smiling, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theSmile.Builderavoiding the need to create one manually viaSmile.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosmile(Smile).- Parameters:
smile- a consumer that will call methods onSmile.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eyeglasses
Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.
- Parameters:
eyeglasses- Indicates whether or not the face is wearing eye glasses, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theEyeglasses.Builderavoiding the need to create one manually viaEyeglasses.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyeglasses(Eyeglasses).- Parameters:
eyeglasses- a consumer that will call methods onEyeglasses.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sunglasses
Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.
- Parameters:
sunglasses- Indicates whether or not the face is wearing sunglasses, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theSunglasses.Builderavoiding the need to create one manually viaSunglasses.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosunglasses(Sunglasses).- Parameters:
sunglasses- a consumer that will call methods onSunglasses.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gender
The predicted gender of a detected face.
- Parameters:
gender- The predicted gender of a detected face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gender
The predicted gender of a detected face.
This is a convenience method that creates an instance of theGender.Builderavoiding the need to create one manually viaGender.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togender(Gender).- Parameters:
gender- a consumer that will call methods onGender.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
beard
Indicates whether or not the face has a beard, and the confidence level in the determination.
- Parameters:
beard- Indicates whether or not the face has a beard, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theBeard.Builderavoiding the need to create one manually viaBeard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobeard(Beard).- Parameters:
beard- a consumer that will call methods onBeard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mustache
Indicates whether or not the face has a mustache, and the confidence level in the determination.
- Parameters:
mustache- Indicates whether or not the face has a mustache, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theMustache.Builderavoiding the need to create one manually viaMustache.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomustache(Mustache).- Parameters:
mustache- a consumer that will call methods onMustache.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eyesOpen
Indicates whether or not the eyes on the face are open, and the confidence level in the determination.
- Parameters:
eyesOpen- Indicates whether or not the eyes on the face are open, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theEyeOpen.Builderavoiding the need to create one manually viaEyeOpen.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyesOpen(EyeOpen).- Parameters:
eyesOpen- a consumer that will call methods onEyeOpen.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mouthOpen
Indicates whether or not the mouth on the face is open, and the confidence level in the determination.
- Parameters:
mouthOpen- Indicates whether or not the mouth on the face is open, and the confidence level in the determination.- Returns:
- 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.
This is a convenience method that creates an instance of theMouthOpen.Builderavoiding the need to create one manually viaMouthOpen.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomouthOpen(MouthOpen).- Parameters:
mouthOpen- a consumer that will call methods onMouthOpen.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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:
- 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.
- Parameters:
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:
- 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.
This is a convenience method that creates an instance of theEmotion.Builderavoiding the need to create one manually viaEmotion.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toemotions(List<Emotion>).- Parameters:
emotions- a consumer that will call methods onEmotion.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
landmarks
Indicates the location of landmarks on the face. Default attribute.
- Parameters:
landmarks- Indicates the location of landmarks on the face. Default attribute.- Returns:
- 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.
- Parameters:
landmarks- Indicates the location of landmarks on the face. Default attribute.- Returns:
- 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.
This is a convenience method that creates an instance of theLandmark.Builderavoiding the need to create one manually viaLandmark.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolandmarks(List<Landmark>).- Parameters:
landmarks- a consumer that will call methods onLandmark.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pose
Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.
- Parameters:
pose- Indicates the pose of the face as determined by its pitch, roll, and yaw. Default attribute.- Returns:
- 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.
This is a convenience method that creates an instance of thePose.Builderavoiding the need to create one manually viaPose.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topose(Pose).- Parameters:
pose- a consumer that will call methods onPose.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
quality
Identifies image brightness and sharpness. Default attribute.
- Parameters:
quality- Identifies image brightness and sharpness. Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quality
Identifies image brightness and sharpness. Default attribute.
This is a convenience method that creates an instance of theImageQuality.Builderavoiding the need to create one manually viaImageQuality.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toquality(ImageQuality).- Parameters:
quality- a consumer that will call methods onImageQuality.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confidence
Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.
- Parameters:
confidence- Confidence level that the bounding box contains a face (and not a different object such as a tree). Default attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceOccluded
FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.- Parameters:
faceOccluded-FaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceOccluded
This is a convenience method that creates an instance of theFaceOccludedshould return "true" with a high confidence score if a detected face’s eyes, nose, and mouth are partially captured or if they are covered by masks, dark sunglasses, cell phones, hands, or other objects.FaceOccludedshould return "false" with a high confidence score if common occurrences that do not impact face verification are detected, such as eye glasses, lightly tinted sunglasses, strands of hair, and others.FaceOccluded.Builderavoiding the need to create one manually viaFaceOccluded.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofaceOccluded(FaceOccluded).- Parameters:
faceOccluded- a consumer that will call methods onFaceOccluded.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
eyeDirection
Indicates the direction the eyes are gazing in, as defined by pitch and yaw.
- Parameters:
eyeDirection- Indicates the direction the eyes are gazing in, as defined by pitch and yaw.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eyeDirection
Indicates the direction the eyes are gazing in, as defined by pitch and yaw.
This is a convenience method that creates an instance of theEyeDirection.Builderavoiding the need to create one manually viaEyeDirection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toeyeDirection(EyeDirection).- Parameters:
eyeDirection- a consumer that will call methods onEyeDirection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-