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

Public Member Functions

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

Member Function Documentation

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

init FaceAttribute

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

Predict face age and gender

Parameters
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
See also
com.dface.dto.FrameFormatType
Parameters
bboxFace box
Returns
Output [age,gender] (0:Female 1:Male)
int [] com.dface.api.FaceAttribute.predictAgeGender ( Bitmap  frameBitmap,
Bbox  bbox 
)

Predict face age and gender

Parameters
frameBitmapFrame bitmap
bboxFace box
Returns
Output [age,gender] (0:Female 1:Male)
float com.dface.api.FaceAttribute.predictMask ( byte[]  data,
int  w,
int  h,
int  format,
Bbox  bbox 
)

Predict face mask

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

Predict face age and gender

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

uninit FaceAttribute

Returns
uninit status code

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