Status structure of applying face information.
struct{
DWORD dwSize;
BYTE byCardNo[ACS_CARD_NO_LEN/*32*/];
BYTE byErrorMsg[ERROR_MSG_LEN/*32*/];
DWORD dwReaderNo;
BYTE byRecvStatus;
BYTE byRes[131];
}NET_DVR_FACE_STATUS, *LPNET_DVR_FACE_STATUS;
Structure size.
No. of card linked with the face information.
Error information of applying, the value of this member represents the No. of card linked with the existing face information when value of byRecvStatus is "4".
Face recognition module No., which is returned when error occurs during applying.
Face recognition module status, which is represented by byte: 0-failed, 1-succeeded, 2-try again or poor face picture quality, 3-full memory, 4-the face information already exists, 5-invalid face picture ID, 6-modeling by algorithm failed, 7-the card permission is not applied, 8-reserved, 9-too short pupil distance, 10-the picture data size is too small (at least 1 KB is required), 11-picture format mismatches (PNG, JPG, and BMP formats are valid), 12-the picture resolution is too high, 13-the picture resolution is too low, 14-verifying picture information failed, 15-decoding picture failed, 16-detecting face failed, 17-scoring face picture failed.
Reserved.
The face information is applied only when the value of byRecvStatus equals to "1". Otherwise, you should check the error reason according to the returned value of byRecvStatus, and then apply this face information again.