Interface CompareFacesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CompareFacesRequest.Builder,
,CompareFacesRequest> RekognitionRequest.Builder
,SdkBuilder<CompareFacesRequest.Builder,
,CompareFacesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CompareFacesRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.qualityFilter
(String qualityFilter) A filter that specifies a quality bar for how much filtering is done to identify faces.qualityFilter
(QualityFilter qualityFilter) A filter that specifies a quality bar for how much filtering is done to identify faces.similarityThreshold
(Float similarityThreshold) The minimum level of confidence in the face matches that a match must meet to be included in theFaceMatches
array.default CompareFacesRequest.Builder
sourceImage
(Consumer<Image.Builder> sourceImage) The input image as base64-encoded bytes or an S3 object.sourceImage
(Image sourceImage) The input image as base64-encoded bytes or an S3 object.default CompareFacesRequest.Builder
targetImage
(Consumer<Image.Builder> targetImage) The target image as base64-encoded bytes or an S3 object.targetImage
(Image targetImage) The target image as base64-encoded bytes or an S3 object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
build
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
-
sourceImage
The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.- Parameters:
sourceImage
- The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceImage
The input image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
This is a convenience method that creates an instance of theBytes
field. For more information, see Images in the Amazon Rekognition developer guide.Image.Builder
avoiding the need to create one manually viaImage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceImage(Image)
.- Parameters:
sourceImage
- a consumer that will call methods onImage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetImage
The target image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.- Parameters:
targetImage
- The target image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
Bytes
field. For more information, see Images in the Amazon Rekognition developer guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetImage
The target image as base64-encoded bytes or an S3 object. If you use the AWS CLI to call Amazon Rekognition operations, passing base64-encoded image bytes is not supported.
If you are using an AWS SDK to call Amazon Rekognition, you might not need to base64-encode image bytes passed using the
This is a convenience method that creates an instance of theBytes
field. For more information, see Images in the Amazon Rekognition developer guide.Image.Builder
avoiding the need to create one manually viaImage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totargetImage(Image)
.- Parameters:
targetImage
- a consumer that will call methods onImage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
similarityThreshold
The minimum level of confidence in the face matches that a match must meet to be included in the
FaceMatches
array.- Parameters:
similarityThreshold
- The minimum level of confidence in the face matches that a match must meet to be included in theFaceMatches
array.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
qualityFilter
A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't compared. If you specify
AUTO
, Amazon Rekognition chooses the quality bar. If you specifyLOW
,MEDIUM
, orHIGH
, filtering removes all faces that don’t meet the chosen quality bar. The quality bar is based on a variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specifyNONE
, no filtering is performed. The default value isNONE
.To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher.
- Parameters:
qualityFilter
- A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't compared. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you specifyLOW
,MEDIUM
, orHIGH
, filtering removes all faces that don’t meet the chosen quality bar. The quality bar is based on a variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specifyNONE
, no filtering is performed. The default value isNONE
.To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
qualityFilter
A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't compared. If you specify
AUTO
, Amazon Rekognition chooses the quality bar. If you specifyLOW
,MEDIUM
, orHIGH
, filtering removes all faces that don’t meet the chosen quality bar. The quality bar is based on a variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specifyNONE
, no filtering is performed. The default value isNONE
.To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher.
- Parameters:
qualityFilter
- A filter that specifies a quality bar for how much filtering is done to identify faces. Filtered faces aren't compared. If you specifyAUTO
, Amazon Rekognition chooses the quality bar. If you specifyLOW
,MEDIUM
, orHIGH
, filtering removes all faces that don’t meet the chosen quality bar. The quality bar is based on a variety of common use cases. Low-quality detections can occur for a number of reasons. Some examples are an object that's misidentified as a face, a face that's too blurry, or a face with a pose that's too extreme to use. If you specifyNONE
, no filtering is performed. The default value isNONE
.To use quality filtering, the collection you are using must be associated with version 3 of the face model or higher.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CompareFacesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CompareFacesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-