报错:
执行opencv文件时
./facedetect--cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml"--nested-cascade="../../data/haarcascades/haarcascade_eye.xml"--scale=1.3 lena.jpg
./facedetect: error while loading shared libraries:libopencv_nonfree.so.2.4: cannot open shared object file: No suchfile or directory
解决:
找到libopencv开头的库目录,通常在/usr/local/lib
在/etc/ld.so.conf.d/下面新建一个opencv.conf,写入/usr/local/lib
执行sudo ldconfig -v
执行opencv文件时
./facedetect--cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml"--nested-cascade="../../data/haarcascades/haarcascade_eye.xml"--scale=1.3 lena.jpg
./facedetect: error while loading shared libraries:libopencv_nonfree.so.2.4: cannot open shared object file: No suchfile or directory
解决:
找到libopencv开头的库目录,通常在/usr/local/lib
在/etc/ld.so.conf.d/下面新建一个opencv.conf,写入/usr/local/lib
执行sudo ldconfig -v