7 #include <c_interface/face_sdk_liveness/liveness.h> 9 FACE_SDK_EXTERN_C_BEGIN
22 DECLARE_FACE_SDK_CLASS(liveness_102_config)
39 DECLARE_FACE_SDK_CLASS(liveness_102_result)
53 DECLARE_FACE_SDK_SET(liveness_102_result_set, liveness_102_result)
69 int32_t compute_device,
88 int32_t compute_device,
107 int32_t compute_device,
128 int32_t compute_device,
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