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

FaceDetect API. More...

Collaboration diagram for com.dface.api.FaceDetect:

Public Member Functions

boolean initLoad (String model_path, int precisionMode)
 
boolean uninitLoad ()
 
List< Bboxdetection (byte[] data, int w, int h, int format, boolean square)
 
List< Bboxdetection (Bitmap frameBitmap, boolean square)
 
List< BboxdetectionMax (byte[] data, int w, int h, int format, boolean square)
 
List< BboxdetectionMax (Bitmap frameBitmap, boolean square)
 
void SetMinSize (int minSize)
 

Detailed Description

Member Function Documentation

List<Bbox> com.dface.api.FaceDetect.detection ( byte[]  data,
int  w,
int  h,
int  format,
boolean  square 
)

Detect all face in a image

Parameters
dataImage bytes data
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
See also
com.dface.dto.FrameFormatType
Parameters
squareThe return face box is squared
Returns
face boxes
List<Bbox> com.dface.api.FaceDetect.detection ( Bitmap  frameBitmap,
boolean  square 
)

Detect all face in a image

Parameters
frameBitmapFrame bitmap
squareThe return face box is squared
Returns
face boxes
List<Bbox> com.dface.api.FaceDetect.detectionMax ( byte[]  data,
int  w,
int  h,
int  format,
boolean  square 
)

Detect max size face box in a image

Parameters
dataImage bytes data
wImage width
hImage height
formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
See also
com.dface.dto.FrameFormatType
Parameters
squareThe return face box is squared
Returns
face boxes
List<Bbox> com.dface.api.FaceDetect.detectionMax ( Bitmap  frameBitmap,
boolean  square 
)

Detect max size face box in a image

Parameters
frameBitmapFrame bitmap
squareThe return face box is squared
Returns
face boxes
boolean com.dface.api.FaceDetect.initLoad ( String  model_path,
int  precisionMode 
)

init FaceDetect

Parameters
model_pathmodel path
precisionModePrecision Mode (Precision_Low, Precision_High)
Returns
init status code
void com.dface.api.FaceDetect.SetMinSize ( int  minSize)

Set face detect minimum size

Parameters
[in]minSizeMinimum face size
Note
(default 80, 640*480P->40-100 1280*720P->100-160)
boolean com.dface.api.FaceDetect.uninitLoad ( )

uninit FaceDetect

Returns
uninit status code

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