2012年9月3日星期一
Import OpenCV in Python error in Ubuntu
When i am using OpenCV in the python console, i want to import the OpenCV library, but errors happen:
>>> import cv
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.7/cv.py", line 1, in <module>
from cv2.cv import *
ImportError: numpy.core.multiarray failed to import
so we need to install python-numpy to solve the problem, open your terminal in the Ubuntu12.04, then type the command: sudo apt-get install python-numpy
after installation, you will find you can import the OpenCV library successfully.
订阅:
博文评论 (Atom)
Good article,Need plugin click here
回复删除