Package com.appliedrec.verid.core2
Enum VerIDCoreException.Code
- java.lang.Object
-
- java.lang.Enum<VerIDCoreException.Code>
-
- com.appliedrec.verid.core2.VerIDCoreException.Code
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VerIDCoreException.Code>
- Enclosing class:
- VerIDCoreException
public static enum VerIDCoreException.Code extends java.lang.Enum<VerIDCoreException.Code>
Error codes- Since:
- 2.0.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATION_SCORE_TOO_LOW
Thrown when face template comparison score is below theauthentication threshold
BITMAP_UNAVAILABLE
DATABASE_NOT_FOUND
Thrown when attempting to read from a non-existent databaseDETRECLIB_INSTANCE_UNAVAILABLE
Thrown when an instance of the low-level face detection/recognition library is unavailableDIAGNOSTIC_IMAGE_ERROR
Thrown when the face detection/recognition library is unable to generate a face diagnostic imageEMPTY_IMAGE_BUFFER
Thrown when an empty image buffer is passed to the face detection/recognition libraryFACE_ATTRIBUTE_EXTRACTION_FAILURE
FACE_COMPARISON_ERROR
Thrown when face comparison failsFACE_DETECTION_FAILURE
Thrown when face detection failsFACE_NOT_REGISTERED
FACE_TEMPLATE_DECRYPTION_ERROR
Thrown when face template decryption failsFACE_TEMPLATE_ENCRYPTED
Thrown when an encrypted face template is passed to the face comparison functionFACE_TEMPLATE_ENCRYPTION_ERROR
Thrown when face template encryption failsFACE_TEMPLATE_EXTRACTION_FAILURE
Thrown when face template extraction failsFACE_TEMPLATE_TRANSCRIPTION_ERROR
FACE_TEMPLATE_TRANSCRIPTION_ERROR_INVALID_TARGET_VERSION
FACE_TEMPLATE_VERSION_MISMATCH
FACE_TRACKING_FAILURE
Thrown when face tracking failsFAILED_TO_GET_LOADED_CLASSIFIERS
FAILED_TO_LOAD_CLASSIFIER
FAILED_TO_LOAD_RESOURCE
IMAGE_ENCODING_ERROR
Thrown when an image cannot be encoded to a bitmapINCOMPATIBLE_FACE_RECOGNITION_IMPLEMENTATION
INSUFFICIENT_FACE_QUALITY
INVALID_FACE_TEMPLATE_VERSION
INVALID_IMAGE_HEIGHT
Thrown when image size with height <= 0 is passed to the face detection/recognition libraryINVALID_IMAGE_WIDTH
Thrown when image size with width <= 0 is passed to the face detection/recognition libraryKEY_STORE_ERROR
Thrown when loading of key store failsMISSING_FACE_TEMPLATE_VERSIONS
MISSING_RESOURCE_FILE
NOTHING_TO_COMPARE
NULL_IMAGE_BUFFER
Thrown when null is passed as image buffer to the face detection/recognition libraryNULL_IMAGE_SIZE
Thrown when a null is passed as image size to the face detection/recognition libraryOBSOLETE_OR_MISSING_RESOURCE
RAW_FACE_TEMPLATE_ERROR
Thrown when getting the raw face template failsREAD_ONLY_DATABASE_WRITE
Thrown when attempting to write to a read-only databaseSECRET_KEY_UNAVAILABLE
Thrown when secret key used for template encryption is unavailableSIMILAR_FACE_REGISTERED_AS_ANOTHER_USER
UNRECOGNIZED_KEY_ALIAS
Thrown when using a key alias not present in the key storeUNSUPPORTED_IMAGE_TYPE
Thrown when the image passed to the face detection/recognition library doesn't contain one of the supported buffer types (YUV, grayscale, or bitmap)UNSUPPORTED_PIXEL_FORMAT
Thrown when the pixel format in the image buffer passed to the face detection/recognition library is unsupported.USER_MANAGEMENT_CONTAINS_INCOMPATIBLE_FACES
USER_MISSING_REQUIRED_FACE_TEMPLATES
USER_NOT_REGISTERED
Thrown when attempting to authenticate a user who isn't registered
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VerIDCoreException.Code
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VerIDCoreException.Code[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL_IMAGE_BUFFER
public static final VerIDCoreException.Code NULL_IMAGE_BUFFER
Thrown when null is passed as image buffer to the face detection/recognition library
-
EMPTY_IMAGE_BUFFER
public static final VerIDCoreException.Code EMPTY_IMAGE_BUFFER
Thrown when an empty image buffer is passed to the face detection/recognition library
-
NULL_IMAGE_SIZE
public static final VerIDCoreException.Code NULL_IMAGE_SIZE
Thrown when a null is passed as image size to the face detection/recognition library
-
INVALID_IMAGE_WIDTH
public static final VerIDCoreException.Code INVALID_IMAGE_WIDTH
Thrown when image size with width <= 0 is passed to the face detection/recognition library
-
INVALID_IMAGE_HEIGHT
public static final VerIDCoreException.Code INVALID_IMAGE_HEIGHT
Thrown when image size with height <= 0 is passed to the face detection/recognition library
-
FACE_TRACKING_FAILURE
public static final VerIDCoreException.Code FACE_TRACKING_FAILURE
Thrown when face tracking fails
-
UNSUPPORTED_IMAGE_TYPE
public static final VerIDCoreException.Code UNSUPPORTED_IMAGE_TYPE
Thrown when the image passed to the face detection/recognition library doesn't contain one of the supported buffer types (YUV, grayscale, or bitmap)
-
FACE_DETECTION_FAILURE
public static final VerIDCoreException.Code FACE_DETECTION_FAILURE
Thrown when face detection fails
-
UNSUPPORTED_PIXEL_FORMAT
public static final VerIDCoreException.Code UNSUPPORTED_PIXEL_FORMAT
Thrown when the pixel format in the image buffer passed to the face detection/recognition library is unsupported. Supported formats are grayscale, NV21, RGB, BGR, RGBA, BGRA, ARGB, ABGR.
-
DIAGNOSTIC_IMAGE_ERROR
public static final VerIDCoreException.Code DIAGNOSTIC_IMAGE_ERROR
Thrown when the face detection/recognition library is unable to generate a face diagnostic image
-
FACE_TEMPLATE_EXTRACTION_FAILURE
public static final VerIDCoreException.Code FACE_TEMPLATE_EXTRACTION_FAILURE
Thrown when face template extraction fails
-
FACE_TEMPLATE_ENCRYPTED
public static final VerIDCoreException.Code FACE_TEMPLATE_ENCRYPTED
Thrown when an encrypted face template is passed to the face comparison function
-
RAW_FACE_TEMPLATE_ERROR
public static final VerIDCoreException.Code RAW_FACE_TEMPLATE_ERROR
Thrown when getting the raw face template fails
-
FACE_COMPARISON_ERROR
public static final VerIDCoreException.Code FACE_COMPARISON_ERROR
Thrown when face comparison fails
-
FACE_TEMPLATE_ENCRYPTION_ERROR
public static final VerIDCoreException.Code FACE_TEMPLATE_ENCRYPTION_ERROR
Thrown when face template encryption fails
-
FACE_TEMPLATE_DECRYPTION_ERROR
public static final VerIDCoreException.Code FACE_TEMPLATE_DECRYPTION_ERROR
Thrown when face template decryption fails
-
USER_NOT_REGISTERED
public static final VerIDCoreException.Code USER_NOT_REGISTERED
Thrown when attempting to authenticate a user who isn't registered
-
AUTHENTICATION_SCORE_TOO_LOW
public static final VerIDCoreException.Code AUTHENTICATION_SCORE_TOO_LOW
Thrown when face template comparison score is below theauthentication threshold
-
IMAGE_ENCODING_ERROR
public static final VerIDCoreException.Code IMAGE_ENCODING_ERROR
Thrown when an image cannot be encoded to a bitmap
-
READ_ONLY_DATABASE_WRITE
public static final VerIDCoreException.Code READ_ONLY_DATABASE_WRITE
Thrown when attempting to write to a read-only database
-
DATABASE_NOT_FOUND
public static final VerIDCoreException.Code DATABASE_NOT_FOUND
Thrown when attempting to read from a non-existent database
-
KEY_STORE_ERROR
public static final VerIDCoreException.Code KEY_STORE_ERROR
Thrown when loading of key store fails
-
UNRECOGNIZED_KEY_ALIAS
public static final VerIDCoreException.Code UNRECOGNIZED_KEY_ALIAS
Thrown when using a key alias not present in the key store
-
SECRET_KEY_UNAVAILABLE
public static final VerIDCoreException.Code SECRET_KEY_UNAVAILABLE
Thrown when secret key used for template encryption is unavailable
-
DETRECLIB_INSTANCE_UNAVAILABLE
public static final VerIDCoreException.Code DETRECLIB_INSTANCE_UNAVAILABLE
Thrown when an instance of the low-level face detection/recognition library is unavailable
-
FACE_NOT_REGISTERED
public static final VerIDCoreException.Code FACE_NOT_REGISTERED
-
FACE_ATTRIBUTE_EXTRACTION_FAILURE
public static final VerIDCoreException.Code FACE_ATTRIBUTE_EXTRACTION_FAILURE
-
FACE_TEMPLATE_TRANSCRIPTION_ERROR_INVALID_TARGET_VERSION
public static final VerIDCoreException.Code FACE_TEMPLATE_TRANSCRIPTION_ERROR_INVALID_TARGET_VERSION
-
FACE_TEMPLATE_TRANSCRIPTION_ERROR
public static final VerIDCoreException.Code FACE_TEMPLATE_TRANSCRIPTION_ERROR
-
NOTHING_TO_COMPARE
public static final VerIDCoreException.Code NOTHING_TO_COMPARE
-
USER_MISSING_REQUIRED_FACE_TEMPLATES
public static final VerIDCoreException.Code USER_MISSING_REQUIRED_FACE_TEMPLATES
-
FACE_TEMPLATE_VERSION_MISMATCH
public static final VerIDCoreException.Code FACE_TEMPLATE_VERSION_MISMATCH
-
FAILED_TO_LOAD_CLASSIFIER
public static final VerIDCoreException.Code FAILED_TO_LOAD_CLASSIFIER
-
INVALID_FACE_TEMPLATE_VERSION
public static final VerIDCoreException.Code INVALID_FACE_TEMPLATE_VERSION
-
FAILED_TO_GET_LOADED_CLASSIFIERS
public static final VerIDCoreException.Code FAILED_TO_GET_LOADED_CLASSIFIERS
-
SIMILAR_FACE_REGISTERED_AS_ANOTHER_USER
public static final VerIDCoreException.Code SIMILAR_FACE_REGISTERED_AS_ANOTHER_USER
-
MISSING_FACE_TEMPLATE_VERSIONS
public static final VerIDCoreException.Code MISSING_FACE_TEMPLATE_VERSIONS
-
INCOMPATIBLE_FACE_RECOGNITION_IMPLEMENTATION
public static final VerIDCoreException.Code INCOMPATIBLE_FACE_RECOGNITION_IMPLEMENTATION
-
BITMAP_UNAVAILABLE
public static final VerIDCoreException.Code BITMAP_UNAVAILABLE
-
INSUFFICIENT_FACE_QUALITY
public static final VerIDCoreException.Code INSUFFICIENT_FACE_QUALITY
-
USER_MANAGEMENT_CONTAINS_INCOMPATIBLE_FACES
public static final VerIDCoreException.Code USER_MANAGEMENT_CONTAINS_INCOMPATIBLE_FACES
-
OBSOLETE_OR_MISSING_RESOURCE
public static final VerIDCoreException.Code OBSOLETE_OR_MISSING_RESOURCE
-
MISSING_RESOURCE_FILE
public static final VerIDCoreException.Code MISSING_RESOURCE_FILE
-
FAILED_TO_LOAD_RESOURCE
public static final VerIDCoreException.Code FAILED_TO_LOAD_RESOURCE
-
-
Method Detail
-
values
public static VerIDCoreException.Code[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VerIDCoreException.Code c : VerIDCoreException.Code.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VerIDCoreException.Code valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-