Image Processing with Python Environment Setup for Windows
OpenCV installation
- Download OpenCV for Windows from OpenCV Download Page.
- Run the downloaded installer.
- ʻOpencv
folder is expanded to the same folder as the installer, so move that folder directly under the C drive (
C: `). (Example: mv / cygdrive / c / Users / navi / Downloads / opencv / cygdrive / c /
)
- Copy
C: \ opencv \ build \ python \ 2.7 \ x86 \ cv2.pyd
toC: \ Python2.7 \ Lib \ site-packages \
. (Example: cp /cygdrive/c/opencv/build/python/2.7/x86/cv2.pyd /cygdrive/c/Python2.7/Lib/site-packages/
)
Install PIL
- Download __Python Imaging Library X.X.X for Python 2.7 from the PIL Download Page.
- Run the downloaded installer.
reference