9 #ifndef __PBIO_API__PBIO__DEPTH_LIVENESS_ESTIMATOR_H_
10 #define __PBIO_API__PBIO__DEPTH_LIVENESS_ESTIMATOR_H_
16 #include "ComplexObject.h"
17 #include "DepthMapRaw.h"
19 #include "RawSample.h"
21 #include "stl_wraps_impls/WrapOStreamImpl.h"
43 typedef LightSmartPtr<DepthLivenessEstimator>::tPtr
Ptr;
120 const DHPtr &dll_handle,
140 DepthLivenessEstimator::DepthLivenessEstimator(
141 const DHPtr &dll_handle,
143 ComplexObject(dll_handle, impl)
154 void* exception = NULL;
156 const int result = _dll_handle->DepthLivenessEstimator_estimateLiveness(
158 (pbio::facerec::RawSampleImpl
const*) sample._impl,
172 checkException(exception, *_dll_handle);
186 #endif // __PBIO_API__PBIO__DEPTH_LIVENESS_ESTIMATOR_H_
float depth_map_2_image_scale_x
Parameter of correspondence between the coordinates of the original image and depth map...
Definition: DepthMapRaw.h:56
Interface object for creating other interface objects.
Definition: FacerecService.h:64
float depth_unit_in_millimeters
Scale of values stored in the depth_data.
Definition: DepthMapRaw.h:84
int depth_data_stride_in_bytes
Stride in bytes.
Definition: DepthMapRaw.h:98
Interface object that stores a captured face sample.
Definition: RawSample.h:49
float horizontal_fov
The horizontal viewing angle of the depth map in degrees.
Definition: DepthMapRaw.h:70
int depth_map_cols
Width of the depth map.
Definition: DepthMapRaw.h:35
The observed face is taken from a photo.
Definition: DepthLivenessEstimator.h:71
Interface object used to estimate face liveness in order to prevent spoofing attacks.
Definition: DepthLivenessEstimator.h:34
float depth_map_2_image_offset_y
Parameter of correspondence between the coordinates of the original image and depth map...
Definition: DepthMapRaw.h:49
The observed face belongs to a real person.
Definition: DepthLivenessEstimator.h:64
int depth_map_rows
Height of the depth map.
Definition: DepthMapRaw.h:28
Error - the class of exceptions thrown when errors occur.
Liveness estimateLiveness(const pbio::RawSample &sample, const pbio::DepthMapRaw depth_map)
Estimates liveness of the observed face. The given depth map must be synchronized and aligned with th...
Definition: DepthLivenessEstimator.h:150
A depth map aligned with the original color image. Correspondence between the coordinates of the or...
Definition: DepthMapRaw.h:21
float depth_map_2_image_scale_y
Parameter of correspondence between the coordinates of the original image and depth map...
Definition: DepthMapRaw.h:63
float depth_map_2_image_offset_x
Parameter of correspondence between the coordinates of the original image and depth map...
Definition: DepthMapRaw.h:42
Definition: FacerecService.mm:79
float vertical_fov
The vertical viewing angle of the depth map in degrees.
Definition: DepthMapRaw.h:77
Not enough information.
Definition: DepthLivenessEstimator.h:57
The observed face was not checked.
Definition: DepthLivenessEstimator.h:78
Liveness
Estimated liveness.
Definition: DepthLivenessEstimator.h:50
uint16_t const * depth_data
Pointer to the depth raw data.
Definition: DepthMapRaw.h:91
LightSmartPtr< DepthLivenessEstimator >::tPtr Ptr
Alias for the type of a smart pointer to DepthLivenessEstimator.
Definition: DepthLivenessEstimator.h:43