9 #ifndef __PBIO_API__PBIO__IR_LIVENESS_ESTIMATOR_H_
10 #define __PBIO_API__PBIO__IR_LIVENESS_ESTIMATOR_H_
16 #include "ComplexObject.h"
17 #include "IRFrameRaw.h"
19 #include "RawSample.h"
21 #include "stl_wraps_impls/WrapOStreamImpl.h"
43 typedef LightSmartPtr<IRLivenessEstimator>::tPtr
Ptr;
120 const DHPtr &dll_handle,
140 IRLivenessEstimator::IRLivenessEstimator(
141 const DHPtr &dll_handle,
143 ComplexObject(dll_handle, impl)
154 void* exception = NULL;
156 const int result = _dll_handle->IRLivenessEstimator_estimateLiveness(
158 (pbio::facerec::RawSampleImpl
const*) sample._impl,
171 checkException(exception, *_dll_handle);
185 #endif // __PBIO_API__PBIO__IR_LIVENESS_ESTIMATOR_H_
Liveness
Estimated liveness.
Definition: IRLivenessEstimator.h:50
Interface object for creating other interface objects.
Definition: FacerecService.h:64
Interface object that stores a captured face sample.
Definition: RawSample.h:49
LightSmartPtr< IRLivenessEstimator >::tPtr Ptr
Alias for the type of a smart pointer to IRLivenessEstimator.
Definition: IRLivenessEstimator.h:43
An IR frame aligned with an original color image. Correspondence between the coordinates of the ori...
Definition: IRFrameRaw.h:21
The observed face belongs to a real person.
Definition: IRLivenessEstimator.h:64
float ir_vertical_fov
The vertical viewing angle of an IR frame in degrees.
Definition: IRFrameRaw.h:77
uint16_t const * ir_frame_data
Pointer to IR data.
Definition: IRFrameRaw.h:84
float ir_frame_2_image_offset_x
Parameter of correspondence between the coordinates of an original image and an IR frame...
Definition: IRFrameRaw.h:42
Error - the class of exceptions thrown when errors occur.
Not enough information.
Definition: IRLivenessEstimator.h:57
float ir_horizontal_fov
The horizontal viewing angle of an IR frame in degrees.
Definition: IRFrameRaw.h:70
float ir_frame_2_image_scale_y
Parameter of correspondence between the coordinates of an original image and an IR frame...
Definition: IRFrameRaw.h:63
The observed face is taken from a photo.
Definition: IRLivenessEstimator.h:71
Liveness estimateLiveness(const pbio::RawSample &sample, const pbio::IRFrameRaw ir_frame)
Estimates liveness of an observed face. The given IR map must be synchronized and aligned with the or...
Definition: IRLivenessEstimator.h:150
float ir_frame_2_image_offset_y
Parameter of correspondence between the coordinates of an original image and an IR frame...
Definition: IRFrameRaw.h:49
int32_t ir_data_stride_in_bytes
Stride in bytes.
Definition: IRFrameRaw.h:91
int ir_frame_cols
Width of an IR frame.
Definition: IRFrameRaw.h:35
float ir_frame_2_image_scale_x
Parameter of correspondence between the coordinates of an original image and an IR frame...
Definition: IRFrameRaw.h:56
Definition: FacerecService.mm:79
Interface object used to estimate face liveness in order to prevent spoofing attacks.
Definition: IRLivenessEstimator.h:34
int ir_frame_rows
Height of an IR frame.
Definition: IRFrameRaw.h:28
The observed face was not checked.
Definition: IRLivenessEstimator.h:78