洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.7 KiB

9 months ago
  1. //
  2. // ToygerFaceFrame.h
  3. // ToygerAlgorithm
  4. //
  5. // Created by 王伟伟 on 2018/1/22.
  6. // Copyright © 2018年 DTF. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <ToygerService/ToygerFrame.h>
  10. typedef NS_ENUM(NSInteger, ToygerMessage) {
  11. TOYGER_Message_Image_Perfect = 0,
  12. TOYGER_Message_No_Face,
  13. TOYGER_Message_Distance_Too_Far,
  14. TOYGER_Message_Distance_Too_Close,
  15. TOYGER_Message_Face_Not_In_Center,
  16. TOYGER_Message_Bad_Pitch,
  17. TOYGER_Message_Bad_Yaw,
  18. TOYGER_Message_Is_Moving,
  19. TOYGER_Message_Bad_Brightness,
  20. TOYGER_Message_Bad_Quality,
  21. TOYGER_Message_Bad_Eye_Openness,
  22. TOYGER_Message_Blink_Openness,
  23. TOYGER_Message_Left_Yaw,
  24. TOYGER_Message_Right_Yaw,
  25. TOYGER_Message_Mouth_Open,
  26. TOYGER_Message_Lip_Move,
  27. TOYGER_Message_Stack_Time,
  28. };
  29. typedef NS_ENUM(NSInteger, ToygerStaticMessage) {
  30. TOYGER_Static_Message_NoLiveness = 0,
  31. TOYGER_Static_Message_BlinkLiveness,
  32. TOYGER_Static_Message_LeftYAWLiveness,
  33. TOYGER_Static_Message_RightYawLiveness,
  34. TOYGER_Static_Message_LipMoveLiveness,
  35. TOYGER_Static_Message_MouthOpenLiveness
  36. };
  37. @interface ToygerFaceFrame : ToygerFrame<NSCopying>
  38. @property (nonatomic, assign) ToygerMessage message;
  39. @property (nonatomic, assign) ToygerStaticMessage staticMessage;
  40. @property (nonatomic, assign) BOOL has_face;
  41. @property (nonatomic, assign) int brightness;
  42. @property (nonatomic, assign) int distance;
  43. @property (nonatomic, assign) BOOL face_in_center;
  44. @property (nonatomic, assign) BOOL is_moving;
  45. @property (nonatomic, assign) BOOL good_quality;
  46. @property (nonatomic, assign) BOOL good_pitch;
  47. @property (nonatomic, assign) BOOL good_yaw;
  48. @property (nonatomic, assign) BOOL eyeBlink;
  49. @property (nonatomic, assign) CGFloat progress;
  50. @end