Qiansou / FacePose


README.md 1.11 KB

FacePose

千搜科技人脸姿态检测,51个人脸特征点,3个方向的角度
输入图片说明

调用Demo示例

#include <stdio.h>
#include <Windows.h>
#define POINTS_NUM 51
typedef struct {
	float roll;
	float yaw;
	float pitch;
	POINT points[POINTS_NUM];
} FacePointsModel;

//创建人脸特征点引擎engine
int CreateFacePointsEngine();

//engine 是CreateFacePointsEngine返回值
//rgb24 照片的RGB数据区
//width,height 照片的宽,长
//widthstep 详细可参考http://www.opencv.org.cn/forum.php?mod=viewthread&tid=1931
//rtFace 脸的举行区域
//fpm 人脸特征点以及三个角度的返回值
float CalculateFacePoints(int engine, unsigned char * rgb24, int width, int height, int widthstep, RECT rtFace, FacePointsModel &fpm);

//快速人脸检测接口
int DetectFaces(unsigned char * gray_data, int width, int height, int widthstep,RECT* rtFaces);

输出

roll=1.003720,
yaw=-1.232409,
pitch=-10.462233

技术支持

QQ: 2843028512
QQ群:567619263