opencv 3.2安装教程

参考:https://blog.csdn.net/alphaPii/article/details/72764917

修改:cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON cmake -D WITH_CUDA=OFF -D WITH_OPENMP=ON …

make -j8

测试:
python
import cv2

如果出现ImportError: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9’ not found (required by /home/dry/anaconda3/lib/libpng16.so.16)

则参考教程https://stackoverflow.com/questions/48306849/lib-x86-64-linux-gnu-libz-so-1-version-zlib-1-2-9-not-found

你可能感兴趣的:(opencv 3.2安装教程)