DFACE C++
5.0.0
|
FacePose API. More...
#include <dface_pose.h>
Public Member Functions | |
DfacePose () | |
virtual | ~DfacePose () |
virtual void | predictPose (unsigned char *frame, int w, int h, int format, dface::Box &in_bbox, std::vector< dface::Point > &out_landmark, std::vector< double > &out_head_pose)=0 |
virtual void | setCameraParameter (float focalLength, float opticalCenterX, float opticalCenterY)=0 |
FacePose API.
|
inline |
Constructor
|
inlinevirtual |
Destructor
|
pure virtual |
Detect face landmarks and 3d pose(Euler angles) information
[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_landmarks | Output face landmarks |
[out] | out_head_pose | Output face 3d pose(yaw,pitch,roll,t_x,t_y,t_z) |
|
pure virtual |
Set camera parameters
[in] | focalLength | Camera focal length(unit pixels),default 500px focalLength = f_mm * (sensor_size_px / sensor_size_mm) f_mm: camera physic focal length(unit mm) sensor_size_px:camera sensor size, unit pixels sensor_size_mm:camera sensor physic size, unit mm |
[in] | opticalCenterX | opticalCenterX=image width/2,unit pixels |
[in] | opticalCenterY | opticalCenterY=image height/2,unit pixels |