OliveappAsyncPrestartValidatorDelegate.h 904 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // AsyncLivenessDetectorDelegate.h
  3. // LivenessDetector
  4. //
  5. // Created by Xiaoyang Lin on 16/1/11.
  6. // Copyright © 2016年 Oliveapp. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "OliveappDetectedFrame.h"
  10. #import "OliveappFaceInfo.h"
  11. @protocol OliveappAsyncPrestartValidatorDelegate <NSObject>
  12. @required
  13. /**
  14. * 预检成功回调
  15. *
  16. * @param detectedFrame 捕获到的图片
  17. * @param faceInfo 捕获到的人脸信息
  18. */
  19. - (void) onPrestartSuccess: (OliveappDetectedFrame*) detectedFrame
  20. withFaceInfo: (OliveappFaceInfo *) faceInfo;
  21. /**
  22. * 预检失败回调
  23. */
  24. - (void) onPrestartFail;
  25. /**
  26. * 单帧回调
  27. *
  28. * @param remainingTimeoutMilliSecond 剩余时间
  29. */
  30. - (void) onFrameDetected: (int) remainingTimeoutMilliSecond
  31. withFaceInfo: (OliveappFaceInfo *) faceInfo
  32. withErrorCodeOfInActionArray: (NSArray *) errorCodeOfInAction;
  33. @end