Class SearchFacesByImageRequest
- 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.SearchFacesByImageRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SearchFacesByImageRequest.Builder,SearchFacesByImageRequest>
@Generated("software.amazon.awssdk:codegen") public final class SearchFacesByImageRequest extends RekognitionRequest implements ToCopyableBuilder<SearchFacesByImageRequest.Builder,SearchFacesByImageRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchFacesByImageRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchFacesByImageRequest.Builderbuilder()StringcollectionId()ID of the collection to search.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FloatfaceMatchThreshold()(Optional) Specifies the minimum confidence in the face match to return.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Imageimage()The input image as base64-encoded bytes or an S3 object.IntegermaxFaces()Maximum number of faces to return.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.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SearchFacesByImageRequest.Builder>serializableBuilderClass()SearchFacesByImageRequest.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
-
collectionId
public final String collectionId()
ID of the collection to search.
- Returns:
- ID of the collection to search.
-
image
public final Image image()
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.
-
maxFaces
public final Integer maxFaces()
Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.
- Returns:
- Maximum number of faces to return. The operation returns the maximum number of faces with the highest confidence in the match.
-
faceMatchThreshold
public final Float faceMatchThreshold()
(Optional) Specifies the minimum confidence in the face match to return. For example, don't return any matches where confidence in matches is less than 70%. The default value is 80%.
- Returns:
- (Optional) Specifies the minimum confidence in the face match to return. For example, don't return any matches where confidence in matches is less than 70%. The default value is 80%.
-
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 searched for in the collection. 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 searched for in the collection. 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 searched for in the collection. 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 searched for in the collection. 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 SearchFacesByImageRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchFacesByImageRequest.Builder,SearchFacesByImageRequest>- Specified by:
toBuilderin classRekognitionRequest
-
builder
public static SearchFacesByImageRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SearchFacesByImageRequest.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
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-