c++ - fatal error: opencv2/contrib/contrib.hpp' file not found (open cv already built) -
i have downloaded , built open cv according these open cv docs.
i trying compile eigenfaces demo, , getting following error.
fatal error: 'opencv2/contrib/contrib.hpp' file not found
the line of concern is
#include "opencv2/contrib/contrib.hpp"
the contrib directory not in usr/local/include/opencv/
directory. have referenced following so question, seems handle case of building scratch.
also, repository references opencv_contrib not contain file contrib.hpp
how can add necessary source files current build without having rebuild everything?
since you're using opencv3.0:
the contrib parts have been outsourced separate github repo
you'll have that, append main opencv (re-)build, , then:
#include <opencv2/face.hpp> using namespace cv; ptr<face::facerecognizer> model = face::createlbphfacerecognizer(...)
(an additional namespace added here)
Comments
Post a Comment