BankCard.h 822 B

12345678910111213141516171819202122232425
  1. //接口 判断当前图像的对焦数值,决定是否进行调用识别
  2. //一般认为返回值大于5.0f可以进行识别
  3. #ifdef __cplusplus
  4. extern "C"
  5. #endif
  6. float GetFocusScore(unsigned char *imgdata, int width, int height, int pitch, int lft, int top, int rgt, int btm);
  7. //接口
  8. //根据ImageFormat.NV21直接用来识别,不经过java层的转换,这样提高工作效率, java层转化太慢了 Android
  9. #ifdef __cplusplus
  10. extern "C"
  11. #endif
  12. int BankCardNV21(unsigned char *pbResult, int nMaxSize, unsigned char *pbNV21, int iW, int iH, int iLft, int iTop, int iRgt, int iBtm);
  13. //接口
  14. //根据ImageFormat.NV12直接用来识别 IOS
  15. //接口:一般在手机上调用上面接口
  16. //输入32位的图像,转成24位的图像,Android系统用
  17. #ifdef __cplusplus
  18. extern "C"
  19. #endif
  20. int BankCard32(unsigned char *pbResult, int nMaxSize, unsigned char *pbImg32, int iW, int iH, int iPitch);