DFACE C++  5.0.0
dface::DfaceAttribute Class Referenceabstract

FaceAttribute API. More...

#include <dface_attribute.h>

Public Member Functions

 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
 

Detailed Description

FaceAttribute API.

Constructor & Destructor Documentation

dface::DfaceAttribute::DfaceAttribute ( )
inline

Constructor

virtual dface::DfaceAttribute::~DfaceAttribute ( )
inlinevirtual

Destructor

Member Function Documentation

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]imgImage bytes data
[in]wImage width
[in]hImage height
[in]formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
[in]in_bboxsFace boxes
[out]out_ageOutput age
[out]out_genderOutput 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]imgImage bytes data
[in]wImage width
[in]hImage height
[in]formatImage format(PIXELS_BGR, PIXELS_RGB, PIXELS_YUYV, PIXELS_MJPEG ...)
[in]in_bboxsFace boxes
Returns
[out] mask score volume

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