#ifndef THFACELIVE_I_H
|
#define THFACELIVE_I_H
|
|
/*
|
* ============================================================================
|
* Name : THFaceLive_i.h
|
* Part of : Face Liveness Detect (THFaceLive) SDK
|
* Created : 9.1.2017 by XXX
|
* Description:
|
* THFaceLive_i.h - Face Liveness Detect (THFaceLive) SDK header file
|
* Version : 2.0.0
|
* Copyright: All Rights Reserved by XXXX
|
* Revision:
|
* ============================================================================
|
*/
|
#include "THFaceImage_i.h"
|
|
#define THFACELIVE_API extern "C"
|
|
THFACELIVE_API int THFL_Create();
|
/*
|
The THFL_Create function will initialize the algorithm engine module
|
|
Parameters:
|
No parameter.
|
Return Values:
|
If the function succeeds, the return value is 1.
|
If the function fails, the return value is negative;
|
Remarks:
|
This function only can be called one time at program initialization.
|
*/
|
|
THFACELIVE_API int THFL_Detect(unsigned char* pBuf_color, unsigned char* pBuf_bw, int nWidth, int nHeight, THFI_FacePos* ptfp_color, THFI_FacePos* ptfp_bw, int nThreshold=30);
|
/*
|
The THFL_Detect function execute face liveness detection
|
|
Parameters:
|
pBuf_color[input],color camera image data buffer,bgr format.
|
pBuf_bw[input],black-white camera image data buffer,bgr format.
|
nWidth[input],image width.
|
nHeight[input],image height.
|
ptfp_color[input],face data of color camera image.(THFI_FacePos format,return by THFI_DetectFace of THFaceImage SDK)
|
ptfp_bw[input],face data of black-white camera image.(THFI_FacePos format,return by THFI_DetectFace of THFaceImage SDK)
|
nThreshold[input],score threshold(sugguest value is 30)
|
Return Values:
|
If the function succeeds, the return value is 0 or 1.(0->fake face,1->live face)
|
If the function fails, the return value is negative.
|
Remarks:
|
*/
|
THFACELIVE_API void THFL_Release();
|
/*
|
The THFL_Release function will release the algorithm engine module
|
|
Parameters:
|
No parameter.
|
Return Values:
|
No return value.
|
Remarks:
|
This function only can be called one time at program exit.
|
*/
|
|
#endif
|