Ask Your Question

Revision history [back]

Problem with building opencv_contrib. Cannot find file face.hpp.

I want to use FaceRecognizer class. As far as I know, it's not present in OpenCV 3.* versions, so I need to build opencv_contrib repository to be able to use it in my projects.

Unfortunately something went wrong, I've built it, but I still can't find face.hpp file in libraries folder. Here is what I've done to build it:

This is where I installed OpenCV and how it looks like: image description

This is where I've copied opecv_contrib and how it looks like on my drive: image description

This is how I configured cmake-gui it build new libraries: image description

When I try to include face.hpp in my code:

#include "opencv2/face.hpp"

I see: cannot open source file "opencv2/face.hpp" and identifier "FaceRecognizer" is undefined.

Am I doing something wrong?