I am also using the same library to detect facial feature points recently.
You can make it work by following the follwowing steps:
Make sure you add the correct
OpenCV-Path\build\include
andOpenCV-Path\build\x86\vc10\lib
(all OpenCV libs you added to your project should be found here) to the project.For
liblbp.h
file, change#include "msvc-compat.h"
to
#include <stdint.h>
For
flandmark_detector.h
file, change#include "msvc-compat.h" #include <cv.h> #include <cvaux.h>
to
#include <stdint.h> #include "opencv2/opencv.hpp" #include "opencv2/objdetect/objdetect.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include <iostream> #include <stdio.h> using namespace std; using namespace cv;
You can download the workable VS10 project of this library here.
Note: I also added the OpenCV library in the project so that it should run well without any extra setting.
After running this, you should achieve something like this: