Ask Your Question

brfoley76's profile - activity

2016-07-12 21:29:48 -0600 commented answer Windows install--cv2.pyd in right folder, but can't find dlls

Yes! Thank you. There were a lot of other (very different) problems I needed to troubleshoot to get it to finally install. But this worked for the .dll problem. Greatly appreciated.

2016-07-12 21:28:37 -0600 received badge  Scholar (source)
2016-06-22 19:23:13 -0600 asked a question Windows install--cv2.pyd in right folder, but can't find dlls

I need to get OpenCV 3.x installed on a Windows 7 (x64) machine, for a Python cv2 project. I installed Anaconda, to get Python 2.7 with numpy. I installed cmake 2.8, and ran it on the newest source code from github (3.1). I ran Visual Studio 2012, and built opencv. Everything seems to install okay:


...
    7>  -- Up-to-date: C:/opencv/build/install/include/opencv2/videostab/wobble_suppression.hpp
    7>  -- Installing: C:/Anaconda/Lib/site-packages/cv2.pyd
    7>  -- Up-to-date: C:/opencv/build/install/etc/haarcascades/haarcascade_eye.xml
    7>  -- Up-to-date: C:/opencv/build/install/etc/haarcascades/haarcascade_eye_tree_eyeglasses.xml
...

(at least, it's putting the cv2.pyd file in the right place). When I try to import cv2 in python, though, all I get is an error message:


>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.
>>>

I added the OpenCV path to the system environment, as C:\opencv\build\install\x64\vc11. But that didn't help. What am I missing?