How to use OpenCV in Python?
Posted
by
Roman
on Stack Overflow
See other posts from Stack Overflow
or by Roman
Published on 2011-02-17T14:40:21Z
Indexed on
2011/02/17
15:25 UTC
Read the original article
Hit count: 288
I have just installed OpenCV on my Windows 7 machine. As a result I get a new directory:
C:\OpenCV2.2\Python2.7\Lib\site-packages
In this directory I have two files: cv.lib
and cv.pyd
.
Then I try to use the opencv from Python. I do the following:
import sys
sys.path.append('C:\OpenCV2.2\Python2.7\Lib\site-packages')
import cv
As a result I get the following error message:
File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
What am I doing wrong?
ADDED
As it was recommended here, I have copied content of C:\OpenCV2.0\Python2.6\Lib\site-packages
to the C:\Python26\Lib\site-packages
. It did not help.
© Stack Overflow or respective owner