Face SDK  1.13.0 Mozart release
Face Recognition Software Development Kit
liveness_102.h
1 
4 #pragma once
5 
6 #include <face_sdk_liveness/liveness.h>
7 
8 namespace face_sdk
9 {
20  {
21  public:
22 
23  enum
24  {
27  ERR_IMAGE_TOO_SMALL = liveness_result::SUCCESS + 1,
28 
32 
36 
40 
44 
48 
49  ERR_LAST = ERR_FACE_OUT_OF_BOUNDS
50  };
51 
52  virtual ~liveness_102_result() = default;
53 
56  virtual float value1() const = 0;
57 
60  virtual float value2() const = 0;
61 
64  virtual float value3() const = 0;
65  };
66 
67  typedef std::vector<std::shared_ptr<liveness_102_result>> liveness_102_result_set;
68 
74  {
75  public:
76  virtual ~liveness_102_config() = default;
77 
80  virtual float threshold1() const = 0;
81 
84  virtual float threshold2() const = 0;
85 
88  virtual float threshold3() const = 0;
89  };
90 
93  std::shared_ptr<liveness_102_config> FACE_SDK_EXPORT make_liveness_102_config(float threshold1,
94  float threshold2,
95  float threshold3);
96 
99  std::shared_ptr<liveness_102_config> FACE_SDK_EXPORT make_liveness_102_default_config();
100 
104  std::vector<std::shared_ptr<liveness_102_result>> FACE_SDK_EXPORT liveness_results_102_cast(const std::vector<std::shared_ptr<liveness_result>> &liveness_results);
105 
107 }
detected face is out of image bounds
Definition: liveness_102.h:47
The config for liveness 102 algorithm.
Definition: liveness_102.h:73
detected face width is too big. The ratio of the distance between the eyes and the image size must no...
Definition: liveness_102.h:31
virtual float value2() const =0
predicted value2. All three values must be greater than corresponsding thresholds for passing livenes...
The liveness_result object. The result object can be casted to specific liveness depending on livenes...
Definition: liveness.h:24
The result of liveness 102 algorithm.
Definition: liveness_102.h:19
std::shared_ptr< liveness_102_config > make_liveness_102_config(float threshold1, float threshold2, float threshold3)
Makes config for liveness 102 with specified thresholds.
Definition: alignment_info.h:8
virtual float threshold2() const =0
threshold for livenes_102_result::value2(). All three values must be greater than corresponsding thre...
std::shared_ptr< liveness_102_config > make_liveness_102_default_config()
Makes config for liveness 102 with default thresholds.
given face_sdk::face object was made by unsupported face detector version. See list of dependencies...
Definition: liveness_102.h:43
Liveness config. Each liveness version its own config. Use specific factory functions to make configu...
Definition: liveness.h:48
virtual float value1() const =0
predicted value1. All three values must be greater than corresponsding thresholds for passing livenes...
detected face rool angle is too big. The angle must not be greater than 25
Definition: liveness_102.h:39
detected face yaw angle is too big. The angle must not be greater than 25
Definition: liveness_102.h:35
input image is too small. Width and Height of the image must be not less than 128 ...
Definition: liveness_102.h:27
virtual float value3() const =0
predicted value3. All three values must be greater than corresponsding thresholds for passing livenes...
std::vector< std::shared_ptr< liveness_102_result > > liveness_results_102_cast(const std::vector< std::shared_ptr< liveness_result >> &liveness_results)
Casts face_sdk::liveness_result to face_sdk::liveness_102_result.
virtual float threshold3() const =0
threshold for livenes_102_result::value3(). All three values must be greater than corresponsding thre...
virtual float threshold1() const =0
threshold for livenes_102_result::value1(). All three values must be greater than corresponsding thre...