根据对齐点将人脸进行旋转
#include <cv.h>
#include <highgui.h>
#include <fstream>
#include <vector>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
Mat_<double> LoadGroundTruthShape(string filename);
int main0()
{
Mat img = imread("D:\\image_070.jpg"); // read img
Mat_<double> shape = LoadGroundTruthShape("D:\\image_070.pts"); //read shape
for (int j = 0; j <68; j++){
circle(img, Point2d(shape(j, 0), shape(j, 1)), 3, Scalar(255, 255, 255), -