Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#include <opencv2/opencv.hpp>
#include "face_x.h"
FaceX face_x("model.xml.gz");
// if you have a Rect, e.g. from CascadeDetector:
std::vector<cv::Point2d> landmarks = face_x.Alignment(img, cv::Rect(0,0,img.cols,img.rows));
// or track previous landmarks:
landmarks = face_x.Alignment(img, landmarks);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment