OliveappLivenessDetectionViewController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // ViewController.h
  3. // AnimationTestApp
  4. //
  5. // Created by kychen on 16/12/30.
  6. // Copyright © 2016年 keyu.chen. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "OliveappLivenessResultDelegate.h"
  10. #import "OliveappBlueFrame.h"
  11. #import "OliveappYellowFrame.h"
  12. #import "OliveappHintView.h"
  13. #import "OliveappEyeLayer.h"
  14. #import "OliveappSessionManagerConfig.h"
  15. @protocol FaceDetectorsDelegate <NSObject>
  16. -(void)sendFaceImage:(UIImage *)faceImage; //上传图片成功
  17. -(void)sendFaceImageError; //上传图片失败
  18. @end
  19. @interface OliveappLivenessDetectionViewController : UIViewController
  20. @property (weak, nonatomic) IBOutlet OliveappBlueFrame * mBlueFrame;
  21. @property (weak, nonatomic) IBOutlet OliveappYellowFrame * mLeftDownYellowFrame;
  22. @property (weak, nonatomic) IBOutlet OliveappYellowFrame * mRightUpYellowFrame;
  23. @property (weak, nonatomic) IBOutlet OliveappHintView * mHintView;
  24. /**
  25. 配置活体检测
  26. @param delegate 回调的代理对象
  27. @param error 错误码
  28. @return 是否配置成功
  29. */
  30. - (BOOL) setConfigLivenessDetection: (id<OliveappLivenessResultDelegate>) delegate
  31. withError: (NSError **) error;
  32. @property (assign,nonatomic) id<FaceDetectorsDelegate> faceDelegate;
  33. @property (strong, readwrite, nonatomic) OliveappSessionManagerConfig *cusConfig;
  34. @end