Class CompareFacesRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.rekognition.model.RekognitionRequest
-
- software.amazon.awssdk.services.rekognition.model.CompareFacesRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CompareFacesRequest.Builder,CompareFacesRequest>
@Generated("software.amazon.awssdk:codegen") public final class CompareFacesRequest extends RekognitionRequest implements ToCopyableBuilder<CompareFacesRequest.Builder,CompareFacesRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCompareFacesRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompareFacesRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()QualityFilterqualityFilter()A filter that specifies a quality bar for how much filtering is done to identify faces.StringqualityFilterAsString()A filter that specifies a quality bar for how much filtering is done to identify faces.List<SdkField<?>>sdkFields()static Class<? extends CompareFacesRequest.Builder>serializableBuilderClass()FloatsimilarityThreshold()The minimum level of confidence in the face matches that a match must meet to be included in theFaceMatchesarray.ImagesourceImage()The input image as base64-encoded bytes or an S3 object.ImagetargetImage()The target image as base64-encoded bytes or an S3 object.CompareFacesRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
sourceImage
public final Image 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:
- 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.
-
targetImage
public final Image 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:
- 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.
-
similarityThreshold
public final Float similarityThreshold()
The minimum level of confidence in the face matches that a match must meet to be included in the
FaceMatchesarray.- Returns:
- The minimum level of confidence in the face matches that a match must meet to be included in the
FaceMatchesarray.
-
qualityFilter
public final QualityFilter 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.
If the service returns an enum value that is not available in the current SDK version,
qualityFilterwill returnQualityFilter.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromqualityFilterAsString().- Returns:
- 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.
- See Also:
QualityFilter
-
qualityFilterAsString
public final String qualityFilterAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
qualityFilterwill returnQualityFilter.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromqualityFilterAsString().- Returns:
- 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.
- See Also:
QualityFilter
-
toBuilder
public CompareFacesRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CompareFacesRequest.Builder,CompareFacesRequest>- Specified by:
toBuilderin classRekognitionRequest
-
builder
public static CompareFacesRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CompareFacesRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-