This section will cover the installation procedure for OpenCV in Windows as well as Linux. Newer versions of the OpenCV library are released periodically. For the purpose of this book, the 2.4.2 version has been the reference. Also, we will be using the open source Code::Blocks Integrated Development Environment (IDE) for writing all our codes. More information about this can be found at http://www.codeblocks.org/.
We have used Ubuntu 12.04 LTS for this installation. Before you install OpenCV, you will need to check that you have all of the required elements, listed as follows: