FaceDetect API.
More...
#include <dface_detect.h>
|
| DfaceDetect () |
|
virtual | ~DfaceDetect () |
|
virtual void | detection (unsigned char *img, int w, int h, int format, std::vector< dface::Box > &out_bboxs, bool square=true)=0 |
|
virtual void | detectionMax (unsigned char *img, int w, int h, int format, std::vector< dface::Box > &out_bboxs, bool square=true)=0 |
|
virtual void | SetMinSize (int minSize)=0 |
|
dface::DfaceDetect::DfaceDetect |
( |
| ) |
|
|
inline |
virtual dface::DfaceDetect::~DfaceDetect |
( |
| ) |
|
|
inlinevirtual |
virtual void dface::DfaceDetect::detection |
( |
unsigned char * |
img, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
std::vector< dface::Box > & |
out_bboxs, |
|
|
bool |
square = true |
|
) |
| |
|
pure virtual |
Detect all face in a image
- Parameters
-
[in] | img | Image bytes data |
[in] | w | Image width |
[in] | h | Image height |
[in] | format | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
[out] | out_bboxs | Face box return |
[in] | square | The return face box is squared |
- Returns
- ref out_bboxs
- Note
- (Detect no face,out_bboxs will be a empty vector)
virtual void dface::DfaceDetect::detectionMax |
( |
unsigned char * |
img, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
std::vector< dface::Box > & |
out_bboxs, |
|
|
bool |
square = true |
|
) |
| |
|
pure virtual |
Detect max size face box in a image
- Parameters
-
[in] | img | Image bytes data |
[in] | w | Image width |
[in] | h | Image height |
[in] | format | Image format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...) |
[out] | out_bboxs | Face box return |
[in] | square | The return face box is squared |
- Returns
- ref out_bboxs
- Note
- (Detect no face,out_bboxs will be a empty vector)
virtual void dface::DfaceDetect::SetMinSize |
( |
int |
minSize | ) |
|
|
pure virtual |
Set face detect minimum size
- Parameters
-
[in] | minSize | Minimum face size |
- Note
- (default 80, 640*480P->40-60 1280*720P->100-160)
The documentation for this class was generated from the following file: