Code::Blocks is an GPL based and cross-platform IDE. This is the tutorials using Code::Blocks with OpenCV. Create a simple console project. We can use project wizard to create a simple console project. Here is the steps Give this project name of "test_opencv" Then copy the sample code to main.cpp Configure the OpenCV include path and libs Right click on the project manager and open the "Build Op