윈도우

OpenCV 2.0 + Python 2.6 on windows

ForceCore 2010. 1. 16. 18:16
Tested on windows 7.

1. Install windows version of OpenCV 2.0 : http://sourceforge.net/projects/opencvlibrary/
2. Install python 2.6: http://www.python.org/download/ 2.6 is the latest version of 2.x available for windows and, the supported version by OpenCV 2.0.
3. WIth both installed, browse to C:\OpenCV2.0\bin (if you have installed OpenCV to default path.) and copy all the dll files (libcv200.dll ... libopencv_ffmpeg200.dll) to C:\windows\system32
4. Browse to C:\OpenCV2.0\Python2.6\Lib\site-packages and copy everything to C:\Python26\Lib\site-packages .
5. If everything is done correctly, the following code should run:
import cv
cv.SaveImage("foo.bmp", cv.LoadImage("ghoti.jpg"))
ghoti.jpg should be converted to bitmap format.

This is it!