Subscribe:

Ads 468x60px

Wednesday, August 29, 2012

Setting OpenCV on eclipse working on Ubuntu 12.04

Hi all 

     I am giving instruction for setting opencv on eclipse IDE. I am using Eclipse INDIGO .

1)Install Eclipse and eclipse CDT plugin from synaptic package manager




2)Open new c++ project on eclipse

File -> New -> c++ Project

3)Take Properties of project by right clicking the project name,or press Alt+Enter

Look at the properties of project


4)Get include and library path of opencv using pkg-config command

Get include path of opencv using pkg-config opencv --cflags


Setting include directories on eclipse




Get library path of opencv using pkg-config opencv --libs


Setting library on eclipse




Copy a sample program from opencvfolder /samples/c++/kalman.cpp



Build project using key Ctrl + B or right click project and take build



Open terminal in the Release folder and execute pgm




Video
-------


0 comments:

Post a Comment