12/26/2015

How to setup OpenCV with Codeblocks on Window XP 32-bit

In this tutorial, i will teach you that how to setup OpenCV with Codeblock on window XP 32-bit.
>> Install the download binary file.
>> After installation the code::block, you will have a working window like this one. 


>> Now, download the openCV library.
>> Install the binary file.
>> Save OpenCV library in your C drive.
>> Double click on it and click on next.
>> After next and agree, chose the following option and select next.



>> Now setup system environment variable. 
>> Open the Start menu. Right click on My Computer and select properties.
>> Click on advance and then click on Environment variable.


>> Create a new variable. Name it OPENCV_DIR and enter variable value C:\OpenCV2.2


>> Find and double click on Path variable.



>> In the variable value add one of the following.

%OPENCV_DIR%\bin

Now, setup the OpenCV with Code::Block.

>>Open Code::Block
>> Goto  setting  >> Compiler and chose Search Directories.
>> Add the following directory 
C:\OpenCV2.2\include\opencv


>> In the link tab add the following.
C:\OpenCV2.2\bin


 Click on the linker setting and add following the lib file.


 That is it. Now you are ready to run OpenCV program. I tested a sample program Contours from C:\OpenCV2.2\samples\c

 

















No comments:

Post a Comment

Interfacing LCD With Arduino Microcontroller

In this tutorial we are going to  interface a  Liquid Crystal Display (LCD)  with Arduino Microcontroller .  Liquid Crystal Display are us...