Python Bindings for OpenCV 4.1.1 reports DLL not found on Windows 10

asked 2019-08-23 03:44:08 -0500


I compiled OpenCV from source following roughly the tutorial here: using Visual Studio 19 with PYTHON 3.7 (No Python 2).

I built the BUILD ALL target and it reported all successful. Done the same for INSTALL target.

Now when I open the python interpreter and run:

import cv2

It gives me the following error:

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

I tried to trace it by checking the file, Dependency Walker, and several other trials, but to no luck.

Is there anyway of tracing back this error by any means? Thanks.

edit retag flag offensive close merge delete