DFACE JAVA SDK  5.0.0
com.dface.api.FaceNIRLiveness Class Reference

FaceNIRLiveness API. More...

Collaboration diagram for com.dface.api.FaceNIRLiveness:

Public Member Functions

boolean initLoad (String model_path)
 
boolean uninitLoad ()
 
float liveness_check (byte[] data, int w, int h, int format, Bbox faceBox)
 
float liveness_check (Bitmap frameBitmap, Bbox faceBox)
 
float liveness_check (Bbox inColorBox, Bbox inIrBox)
 

Detailed Description

Member Function Documentation

boolean com.dface.api.FaceNIRLiveness.initLoad ( String  model_path)

init

Parameters
model_pathmode path
Returns
init status code
float com.dface.api.FaceNIRLiveness.liveness_check ( byte[]  data,
int  w,
int  h,
int  format,
Bbox  faceBox 
)

NIR Liveness check

Parameters
dataNIR Image bytes data
wNIR image width
hNIR image height
formatNIR image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUY2, ...)
See also
com.dface.dto.FrameFormatType
Parameters
faceBoxColor image face box
Returns
liveness score note (score>=0.4 mean live usual)
float com.dface.api.FaceNIRLiveness.liveness_check ( Bitmap  frameBitmap,
Bbox  faceBox 
)

NIR Liveness check

Parameters
frameBitmapNIR frame bitmap
faceBoxColor image face box
Returns
liveness score note (score>=0.4 mean live usual)
float com.dface.api.FaceNIRLiveness.liveness_check ( Bbox  inColorBox,
Bbox  inIrBox 
)

NIR Liveness check

Parameters
inColorBoxColor image face box
inIrBoxNIR image face box
Returns
liveness score note (score>=0.4 mean live usual)
boolean com.dface.api.FaceNIRLiveness.uninitLoad ( )

uninit

Returns
uninit status code

The documentation for this class was generated from the following file: