Created
October 20, 2015 13:33
-
-
Save berak/79aeb39b59222917c558 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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