DFACE C++  5.0.0
dface::DfaceDetect Class Referenceabstract

FaceDetect API. More...

#include <dface_detect.h>

Public Member Functions

 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
 

Detailed Description

FaceDetect API.

Constructor & Destructor Documentation

dface::DfaceDetect::DfaceDetect ( )
inline

Constructor

virtual dface::DfaceDetect::~DfaceDetect ( )
inlinevirtual

Destructor

Member Function Documentation

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]imgImage bytes data
[in]wImage width
[in]hImage height
[in]formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
[out]out_bboxsFace box return
[in]squareThe 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]imgImage bytes data
[in]wImage width
[in]hImage height
[in]formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
[out]out_bboxsFace box return
[in]squareThe 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]minSizeMinimum face size
Note
(default 80, 640*480P->40-60 1280*720P->100-160)

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