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_LOWThrown when face template comparison score is below theauthentication thresholdBITMAP_UNAVAILABLEDATABASE_NOT_FOUNDThrown when attempting to read from a non-existent databaseDETRECLIB_INSTANCE_UNAVAILABLEThrown when an instance of the low-level face detection/recognition library is unavailableDIAGNOSTIC_IMAGE_ERRORThrown when the face detection/recognition library is unable to generate a face diagnostic imageEMPTY_IMAGE_BUFFERThrown when an empty image buffer is passed to the face detection/recognition libraryFACE_ATTRIBUTE_EXTRACTION_FAILUREFACE_COMPARISON_ERRORThrown when face comparison failsFACE_DETECTION_FAILUREThrown when face detection failsFACE_NOT_REGISTEREDFACE_TEMPLATE_DECRYPTION_ERRORThrown when face template decryption failsFACE_TEMPLATE_ENCRYPTEDThrown when an encrypted face template is passed to the face comparison functionFACE_TEMPLATE_ENCRYPTION_ERRORThrown when face template encryption failsFACE_TEMPLATE_EXTRACTION_FAILUREThrown when face template extraction failsFACE_TEMPLATE_TRANSCRIPTION_ERRORFACE_TEMPLATE_TRANSCRIPTION_ERROR_INVALID_TARGET_VERSIONFACE_TEMPLATE_VERSION_MISMATCHFACE_TRACKING_FAILUREThrown when face tracking failsFAILED_TO_GET_LOADED_CLASSIFIERSFAILED_TO_LOAD_CLASSIFIERFAILED_TO_LOAD_RESOURCEIMAGE_ENCODING_ERRORThrown when an image cannot be encoded to a bitmapINCOMPATIBLE_FACE_RECOGNITION_IMPLEMENTATIONINSUFFICIENT_FACE_QUALITYINVALID_FACE_TEMPLATE_VERSIONINVALID_IMAGE_HEIGHTThrown when image size with height <= 0 is passed to the face detection/recognition libraryINVALID_IMAGE_WIDTHThrown when image size with width <= 0 is passed to the face detection/recognition libraryKEY_STORE_ERRORThrown when loading of key store failsMISSING_FACE_TEMPLATE_VERSIONSMISSING_RESOURCE_FILENOTHING_TO_COMPARENULL_IMAGE_BUFFERThrown when null is passed as image buffer to the face detection/recognition libraryNULL_IMAGE_SIZEThrown when a null is passed as image size to the face detection/recognition libraryOBSOLETE_OR_MISSING_RESOURCERAW_FACE_TEMPLATE_ERRORThrown when getting the raw face template failsREAD_ONLY_DATABASE_WRITEThrown when attempting to write to a read-only databaseSECRET_KEY_UNAVAILABLEThrown when secret key used for template encryption is unavailableSIMILAR_FACE_REGISTERED_AS_ANOTHER_USERUNRECOGNIZED_KEY_ALIASThrown when using a key alias not present in the key storeUNSUPPORTED_IMAGE_TYPEThrown 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_FORMATThrown when the pixel format in the image buffer passed to the face detection/recognition library is unsupported.USER_MANAGEMENT_CONTAINS_INCOMPATIBLE_FACESUSER_MISSING_REQUIRED_FACE_TEMPLATESUSER_NOT_REGISTEREDThrown 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.CodevalueOf(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
-
-