Load grayscale version of coloured input image DetectBlobs.cpp : Defines the entry point for the console application. Copy and paste the following code example to main.cpp: Once the project is created, select File > New > Empty File, to add the main.cpp file to the project. Open Code::Blocks and select File > New > Project. Ĭommand, which can take a while to complete: Navigate to the ‘build’ directory created and run the following CMake command: cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local. Navigate to the OpenCV directory, and use mkdir Open a command prompt, navigate to the download location and unzip: Versions of OpenCV can be downloaded from here: Step 1: Download and extract OpenCV for Linux (I had originally tried version 2.4.10 but had problems compiling it with the version of gcc I had (4.8.2), so I reverted to 2.4.9 instead.) At the time of writing the version of OpenCV for Linux used is 2.4.9. The version of Linux I am currently using is Ubuntu 14.04. A quick guide to setting up and installing OpenCV for using in the Code::Blocks integrated development environment in Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |