Ask Your Question

Revision history [back]

getting error while importing cv2 in python2

I have successfully built opencv with gstreamer using CMAKE and Visual studio c++. cv2.pyd file is also created in build/lib/release folder I have installed the library by build the INSTALL.csproj in visual studio.

But getting error while import cv2 into python, Here is error text:

Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python27\lib\site-packages\cv2__init__.py", line 91, in <module> bootstrap() File "C:\Python27\lib\site-packages\cv2__init__.py", line 81, in bootstrap import cv2 ImportError: DLL load failed: The specified module could not be found.

I have given the gstreamer as well as \build\install\x86\vc15\bin\ and build\install\x86\vc15\lib path also. Please help me on this..