Python wrapper installation » History » Version 3
Serge Koudoro, 01/13/2009 05:33 PM
1 | 1 | Serge Koudoro | h1. Python wrapper installation |
---|---|---|---|
2 | |||
3 | 2 | Serge Koudoro | h2{color:#8B0000}. Under Windows |
4 | 1 | Serge Koudoro | |
5 | Assuming you have installed OpenCV into *C:/Program Files/OpenCV*, Here is a quick howto: |
||
6 | 2 | Serge Koudoro | # Launch a terminal (Demarrer -> Executer -> cmd) |
7 | # Then change the working directory:<pre> cd C:/Program Files/OpenCV/interfaces/swig/python</pre> |
||
8 | # Then, launch the python setup script: <pre> python.exe setup-for-win-py install</pre> |
||
9 | 3 | Serge Koudoro | # ok, it's done! try to import opencv module on python script <pre> from opencv.cv import *</pre> |
10 | 1 | Serge Koudoro | |
11 | |||
12 | 2 | Serge Koudoro | h2{color:#8B0000}. Under Linux |
13 | |||
14 | *%{color:#006400}+Ubuntu:+%* |
||
15 | |||
16 | Very easy: launch this command line on terminal: |
||
17 | <pre> apt-get install python-opencv </pre> |