OliveappVerificationDelegate.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // OliveappVerificationDelegate.h
  3. // OliveappLibrary
  4. //
  5. // Created by rick on 17/1/3.
  6. // Copyright © 2017年 Oliveapp. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol OliveappVerificationFilterDelegate <NSObject>
  10. typedef NS_ENUM(NSUInteger,VerificationState) {
  11. // 定义步骤
  12. STEP_READY = 0, // 准备步骤
  13. STEP_PRESTART = 1, // 预检步骤
  14. STEP_LIVENESS = 2, // 活检步骤
  15. STEP_FINISH = 3 // 结束步骤
  16. };
  17. - (BOOL) setConfigWithPrestartValidator: (OliveappPrestartValidator *) prestartValidator
  18. WithLivenessDetector: (OliveappLivenessDetector *) livenessDetector
  19. withViewDelegate: (id<OliveappViewUpdateEventDelegate>) viewDelegate
  20. withError: (NSError **) error;
  21. - (BOOL) setConfig: (OliveappSessionManagerConfig *) config
  22. withDelegate: (id<OliveappViewUpdateEventDelegate>)delegate
  23. withError: (NSError **) error;
  24. - (void) nextVerificationStep;
  25. - (NSUInteger) getCurrentStep;
  26. - (void) enterLivenessDetection;
  27. - (void) setFaceLocation:(float) xPercent
  28. withYpercent:(float) yPercent
  29. withWidthPercent:(float) widthPercent
  30. withHeightPercent:(float) heightPercent;
  31. - (void) onPreviewFrame:(OliveappPhotoImage *)image;
  32. - (BOOL) unInit;
  33. @end