excards.h 1.2 KB

12345678910111213141516171819202122
  1. /************************************************************************/
  2. /* copyright */
  3. /************************************************************************/
  4. #ifndef __EX_CARDS_H__
  5. #define __EX_CARDS_H__
  6. #include "commondef.h"
  7. //////////////////////////////////////////////////////////////////////////
  8. //初始化和释放
  9. STD_API(int) EXCARDS_Init(const char *szWorkPath);
  10. STD_API(void) EXCARDS_Done();
  11. STD_API(float) EXCARDS_GetFocusScore(unsigned char *yimgdata, int width, int height, int pitch, int lft, int top, int rgt, int btm);
  12. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  13. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  14. //身份证识别 szResBuf[ > 4096]
  15. STD_API(int) EXCARDS_RecoIDCardFile(const char *szImgFile, char *szResBuf, int nResBufSize);
  16. STD_API(int) EXCARDS_RecoIDCardData(unsigned char *pbImage, int nWidth, int nHeight, int nPitch, int nBitCount, char *szResBuf, int nResBufSize);
  17. #endif