Interface CompareFacesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CompareFacesResponse.Builder,
,CompareFacesResponse> RekognitionResponse.Builder
,SdkBuilder<CompareFacesResponse.Builder,
,CompareFacesResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CompareFacesResponse
-
Method Summary
Modifier and TypeMethodDescriptionfaceMatches
(Collection<CompareFacesMatch> faceMatches) An array of faces in the target image that match the source image face.faceMatches
(Consumer<CompareFacesMatch.Builder>... faceMatches) An array of faces in the target image that match the source image face.faceMatches
(CompareFacesMatch... faceMatches) An array of faces in the target image that match the source image face.default CompareFacesResponse.Builder
sourceImageFace
(Consumer<ComparedSourceImageFace.Builder> sourceImageFace) The face in the source image that was used for comparison.sourceImageFace
(ComparedSourceImageFace sourceImageFace) The face in the source image that was used for comparison.sourceImageOrientationCorrection
(String sourceImageOrientationCorrection) The value ofSourceImageOrientationCorrection
is always null.sourceImageOrientationCorrection
(OrientationCorrection sourceImageOrientationCorrection) The value ofSourceImageOrientationCorrection
is always null.targetImageOrientationCorrection
(String targetImageOrientationCorrection) The value ofTargetImageOrientationCorrection
is always null.targetImageOrientationCorrection
(OrientationCorrection targetImageOrientationCorrection) The value ofTargetImageOrientationCorrection
is always null.unmatchedFaces
(Collection<ComparedFace> unmatchedFaces) An array of faces in the target image that did not match the source image face.unmatchedFaces
(Consumer<ComparedFace.Builder>... unmatchedFaces) An array of faces in the target image that did not match the source image face.unmatchedFaces
(ComparedFace... unmatchedFaces) An array of faces in the target image that did not match the source image face.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sourceImageFace
The face in the source image that was used for comparison.
- Parameters:
sourceImageFace
- The face in the source image that was used for comparison.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceImageFace
default CompareFacesResponse.Builder sourceImageFace(Consumer<ComparedSourceImageFace.Builder> sourceImageFace) The face in the source image that was used for comparison.
This is a convenience method that creates an instance of theComparedSourceImageFace.Builder
avoiding the need to create one manually viaComparedSourceImageFace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceImageFace(ComparedSourceImageFace)
.- Parameters:
sourceImageFace
- a consumer that will call methods onComparedSourceImageFace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
faceMatches
An array of faces in the target image that match the source image face. Each
CompareFacesMatch
object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.- Parameters:
faceMatches
- An array of faces in the target image that match the source image face. EachCompareFacesMatch
object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceMatches
An array of faces in the target image that match the source image face. Each
CompareFacesMatch
object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.- Parameters:
faceMatches
- An array of faces in the target image that match the source image face. EachCompareFacesMatch
object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faceMatches
An array of faces in the target image that match the source image face. Each
This is a convenience method that creates an instance of theCompareFacesMatch
object provides the bounding box, the confidence level that the bounding box contains a face, and the similarity score for the face in the bounding box and the face in the source image.CompareFacesMatch.Builder
avoiding the need to create one manually viaCompareFacesMatch.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofaceMatches(List<CompareFacesMatch>)
.- Parameters:
faceMatches
- a consumer that will call methods onCompareFacesMatch.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unmatchedFaces
An array of faces in the target image that did not match the source image face.
- Parameters:
unmatchedFaces
- An array of faces in the target image that did not match the source image face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unmatchedFaces
An array of faces in the target image that did not match the source image face.
- Parameters:
unmatchedFaces
- An array of faces in the target image that did not match the source image face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unmatchedFaces
An array of faces in the target image that did not match the source image face.
This is a convenience method that creates an instance of theComparedFace.Builder
avoiding the need to create one manually viaComparedFace.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tounmatchedFaces(List<ComparedFace>)
.- Parameters:
unmatchedFaces
- a consumer that will call methods onComparedFace.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceImageOrientationCorrection
CompareFacesResponse.Builder sourceImageOrientationCorrection(String sourceImageOrientationCorrection) The value of
SourceImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
sourceImageOrientationCorrection
- The value ofSourceImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceImageOrientationCorrection
CompareFacesResponse.Builder sourceImageOrientationCorrection(OrientationCorrection sourceImageOrientationCorrection) The value of
SourceImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
sourceImageOrientationCorrection
- The value ofSourceImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetImageOrientationCorrection
CompareFacesResponse.Builder targetImageOrientationCorrection(String targetImageOrientationCorrection) The value of
TargetImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
targetImageOrientationCorrection
- The value ofTargetImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetImageOrientationCorrection
CompareFacesResponse.Builder targetImageOrientationCorrection(OrientationCorrection targetImageOrientationCorrection) The value of
TargetImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Parameters:
targetImageOrientationCorrection
- The value ofTargetImageOrientationCorrection
is always null.If the input image is in .jpeg format, it might contain exchangeable image file format (Exif) metadata that includes the image's orientation. Amazon Rekognition uses this orientation information to perform image correction. The bounding box coordinates are translated to represent object locations after the orientation information in the Exif metadata is used to correct the image orientation. Images in .png format don't contain Exif metadata.
Amazon Rekognition doesn’t perform image correction for images in .png format and .jpeg images without orientation information in the image Exif metadata. The bounding box coordinates aren't translated and represent the object locations before the image is rotated.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-