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 theFaceMatchesarray.default CompareFacesRequest.BuildersourceImage(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.BuildertargetImage(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
Bytesfield. 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
Bytesfield. 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 theBytesfield. For more information, see Images in the Amazon Rekognition developer guide.Image.Builderavoiding the need to create one manually viaImage.builder().When the
Consumercompletes,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
Bytesfield. 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
Bytesfield. 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 theBytesfield. For more information, see Images in the Amazon Rekognition developer guide.Image.Builderavoiding the need to create one manually viaImage.builder().When the
Consumercompletes,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
FaceMatchesarray.- Parameters:
similarityThreshold- The minimum level of confidence in the face matches that a match must meet to be included in theFaceMatchesarray.- 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-