Interface CompareFacesResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CompareFacesResponse.Builder,CompareFacesResponse>,RekognitionResponse.Builder,SdkBuilder<CompareFacesResponse.Builder,CompareFacesResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CompareFacesResponse
public static interface CompareFacesResponse.Builder extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<CompareFacesResponse.Builder,CompareFacesResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompareFacesResponse.BuilderfaceMatches(Collection<CompareFacesMatch> faceMatches)An array of faces in the target image that match the source image face.CompareFacesResponse.BuilderfaceMatches(Consumer<CompareFacesMatch.Builder>... faceMatches)An array of faces in the target image that match the source image face.CompareFacesResponse.BuilderfaceMatches(CompareFacesMatch... faceMatches)An array of faces in the target image that match the source image face.default CompareFacesResponse.BuildersourceImageFace(Consumer<ComparedSourceImageFace.Builder> sourceImageFace)The face in the source image that was used for comparison.CompareFacesResponse.BuildersourceImageFace(ComparedSourceImageFace sourceImageFace)The face in the source image that was used for comparison.CompareFacesResponse.BuildersourceImageOrientationCorrection(String sourceImageOrientationCorrection)The value ofSourceImageOrientationCorrectionis always null.CompareFacesResponse.BuildersourceImageOrientationCorrection(OrientationCorrection sourceImageOrientationCorrection)The value ofSourceImageOrientationCorrectionis always null.CompareFacesResponse.BuildertargetImageOrientationCorrection(String targetImageOrientationCorrection)The value ofTargetImageOrientationCorrectionis always null.CompareFacesResponse.BuildertargetImageOrientationCorrection(OrientationCorrection targetImageOrientationCorrection)The value ofTargetImageOrientationCorrectionis always null.CompareFacesResponse.BuilderunmatchedFaces(Collection<ComparedFace> unmatchedFaces)An array of faces in the target image that did not match the source image face.CompareFacesResponse.BuilderunmatchedFaces(Consumer<ComparedFace.Builder>... unmatchedFaces)An array of faces in the target image that did not match the source image face.CompareFacesResponse.BuilderunmatchedFaces(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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
sourceImageFace
CompareFacesResponse.Builder sourceImageFace(ComparedSourceImageFace 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.Builderavoiding the need to create one manually viaComparedSourceImageFace.builder().When the
Consumercompletes,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:
sourceImageFace(ComparedSourceImageFace)
-
faceMatches
CompareFacesResponse.Builder faceMatches(Collection<CompareFacesMatch> faceMatches)
An array of faces in the target image that match the source image face. Each
CompareFacesMatchobject 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. EachCompareFacesMatchobject 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
CompareFacesResponse.Builder faceMatches(CompareFacesMatch... faceMatches)
An array of faces in the target image that match the source image face. Each
CompareFacesMatchobject 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. EachCompareFacesMatchobject 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
CompareFacesResponse.Builder faceMatches(Consumer<CompareFacesMatch.Builder>... 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 theCompareFacesMatchobject 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.Builderavoiding the need to create one manually viaCompareFacesMatch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#faceMatches(List.) - 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:
#faceMatches(java.util.Collection)
-
unmatchedFaces
CompareFacesResponse.Builder unmatchedFaces(Collection<ComparedFace> 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
CompareFacesResponse.Builder unmatchedFaces(ComparedFace... 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
CompareFacesResponse.Builder unmatchedFaces(Consumer<ComparedFace.Builder>... 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.Builderavoiding the need to create one manually viaComparedFace.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#unmatchedFaces(List.) - 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:
#unmatchedFaces(java.util.Collection)
-
sourceImageOrientationCorrection
CompareFacesResponse.Builder sourceImageOrientationCorrection(String sourceImageOrientationCorrection)
The value of
SourceImageOrientationCorrectionis 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 ofSourceImageOrientationCorrectionis 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:
OrientationCorrection,OrientationCorrection
-
sourceImageOrientationCorrection
CompareFacesResponse.Builder sourceImageOrientationCorrection(OrientationCorrection sourceImageOrientationCorrection)
The value of
SourceImageOrientationCorrectionis 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 ofSourceImageOrientationCorrectionis 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:
OrientationCorrection,OrientationCorrection
-
targetImageOrientationCorrection
CompareFacesResponse.Builder targetImageOrientationCorrection(String targetImageOrientationCorrection)
The value of
TargetImageOrientationCorrectionis 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 ofTargetImageOrientationCorrectionis 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:
OrientationCorrection,OrientationCorrection
-
targetImageOrientationCorrection
CompareFacesResponse.Builder targetImageOrientationCorrection(OrientationCorrection targetImageOrientationCorrection)
The value of
TargetImageOrientationCorrectionis 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 ofTargetImageOrientationCorrectionis 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:
OrientationCorrection,OrientationCorrection
-
-