DFACE JAVA SDK  5.0.0
com.dface.api.FaceAssessment Class Reference
Collaboration diagram for com.dface.api.FaceAssessment:

Public Member Functions

boolean initLoad (String model_path)
 
boolean uninitLoad ()
 
float predictQuality (byte[] data, int w, int h, int format, Bbox bbox)
 
float predictQuality (Bitmap frameBitmap, Bbox bbox)
 

Member Function Documentation

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

init FaceAssessment

Parameters
model_pathmodel path
Returns
init status code
float com.dface.api.FaceAssessment.predictQuality ( byte[]  data,
int  w,
int  h,
int  format,
Bbox  bbox 
)

Predict face quality

Parameters
dataImage bytes data
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
bboxFace box
Returns
quality score value
float com.dface.api.FaceAssessment.predictQuality ( Bitmap  frameBitmap,
Bbox  bbox 
)

Predict face quality

Parameters
frameBitmapFrame bitmap
bboxFace box
Returns
quality score value
boolean com.dface.api.FaceAssessment.uninitLoad ( )

uninit FaceAssessment

Returns
uninit status code

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