OliveappStructOcrFrameResult.h 897 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // StructOcrFrameResult.h
  3. // IdcardOcrSDK
  4. //
  5. // Created by Xiaoyang Lin on 16/5/11.
  6. // Copyright © 2016年 com.yitutech. All rights reserved.
  7. //
  8. #ifndef OliveappStructOcrFrameResult_h
  9. #define OliveappStructOcrFrameResult_h
  10. typedef enum {
  11. FRONT_IDCARD = 1,
  12. BACK_IDCARD = 2
  13. } OliveappCardType;
  14. typedef enum {
  15. ONLY_AUTO_MODE = 1,
  16. ONLY_MANUAL_MODE = 2,
  17. MIXED_MODE = 3
  18. } OliveappCaptureMode;
  19. enum OliveappType {
  20. PASS = 1,
  21. NOFACE = 2,
  22. BAD_POSITION = 3,
  23. LOW_SCORE = 4,
  24. REFLECT = 5,
  25. FUZZY = 6,
  26. SHAKE = 7,
  27. TOO_FAR = 8,
  28. TOO_CLOSE = 9,
  29. BAD_FIRST_RECT = 10,
  30. BAD_LAST_RECT = 11
  31. };
  32. struct OliveappOcrVerificationResult {
  33. enum OliveappType status;
  34. BOOL isFinish; //是否已经检测到合法身份证
  35. BOOL isValid; //如果是NO代表结果是空的,否则代表有结果
  36. };
  37. #endif /* OliveappStructOcrFrameResult_h */