Linux
apt-get install python-opencv
Windows, 32bit
- Download OpenCV 2.4.7
- Execute exe
- When asked for the extraction-path just insert C:\
- Your opencv-installation will then be located in C:\opencv
- Now copy everything in the folder C:\opencv\build\python\x86\2.7\ ( most probably, there will be only one file cv2.pyd ) and paste it in the folder C:\Python27\Lib\site-packages\
- Open python, and type from cv2 import cv, this should give no errors
- for canopy copy C:\opencv\build\python\x86\2.7\* to C:\Users\weis\AppData\Local\Enthought\Canopy\User\Lib\site-packages
Windows, 64bit
- Download opencv-python-2.4.7.win-amd64-py2.7.exe from www.lfd.uci.edu/~gohlke/pythonlibs#opencv
- Execute installer
- Open (IDLE) python, type from cv2 import cv
- for canopy if the canopy python installation is in your system path, you can use the installer to install opencv-bindings to this location, else copy these files from C:\Python27\Lib\site-packages\ to C:\Users\YOURUSERNAME\AppData\Local\Enthought\Canopy\User\Lib\site-packages:
opencv_calib3d247.dll
opencv_contrib247.dll
opencv_core247.dll
opencv_features2d247.dll
opencv_ffmpeg247_64.dll
opencv_flann247.dll
opencv_gpu247.dll
opencv_highgui247.dll
opencv_imgproc247.dll
opencv_legacy247.dll
opencv_ml247.dll
opencv_nonfree247.dll
opencv_objdetect247.dll
opencv_photo247.dll
opencv_stitching247.dll
opencv_superres247.dll
opencv_video247.dll
opencv_videostab247.dll
tbb.dll
cv.py
cv2.pyd
opencv_python-2.4.7-py2.7.egg-info
cv.pyc
cv.pyo
And finally, from C:\Python27\opencv_ffmpeg247_64.dll to C:\Users\YOURUSERNAME\AppData\Local\Enthought\Canopy\User\