1、加载一张原图,并识别人脸的68个特征点 cv::Mat img = cv::imread("5.jpg"); vector<Point2f> points_vec = dectectFace68(img); Mat dst0 = on_BigEye(800, img, points_vec); 2、函数 vector<Point2f> dectectFace68(Mat src) { vector<Point2f> points_vec; int* pResults = NULL; unsigned char* pBuffer = (unsigned char*)malloc(DETECT_BUFFER_SIZE); if (!pBuffer) { fprintf(stderr, "Can not alloc buffer.\n"); } Mat gray; cvtColor(src, gray, CV_BGR2GRAY); int doLandmark = 1; pResults = facedetect_multiview_reinforce(pBuffer,...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Mat
Contact Mat, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack