Interface ComparedFace.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ComparedFace.Builder,
,ComparedFace> SdkBuilder<ComparedFace.Builder,
,ComparedFace> SdkPojo
- Enclosing class:
ComparedFace
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComparedFace.Builder
boundingBox
(Consumer<BoundingBox.Builder> boundingBox) Bounding box of the face.boundingBox
(BoundingBox boundingBox) Bounding box of the face.confidence
(Float confidence) Level of confidence that what the bounding box contains is a face.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.landmarks
(Collection<Landmark> landmarks) An array of facial landmarks.landmarks
(Consumer<Landmark.Builder>... landmarks) An array of facial landmarks.An array of facial landmarks.default ComparedFace.Builder
pose
(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 ComparedFace.Builder
quality
(Consumer<ImageQuality.Builder> quality) Identifies face image brightness and sharpness.quality
(ImageQuality quality) Identifies face image brightness and sharpness.default ComparedFace.Builder
smile
(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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
boundingBox
Bounding box of the face.
- Parameters:
boundingBox
- Bounding box of the face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
boundingBox
Bounding box of the face.
This is a convenience method that creates an instance of theBoundingBox.Builder
avoiding the need to create one manually viaBoundingBox.builder()
.When the
Consumer
completes,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:
-
confidence
Level of confidence that what the bounding box contains is a face.
- Parameters:
confidence
- Level of confidence that what the bounding box contains is a face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
An array of facial landmarks.
- Parameters:
landmarks
- An array of facial landmarks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
An array of facial landmarks.
- Parameters:
landmarks
- An array of facial landmarks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
landmarks
An array of facial landmarks.
This is a convenience method that creates an instance of theLandmark.Builder
avoiding the need to create one manually viaLandmark.builder()
.When the
Consumer
completes,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.
- Parameters:
pose
- Indicates the pose of the face as determined by its pitch, roll, and yaw.- 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.
This is a convenience method that creates an instance of thePose.Builder
avoiding the need to create one manually viaPose.builder()
.When the
Consumer
completes,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 face image brightness and sharpness.
- Parameters:
quality
- Identifies face image brightness and sharpness.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
quality
Identifies face image brightness and sharpness.
This is a convenience method that creates an instance of theImageQuality.Builder
avoiding the need to create one manually viaImageQuality.builder()
.When the
Consumer
completes,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:
-
emotions
The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
- Parameters:
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".- 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. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
- Parameters:
emotions
- The emotions that appear to be expressed on the face, and the confidence level in the determination. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".- 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. Valid values include "Happy", "Sad", "Angry", "Confused", "Disgusted", "Surprised", "Calm", "Unknown", and "Fear".
This is a convenience method that creates an instance of theEmotion.Builder
avoiding the need to create one manually viaEmotion.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaSmile.builder()
.When the
Consumer
completes,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:
-