Project

General

Profile

Actions

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 opencv.cv import *

Under Linux

Ubuntu:

Very easy: launch this command line on terminal:

 apt-get install python-opencv 

Updated by Serge Koudoro almost 16 years ago ยท 3 revisions