|
| 1 | +/** |
| 2 | + * Created by Jingyu Yan |
| 3 | + * @date 2024-10-01 |
| 4 | + */ |
| 5 | + |
| 6 | +#ifndef INSPIRE_FACE_HERROR_H |
| 7 | +#define INSPIRE_FACE_HERROR_H |
| 8 | + |
| 9 | +// [Anchor-Begin] |
| 10 | + |
| 11 | +#define HSUCCEED (0) // Success |
| 12 | +#define HERR_BASIC_BASE 0X0001 // Basic error types |
| 13 | +#define HERR_UNKNOWN HERR_BASIC_BASE // Unknown error |
| 14 | +#define HERR_INVALID_PARAM (HERR_BASIC_BASE + 1) // Invalid parameter |
| 15 | +#define HERR_INVALID_IMAGE_STREAM_HANDLE (HERR_BASIC_BASE + 24) // Invalid image stream handle |
| 16 | +#define HERR_INVALID_CONTEXT_HANDLE (HERR_BASIC_BASE + 25) // Invalid context handle |
| 17 | +#define HERR_INVALID_FACE_TOKEN (HERR_BASIC_BASE + 30) // Invalid face token |
| 18 | +#define HERR_INVALID_FACE_FEATURE (HERR_BASIC_BASE + 31) // Invalid face feature |
| 19 | +#define HERR_INVALID_FACE_LIST (HERR_BASIC_BASE + 32) // Invalid face feature list |
| 20 | +#define HERR_INVALID_BUFFER_SIZE (HERR_BASIC_BASE + 33) // Invalid copy token |
| 21 | +#define HERR_INVALID_IMAGE_STREAM_PARAM (HERR_BASIC_BASE + 34) // Invalid image param |
| 22 | +#define HERR_INVALID_SERIALIZATION_FAILED (HERR_BASIC_BASE + 35) // Invalid face serialization failed |
| 23 | +#define HERR_INVALID_DETECTION_INPUT (HERR_BASIC_BASE + 36) // Failed to modify detector input size |
| 24 | +#define HERR_INVALID_IMAGE_BITMAP_HANDLE (HERR_BASIC_BASE + 37) // Invalid image bitmap handle |
| 25 | + |
| 26 | +#define HERR_SESS_BASE 0X500 // Session error types |
| 27 | +#define HERR_SESS_FUNCTION_UNUSABLE (HERR_SESS_BASE + 2) // Function not usable |
| 28 | +#define HERR_SESS_TRACKER_FAILURE (HERR_SESS_BASE + 3) // Tracker module not initialized |
| 29 | +#define HERR_SESS_INVALID_RESOURCE (HERR_SESS_BASE + 10) // Invalid static resource |
| 30 | +#define HERR_SESS_NUM_OF_MODELS_NOT_MATCH (HERR_SESS_BASE + 11) // Number of models does not match |
| 31 | +#define HERR_SESS_LANDMARK_NUM_NOT_MATCH (HERR_SESS_BASE + 20) // The number of input landmark points does not match |
| 32 | +#define HERR_SESS_LANDMARK_NOT_ENABLE (HERR_SESS_BASE + 21) // The number of input landmark points does not match |
| 33 | +#define HERR_SESS_KEY_POINT_NUM_NOT_MATCH (HERR_SESS_BASE + 22) // The number of input key points does not match |
| 34 | + |
| 35 | +#define HERR_SESS_PIPELINE_FAILURE (HERR_SESS_BASE + 8) // Pipeline module not initialized |
| 36 | + |
| 37 | +#define HERR_SESS_REC_EXTRACT_FAILURE (HERR_SESS_BASE + 15) // Face feature extraction not registered |
| 38 | +#define HERR_SESS_REC_DEL_FAILURE (HERR_SESS_BASE + 16) // Face feature deletion failed due to out of range index |
| 39 | +#define HERR_SESS_REC_UPDATE_FAILURE (HERR_SESS_BASE + 17) // Face feature update failed due to out of range index |
| 40 | +#define HERR_SESS_REC_ADD_FEAT_EMPTY (HERR_SESS_BASE + 18) // Feature vector for registration cannot be empty |
| 41 | +#define HERR_SESS_REC_FEAT_SIZE_ERR (HERR_SESS_BASE + 19) // Incorrect length of feature vector for registration |
| 42 | +#define HERR_SESS_REC_INVALID_INDEX (HERR_SESS_BASE + 20) // Invalid index number |
| 43 | +#define HERR_SESS_REC_CONTRAST_FEAT_ERR (HERR_SESS_BASE + 23) // Incorrect length of feature vector for comparison |
| 44 | +#define HERR_SESS_REC_BLOCK_FULL (HERR_SESS_BASE + 24) // Feature vector block full |
| 45 | +#define HERR_SESS_REC_BLOCK_DEL_FAILURE (HERR_SESS_BASE + 25) // Deletion failed |
| 46 | +#define HERR_SESS_REC_BLOCK_UPDATE_FAILURE (HERR_SESS_BASE + 26) // Update failed |
| 47 | +#define HERR_SESS_REC_ID_ALREADY_EXIST (HERR_SESS_BASE + 27) // ID already exists |
| 48 | + |
| 49 | +#define HERR_SESS_FACE_DATA_ERROR (HERR_SESS_BASE + 30) // Face data parsing |
| 50 | + |
| 51 | +#define HERR_SESS_FACE_REC_OPTION_ERROR (HERR_SESS_BASE + 40) // An optional parameter is incorrect |
| 52 | + |
| 53 | +#define HERR_FT_HUB_DISABLE (HERR_SESS_BASE + 49) // FeatureHub is disabled |
| 54 | +#define HERR_FT_HUB_OPEN_ERROR (HERR_SESS_BASE + 50) // Database open error |
| 55 | +#define HERR_FT_HUB_NOT_OPENED (HERR_SESS_BASE + 51) // Database not opened |
| 56 | +#define HERR_FT_HUB_NO_RECORD_FOUND (HERR_SESS_BASE + 52) // No record found |
| 57 | +#define HERR_FT_HUB_CHECK_TABLE_ERROR (HERR_SESS_BASE + 53) // Data table check error |
| 58 | +#define HERR_FT_HUB_INSERT_FAILURE (HERR_SESS_BASE + 54) // Data insertion error |
| 59 | +#define HERR_FT_HUB_PREPARING_FAILURE (HERR_SESS_BASE + 55) // Data preparation error |
| 60 | +#define HERR_FT_HUB_EXECUTING_FAILURE (HERR_SESS_BASE + 56) // SQL execution error |
| 61 | +#define HERR_FT_HUB_NOT_VALID_FOLDER_PATH (HERR_SESS_BASE + 57) // Invalid folder path |
| 62 | +#define HERR_FT_HUB_ENABLE_REPETITION (HERR_SESS_BASE + 58) // Enable db function repeatedly |
| 63 | +#define HERR_FT_HUB_DISABLE_REPETITION (HERR_SESS_BASE + 59) // Disable db function repeatedly |
| 64 | +#define HERR_FT_HUB_NOT_FOUND_FEATURE (HERR_SESS_BASE + 60) // Get face feature error |
| 65 | + |
| 66 | +#define HERR_ARCHIVE_LOAD_FAILURE (HERR_SESS_BASE + 80) // Archive load failure |
| 67 | +#define HERR_ARCHIVE_LOAD_MODEL_FAILURE (HERR_SESS_BASE + 81) // Model load failure |
| 68 | +#define HERR_ARCHIVE_FILE_FORMAT_ERROR (HERR_SESS_BASE + 82) // The archive format is incorrect |
| 69 | +#define HERR_ARCHIVE_REPETITION_LOAD (HERR_SESS_BASE + 83) // Do not reload the model |
| 70 | +#define HERR_ARCHIVE_NOT_LOAD (HERR_SESS_BASE + 84) // Model not loaded |
| 71 | + |
| 72 | +#define HERR_DEVICE_BASE 0X900 // hardware error |
| 73 | +#define HERR_DEVICE_CUDA_NOT_SUPPORT (HERR_DEVICE_BASE + 1) // CUDA not supported |
| 74 | +#define HERR_DEVICE_CUDA_TENSORRT_NOT_SUPPORT (HERR_DEVICE_BASE + 2) // CUDA TensorRT not supported |
| 75 | +#define HERR_DEVICE_CUDA_UNKNOWN_ERROR (HERR_DEVICE_BASE + 20) // CUDA unknown error |
| 76 | +#define HERR_DEVICE_CUDA_DISABLE (HERR_DEVICE_BASE + 21) // CUDA support is disabled |
| 77 | +// [Anchor-End] |
| 78 | + |
| 79 | +#endif // INSPIRE_FACE_HERROR_H |
0 commit comments