OliveappPrestartValidator.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // AsyncPrestartValidator.h
  3. // LivenessDetector
  4. //
  5. // Created by Jiteng Hao on 16/1/11.
  6. // Copyright © 2016年 Oliveapp. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "OliveappAsyncPrestartValidatorDelegate.h"
  10. #import "OliveappAsyncLivenessDetectorDelegate.h"
  11. #import "OliveappPhotoImage.h"
  12. #import "OliveappSessionManagerConfig.h"
  13. @interface OliveappPrestartValidator : NSObject<OliveappAsyncLivenessDetectorDelegate>
  14. - (BOOL) setConfig: (OliveappSessionManagerConfig *) config
  15. withDelegate: (id<OliveappAsyncPrestartValidatorDelegate>) delegate
  16. withError:(NSError **) error;
  17. - (BOOL) unInit: (NSError **) error;
  18. - (BOOL) restartSession;
  19. - (BOOL) doDetection: (OliveappPhotoImage *) photoContent
  20. withError:(NSError *__autoreleasing *)error;
  21. /**
  22. 根据UI交互调整人脸框的位置,采用百分比,请务必设置正确
  23. @param xPercent 需要检测人脸左上角坐标x占全宽的百分比
  24. @param yPercent 需要检测人脸左上角坐标y占全宽的百分比
  25. @param widthPercent 需要检测人脸宽度占全宽的百分比
  26. @param heightPercent 需要检测人脸高度占全宽的百分比
  27. */
  28. - (void) setFaceLocation:(float) xPercent
  29. withYpercent:(float) yPercent
  30. withWidthPercent:(float) widthPercent
  31. withHeightPercent:(float) heightPercent;
  32. @end