I am using OpenCV 3.0 beta.
I tried to create a face recogniser using createLBPHFaceRecognizer(); class as,
**Ptr <FaceRecognizer> model = createLBPHFaceRecognizer();**
**error: 'createLBPHFaceRecognizer' was not declared in this scope**
you will have to download and build the opencv_contrib repo.
after running cmake, make, make install,
#include <opencv2/face.hpp> // note the additional namespace: cv::Ptr <cv::face::FaceRecognizer> model = cv::face::createLBPHFaceRecognizer(); // proceed as usual