Python wrapper installation

Under Windows

Assuming you have installed OpenCV into C:/Program Files/OpenCV, Here is a quick howto:
  1. Launch a terminal (Demarrer -> Executer -> cmd)
  2. Then change the working directory:
     cd C:/Program Files/OpenCV/interfaces/swig/python
  3. Then, launch the python setup script:
     python.exe setup-for-win-py install
  4. ok, it's done! try to import opencv module on python script
     from import *

Under Linux


Very easy: launch this command line on terminal:

 apt-get install python-opencv