Unable to include modules from opencv_contrib. fatal error: opencv2/face.hpp

asked 2015-08-01 11:35:49 -0500

meg123 gravatar image

I installed the latest version of opencv (OpenCv 3.0.0 Beta). I downloaded the opencv_contrib module and built it with opencv by doing a cmake (by following the instructions in the readme https://github.com/itseez/opencv_contrib). The build happened successfully. I wrote a simple program which uses creates a BasicFaceRecognizer model. However, when I compile my program I get the following error message fatal error: opencv2/face.hpp: No such file or directory #include"opencv2/face.hpp"

edit retag flag offensive close merge delete


when building the opencv libraries, did you run a final 'make install' (or build the INSTALL project on win) ? this should have copied all headers/libs to what you specified for 'CMAKE_INSTLL_PREFIX'

berak gravatar imageberak ( 2015-08-01 11:43:42 -0500 )edit

yes I ran a make install

meg123 gravatar imagemeg123 ( 2015-08-01 12:03:23 -0500 )edit