Sunday, July 17, 2011

Episode_9_Trying_OpenCV_with_Python


Well let's try using OpenCV with Python binding on Win 7... Why using Python? this is open source programming language.. On the other side, it's very helpfull us when the project requires a mathematical algorithm like as MATLAB.


Here How I used OpenCV with python.
  1. Of course we need OpenCV2.1 from Sourceforge. (Why I using OpenCV2.1 couse the library OpenCV2.1 is more suitable with Pyhton 2.6.4 than the others).
  2. Install Pyhton 2.6.4 (you can download from python.org).
  3. Make some edits to your Environment Variables : MyComputer -> Properties - > Advanced system settings -> Environment Variables.
  • Add C:/Python26;C:/OpenCV2.1/bin to PATH
  • Add C:/OpenCV2.1/Python2.6/Lib/site-packages to PYTHONPATH
Ok Test some examples.. you get it in opencv example C:\OpenCV2.1\samples


picture 0_Directories_OpenCV_python_in_mycomputer

Test camera.py
picture 1_camera.py

Warning !!! Behind me is a gay... be carefull if u see him in 202 Laboratory..

0 comments:

Post a Comment