OliveappAsyncIdcardCaptor.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // OliveappAsyncOcrManager.h
  3. // IdcardOcrSDK
  4. //
  5. // Created by Xiaoyang Lin on 16/5/13.
  6. // Copyright © 2016年 com.yitutech. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "OliveappPhotoImage.h"
  10. #import "OliveappAsyncIdcardCaptorDelegate.h"
  11. #import "OliveappImageForVerifyConf.h"
  12. #import "OliveappStructOcrFrameResult.h"
  13. @interface OliveappAsyncIdcardCaptor : NSObject
  14. /**
  15. * 初始化对象
  16. *
  17. * @return <#return value description#>
  18. */
  19. - (instancetype) initWithCardType:(OliveappCardType)cardType;
  20. /**
  21. * 处理一帧图片
  22. *
  23. * @param photoContent 图片信息
  24. * @param isoSpeed iso速度(快门时间),暂时无用
  25. * @param error 错误信息
  26. *
  27. * @return 是否成功
  28. */
  29. - (BOOL) doDetection: (OliveappPhotoImage *) photoContent
  30. withIsoSpeed: (int) isoSpeed
  31. withError: (NSError *__autoreleasing *)error;
  32. /**
  33. * 设置参数
  34. *
  35. * @param delegate 委托对象
  36. * @param imgConfig 图片信息
  37. * @param error 错误类
  38. *
  39. * @return 是否成功
  40. */
  41. - (BOOL) setDelegate: (id<OliveappAsyncIdcardCaptorDelegate>) delegate
  42. withCardType: (OliveappCardType) cardType
  43. withImageConfig: (OliveappImageForVerifyConf *) imgConfig
  44. withError: (NSError **) error;
  45. /**
  46. * 是否存图,不要使用!
  47. *
  48. * @param isDebug <#isDebug description#>
  49. */
  50. - (void) enableDebug: (BOOL) isDebug;
  51. /**
  52. * 停止算法模块
  53. *
  54. * @return 是否成功
  55. */
  56. - (BOOL) stopDetection;
  57. @end