I have a problem when I'm trying to use OpenCV (v3.1.0) in Python (v3.4). To make things more complicated, OpenCV is built with the "contrib" package and Qt support (v5.5).
This is what I did (this has some pitfalls on it's own, but those are out of the scope of this question):
- Install required software
- I installed WinPython (v3.4.4, 64 Bit version)
- I installed cmake (v3.6.0)
- Download sources
- I downloaded the Qt sources from the GIT repo
- I downloaded the OpenCV sources from the GIT repo
- I downloaded the OpenCV "contrib" sources from the GIT repo
- build sources -> RELEASE, 64 Bit (!)
- build Qt from sources
- build OpenCV from sources (with "contrib" modules)
cmake ( OpenCV 3.1.0 for python 3 ) already took care of copying the "cv2.pyd" to the "your/python/folder/Lib/site-modules" directory.
Now I have the problem that calling "import cv2" from python gives the error "
>>> import cv2
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import cv2
ImportError: DLL load failed: Module not found
How can I find out which module is missing and how to solve it?