在Ubuntu上安装OpenCV后,我运行Python代码
import cv2
,然后出现以下错误:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: /usr/local/lib/python2.7/dist-packages/cv2.so: undefined symbol: _ZTIN2cv12_OutputArrayE
这是我安装OpenCV的方法。
mkdir opencv
cd opencv
git clone git://github.com/Itseez/opencv.git
mkdir build
cd build
ccmake ..
make
sudo make install
我能做什么?