OpenCV problems and solutions:
Using OpenCV 3.2 and OpenCV_contrib 3.2
~/Downloads/opencv_contrib/modules/dnn$ mv pro* .download/bd5e3eed635a8d32e2b99658633815ef/v3.1.0
cmake
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D WITH_TBB=ON
-D WITH_V4L=ON
-D WITH_QT=ON
-D WITH_OPENGL=ON
-D OPENCV_EXTRA_MODULES_PATH=/home/zhangyl/Downloads/opencv_contrib/modules ..
Remove Garbage
~/.local/share/Trash$ sudo rm -r files
http://blog.csdn.net/wukai0909/article/details/77869399?locationNum=10&fps=1
COPY:
/usr/local/lib/python3.5/site-packages/cv2.cpython-35m-x86_64-linux-gnu.so
TO:
/home/zhangyl/anaconda3/lib/python3.5/site-packages/
PROBLEM:
ImportError: /home/zhangyl/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/zhangyl/anaconda3/lib/python3.5/site-packages/cv2.cpython-35m-x86_64-linux-gnu.so)
SOLUTION:
conda install libgcc
PROBLEM:
>>> import cv2
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: numpy.core.multiarray failed to import
SOLUTION:
conda remove numpy
conda install numpy
PROBLEM:
cv2.imshow("image", image)
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
SOLUTION:
export GIO_EXTRA_MODULES=/usr/lib/x86_64-linux-gnu/gio/modules/