3DiVi Face SDK  3.24.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
ActiveLiveness.h
1 #ifndef __LIBFACEREC_ACTIVELIVENESS_H
2 #define __LIBFACEREC_ACTIVELIVENESS_H
3 namespace pbio {
4 
5 
7 public:
8 
14  enum CheckType{
15  NONE = 0,
16  SMILE = 1,
17  BLINK = 2,
18  TURN_UP = 3,
19  TURN_DOWN = 4,
20  TURN_RIGHT = 5,
21  TURN_LEFT = 6,
22  PERSPECTIVE = 7
23  };
24 
26  static std::string CheckTypeToString(const CheckType& check){
27  switch (check) {
28  case NONE: return "none";
29  case SMILE: return "smile";
30  case BLINK: return "blink";
31  case TURN_UP: return "turn_up";
32  case TURN_DOWN: return "turn_down";
33  case TURN_RIGHT: return "turn_right";
34  case TURN_LEFT: return "turn_left";
35  case PERSPECTIVE: return "perspective";
36  default: return "";
37  }
38  }
40 
41 
47  enum Liveness {
48  ALL_CHECKS_PASSED = 0,
49  CURRENT_CHECK_PASSED = 1,
50  CHECK_FAIL = 2,
51  WAITING_FACE_ALIGN = 3,
52  IN_PROGRESS = 4,
53  NOT_COMPUTED = 5
54  };
55 
62  Liveness verdict;
63  CheckType check_type;
64  float progress_level;
65 
67  verdict = NOT_COMPUTED;
68  check_type = NONE;
69  progress_level = 0;
70  }
71  };
72 
73 };
74 
75 }
76 #endif //__LIBFACEREC_ACTIVELIVENESS_H
Liveness
Active liveness check state.
Definition: ActiveLiveness.h:47
Definition: ActiveLiveness.h:6
CheckType
Check type for active liveness.
Definition: ActiveLiveness.h:14
Active liveness check state.
Definition: ActiveLiveness.h:61