Face SDK  1.14.1 Mozart release
Face Recognition Software Development Kit
liveness_102.h
1 
3 #pragma once
4 
5 #include <face_sdk_base/export.h>
6 
7 #include <c_interface/face_sdk_liveness/liveness.h>
8 
9 FACE_SDK_EXTERN_C_BEGIN
10 
22 DECLARE_FACE_SDK_CLASS(liveness_102_config)
23 
24 
26 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_config__get_threshold1(const face_sdk__liveness_102_config_t *config, float *threshold);
27 
30 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_config__get_threshold2(const face_sdk__liveness_102_config_t *config, float *threshold);
31 
34 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_config__get_threshold3(const face_sdk__liveness_102_config_t *config, float *threshold);
35 
39 DECLARE_FACE_SDK_CLASS(liveness_102_result)
40 
41 
43 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_result__get_value1(const face_sdk__liveness_102_result_t *result, float *threshold);
44 
47 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_result__get_value2(const face_sdk__liveness_102_result_t *result, float *threshold);
48 
51 bool FACE_SDK_C_EXPORT face_sdk__liveness_102_result__get_value3(const face_sdk__liveness_102_result_t *result, float *threshold);
52 
53 DECLARE_FACE_SDK_SET(liveness_102_result_set, liveness_102_result)
54 
55 
66 bool FACE_SDK_C_EXPORT face_sdk__make_liveness(uint32_t version,
67  const face_sdk__liveness_102_config_t *config,
68  uint32_t batch_size,
69  int32_t compute_device,
70  face_sdk__liveness_t **liveness);
71 
84 bool FACE_SDK_C_EXPORT face_sdk__make_liveness_1(uint32_t version,
85  const face_sdk__liveness_102_config_t *config,
86  const face_sdk__license_t *license,
87  uint32_t batch_size,
88  int32_t compute_device,
89  face_sdk__liveness_t **liveness);
90 
103 bool FACE_SDK_C_EXPORT face_sdk__make_liveness_2(uint32_t version,
104  const face_sdk__liveness_102_config_t *config,
105  const face_sdk__data_container_t *container,
106  uint32_t batch_size,
107  int32_t compute_device,
108  face_sdk__liveness_t **liveness);
109 
123 bool FACE_SDK_C_EXPORT face_sdk__make_liveness_3(uint32_t version,
124  const face_sdk__liveness_102_config_t *config,
125  const face_sdk__license_t *license,
126  const face_sdk__data_container_t *container,
127  uint32_t batch_size,
128  int32_t compute_device,
129  face_sdk__liveness_t **liveness);
130 
133 bool FACE_SDK_C_EXPORT face_sdk__make_liveness_102_config(float threshold1,
134  float threshold2,
135  float threshold3,
137 
141 
148 
154 void FACE_SDK_C_EXPORT face_sdk__liveness_102_result_free(face_sdk__liveness_102_result_t *liveness_result);
155 
161 bool FACE_SDK_C_EXPORT face_sdk__liveness_results_102_cast(const face_sdk__liveness_result_set_t *results,
163 
166 FACE_SDK_EXTERN_C_END
Definition: liveness.h:56
bool face_sdk__make_liveness_1(uint32_t version, const face_sdk__liveness_102_config_t *config, const face_sdk__license_t *license, uint32_t batch_size, int32_t compute_device, face_sdk__liveness_t **liveness)
Makes liveness with specified version, config, license, batch size and compute device.
bool face_sdk__liveness_102_config__get_threshold2(const face_sdk__liveness_102_config_t *config, float *threshold)
threshold for face_sdk__liveness_102_result__get_value2(). All three values must be greater than corr...
bool face_sdk__liveness_102_config__get_threshold1(const face_sdk__liveness_102_config_t *config, float *threshold)
threshold for face_sdk__liveness_102_result__get_value1(). All three values must be greater than corr...
bool face_sdk__make_liveness(uint32_t version, const face_sdk__liveness_102_config_t *config, uint32_t batch_size, int32_t compute_device, face_sdk__liveness_t **liveness)
Makes liveness with specified version, config, batch size and compute device.
bool face_sdk__make_liveness_102_config(float threshold1, float threshold2, float threshold3, face_sdk__liveness_102_config_t **config)
Makes config for liveness 102 with specified thresholds.
void face_sdk__liveness_102_config_free(face_sdk__liveness_102_config_t *config)
Destroys face_sdk__liveness_102_config object.
void face_sdk__liveness_102_result_free(face_sdk__liveness_102_result_t *liveness_result)
Destroys face_sdk__liveness_102_result object.
FACE_SDK_EXTERN_C_BEGIN struct face_sdk__data_container face_sdk__data_container_t
The data container handle. The data container helps face_sdk to manage a data.
bool face_sdk__make_liveness_3(uint32_t version, const face_sdk__liveness_102_config_t *config, const face_sdk__license_t *license, const face_sdk__data_container_t *container, uint32_t batch_size, int32_t compute_device, face_sdk__liveness_t **liveness)
Makes liveness with specified version, config, license, data container, batch size and compute device...
The config for liveness 102 algorithm.
Definition: liveness_102.h:22
bool face_sdk__liveness_102_result__get_value3(const face_sdk__liveness_102_result_t *result, float *threshold)
predicted value3. All three values must be greater than corresponsding thresholds for passing livenes...
The license object. A license object provides information about your limits in face_sdk. See Licensing.
Definition: license.h:22
bool face_sdk__liveness_results_102_cast(const face_sdk__liveness_result_set_t *results, face_sdk__liveness_102_result_set_t **results_102)
Casts face_sdk__liveness_result_set to face_sdk__liveness_102_result_set.
The liveness detection. Can be used to detect if that`s alive person on the photo.
Definition: liveness.h:27
bool face_sdk__liveness_102_result__get_value2(const face_sdk__liveness_102_result_t *result, float *threshold)
predicted value2. All three values must be greater than corresponsding thresholds for passing livenes...
Definition: liveness_102.h:53
bool face_sdk__make_liveness_102_default_config(face_sdk__liveness_102_config_t **config)
Makes config for liveness 102 with default thresholds.
bool face_sdk__make_liveness_2(uint32_t version, const face_sdk__liveness_102_config_t *config, const face_sdk__data_container_t *container, uint32_t batch_size, int32_t compute_device, face_sdk__liveness_t **liveness)
Makes liveness with specified version, config, data container, batch size and compute device...
bool face_sdk__liveness_102_config__get_threshold3(const face_sdk__liveness_102_config_t *config, float *threshold)
threshold for face_sdk__liveness_102_result__get_value3(). All three values must be greater than corr...
bool face_sdk__liveness_102_result__get_value1(const face_sdk__liveness_102_result_t *result, float *threshold)
predicted value1. All three values must be greater than corresponsding thresholds for passing livenes...
The result of liveness 102 algorithm.
Definition: liveness_102.h:39