FaceAttribute API.
More...
#include <dface_attribute.h>
|
| DfaceAttribute () |
|
virtual | ~DfaceAttribute () |
|
virtual void | predictAgeGender (unsigned char *data, int w, int h, int format, dface::Box &in_bbox, int &out_age, int &out_gender)=0 |
|
virtual float | predictMask (unsigned char *data, int w, int h, int format, dface::Box &in_bbox)=0 |
|
dface::DfaceAttribute::DfaceAttribute |
( |
| ) |
|
|
inline |
virtual dface::DfaceAttribute::~DfaceAttribute |
( |
| ) |
|
|
inlinevirtual |
virtual void dface::DfaceAttribute::predictAgeGender |
( |
unsigned char * |
data, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
dface::Box & |
in_bbox, |
|
|
int & |
out_age, |
|
|
int & |
out_gender |
|
) |
| |
|
pure virtual |
Predict face age and gender
- 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 ...) |
[in] | in_bboxs | Face boxes |
[out] | out_age | Output age |
[out] | out_gender | Output gender(0:Female 1:Male) |
virtual float dface::DfaceAttribute::predictMask |
( |
unsigned char * |
data, |
|
|
int |
w, |
|
|
int |
h, |
|
|
int |
format, |
|
|
dface::Box & |
in_bbox |
|
) |
| |
|
pure virtual |
Predict face mask
- 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 ...) |
[in] | in_bboxs | Face boxes |
- Returns
- [out] mask score volume
The documentation for this class was generated from the following file: