DFACE C++  5.0.0
dface::DfacePose Class Referenceabstract

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
 

Detailed Description

FacePose API.

Constructor & Destructor Documentation

dface::DfacePose::DfacePose ( )
inline

Constructor

virtual dface::DfacePose::~DfacePose ( )
inlinevirtual

Destructor

Member Function Documentation

virtual void dface::DfacePose::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 
)
pure virtual

Detect face landmarks and 3d pose(Euler angles) information

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_landmarksOutput face landmarks
[out]out_head_poseOutput face 3d pose(yaw,pitch,roll,t_x,t_y,t_z)
Returns
ref out_landmarks and out_head_pose
Note
()
virtual void dface::DfacePose::setCameraParameter ( float  focalLength,
float  opticalCenterX,
float  opticalCenterY 
)
pure virtual

Set camera parameters

Parameters
[in]focalLengthCamera 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]opticalCenterXopticalCenterX=image width/2,unit pixels
[in]opticalCenterYopticalCenterY=image height/2,unit pixels

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