exbankcard.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /************************************************************************\
  2. 北京易道博识科技有限公司
  3. CopyRight (C) 2015
  4. File name: exbankcard.h
  5. Function : 银行卡识别接口文件
  6. Author : zjm@exocr.com
  7. Version : 2015.03.1 V1.2
  8. ***************************************************************************/
  9. #ifndef __EX_BANK_CARD_H__
  10. #define __EX_BANK_CARD_H__
  11. //打开文件识别,用于调试和开发使用
  12. #ifdef __cplusplus
  13. extern "C"
  14. #endif
  15. int BankCardRecoFile(const char *szImgFile, unsigned char *pbResult, int nMaxSize);
  16. //接口
  17. //24位色 RGB或者BGR 识别
  18. #ifdef __cplusplus
  19. extern "C"
  20. #endif
  21. int BankCard24(unsigned char *pbResult, int nMaxSize, unsigned char *pbImg24, int iW, int iH, int iPitch, int iLft, int iTop, int iRgt, int iBtm);
  22. //接口
  23. //输入32(0xargb)位的图像,转成24位的图像,Android系统用
  24. #ifdef __cplusplus
  25. extern "C"
  26. #endif
  27. int BankCard32(unsigned char *pbResult, int nMaxSize, unsigned char *pbImg32, int iW, int iH, int iPitch, int iLft, int iTop, int iRgt, int iBtm);
  28. //接口
  29. //根据ImageFormat.NV21直接用来识别,不经过java层的转换,这样提高工作效率, java层转化太慢了
  30. #ifdef __cplusplus
  31. extern "C"
  32. #endif
  33. int BankCardNV21(unsigned char *pbResult, int nMaxSize, unsigned char *pbY, unsigned char *pbVU, int iW, int iH, int iLft, int iTop, int iRgt, int iBtm);
  34. //接口
  35. //根据ImageFormat.NV12直接用来识别
  36. #ifdef __cplusplus
  37. extern "C"
  38. #endif
  39. int BankCardNV12(unsigned char *pbResult, int nMaxSize, unsigned char *pbY, unsigned char *pbUV, int iW, int iH, int iLft, int iTop, int iRgt, int iBtm);
  40. //接口
  41. //获取对焦分数
  42. #ifdef __cplusplus
  43. extern "C"
  44. #endif
  45. float GetFocusScore(unsigned char *imgdata, int width, int height, int pitch, int lft, int top, int rgt, int btm);
  46. #endif //__EX_BANK_CARD_H__