public static interface CompareFacesResponse.Builder extends RekognitionResponse.Builder, SdkPojo, CopyableBuilder<CompareFacesResponse.Builder,CompareFacesResponse>
Modifier and Type | Method and Description |
---|---|
CompareFacesResponse.Builder |
faceMatches(Collection<CompareFacesMatch> faceMatches)
An array of faces in the target image that match the source image face.
|
CompareFacesResponse.Builder |
faceMatches(CompareFacesMatch... faceMatches)
An array of faces in the target image that match the source image face.
|
CompareFacesResponse.Builder |
faceMatches(Consumer<CompareFacesMatch.Builder>... faceMatches)
An array of faces in the target image that match the source image face.
|
CompareFacesResponse.Builder |
sourceImageFace(ComparedSourceImageFace sourceImageFace)
The face in the source image that was used for comparison.
|
default CompareFacesResponse.Builder |
sourceImageFace(Consumer<ComparedSourceImageFace.Builder> sourceImageFace)
The face in the source image that was used for comparison.
|
CompareFacesResponse.Builder |
sourceImageOrientationCorrection(OrientationCorrection sourceImageOrientationCorrection)
The value of
SourceImageOrientationCorrection is always null. |
CompareFacesResponse.Builder |
sourceImageOrientationCorrection(String sourceImageOrientationCorrection)
The value of
SourceImageOrientationCorrection is always null. |
CompareFacesResponse.Builder |
targetImageOrientationCorrection(OrientationCorrection targetImageOrientationCorrection)
The value of
TargetImageOrientationCorrection is always null. |
CompareFacesResponse.Builder |
targetImageOrientationCorrection(String targetImageOrientationCorrection)
The value of
TargetImageOrientationCorrection is always null. |
CompareFacesResponse.Builder |
unmatchedFaces(Collection<ComparedFace> unmatchedFaces)
An array of faces in the target image that did not match the source image face.
|
CompareFacesResponse.Builder |
unmatchedFaces(ComparedFace... unmatchedFaces)
An array of faces in the target image that did not match the source image face.
|
CompareFacesResponse.Builder |
unmatchedFaces(Consumer<ComparedFace.Builder>... unmatchedFaces)
An array of faces in the target image that did not match the source image face.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
CompareFacesResponse.Builder sourceImageFace(ComparedSourceImageFace sourceImageFace)
The face in the source image that was used for comparison.
sourceImageFace
- The face in the source image that was used for comparison.default CompareFacesResponse.Builder sourceImageFace(Consumer<ComparedSourceImageFace.Builder> sourceImageFace)
The face in the source image that was used for comparison.
This is a convenience that creates an instance of theComparedSourceImageFace.Builder
avoiding the
need to create one manually via ComparedSourceImageFace.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to sourceImageFace(ComparedSourceImageFace)
.sourceImageFace
- a consumer that will call methods on ComparedSourceImageFace.Builder
sourceImageFace(ComparedSourceImageFace)
CompareFacesResponse.Builder faceMatches(Collection<CompareFacesMatch> 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.
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.CompareFacesResponse.Builder faceMatches(CompareFacesMatch... 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.
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.CompareFacesResponse.Builder faceMatches(Consumer<CompareFacesMatch.Builder>... 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.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #faceMatches(List)
.faceMatches
- a consumer that will call methods on List.Builder
#faceMatches(List)
CompareFacesResponse.Builder unmatchedFaces(Collection<ComparedFace> unmatchedFaces)
An array of faces in the target image that did not match the source image face.
unmatchedFaces
- An array of faces in the target image that did not match the source image face.CompareFacesResponse.Builder unmatchedFaces(ComparedFace... unmatchedFaces)
An array of faces in the target image that did not match the source image face.
unmatchedFaces
- An array of faces in the target image that did not match the source image face.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 that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #unmatchedFaces(List)
.unmatchedFaces
- a consumer that will call methods on List.Builder
#unmatchedFaces(List)
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.
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.
OrientationCorrection
,
OrientationCorrection
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.
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.
OrientationCorrection
,
OrientationCorrection
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.
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.
OrientationCorrection
,
OrientationCorrection
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.
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.
OrientationCorrection
,
OrientationCorrection
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.