OliveappIdcardVerificationController.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // OliveappIdcardVerificationController.h
  3. // LivenessDetector
  4. //
  5. // Created by Xiaoyang Lin on 16/6/4.
  6. // Copyright © 2016年 Oliveapp. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "OliveappAsyncIdcardCaptorDelegate.h"
  10. #import <UIKit/UIKit.h>
  11. #import "OliveappCameraPreviewDelegate.h"
  12. #import "OliveappStructOcrFrameResult.h"
  13. @interface OliveappIdcardVerificationController : NSObject<OliveappCameraPreviewDelegate>
  14. /**
  15. * 初始化时设置委托方法
  16. *
  17. * @param delegate 委托对象
  18. * @param error 错误类
  19. */
  20. - (void) setDelegate: (id<OliveappAsyncIdcardCaptorDelegate>) delegate
  21. withCardType: (OliveappCardType) cardType
  22. withError: (NSError **) error;
  23. /**
  24. * 设置截图的参照物
  25. *
  26. * @param idCardView 身份证的框
  27. * @param fullView 全屏框
  28. * @param superView 为了iPhone4特制的框
  29. */
  30. - (void) setIdCardPreviewView:(UIImageView *) idCardView
  31. withFullView:(UIView *) fullView
  32. withSuperView:(UIView *) superView;
  33. /**
  34. * 析构
  35. */
  36. - (void) unInit;
  37. /**
  38. * debug功能开的话会存图
  39. */
  40. - (void) enableDebug: (BOOL) isDebug;
  41. @end