Compiling C++ Code Using Caffe

As part of my PhD project, I have been writing a program in C++ to track hundreds of bees that I have tagged and to identify the pattern on the tags. Initially, I had thought that recognising the tags would be rather simplistic – I could threshold out the tags that are reflective under IR …

Read More
Saving OpenCV matrices to disc and loading them

Recently I needed to save some matrices I had generated with OpenCV and C++. This snippet of code shows you how you can do this this and then open the files to retrieve the matrices.  You can save the files as either the .yml or .xml format. In the example below, “trainData” and “trainLabels” are the …

Read More
Review of OpenCV Essentials

Recently PACT sent me a free copy of a book on OpenCV because of my background writing about the topic. First things first, OpenCV Essentials is definitely not a book for an image processing/computer vision novice. If this sounds like you, then I’d recommend you refer to my post on resources for getting started with OpenCV here, and then …

Read More
What I learned while learning C++

C++ is regarded by many as one of the most difficult programming languages to become proficient in. After spending the past couple of months learning and writing a lot of C++ I am positive that while I quite like the language, it is definitely not a good first language for someone just starting out. There’s …

Read More
C++ for beginners

In this tutorial, I’m going to provide an introduction to the basics of the programming language C++. I’ll describe how to compile your first program with the gcc compiler on Linux and Mac, although the code should also work on Windows using the Visual Studio compiler. If you’re new to programming, I’d probably recommend getting started …

Read More
Where to learn C++

C++ is the most recent language I’ve acquired, and while I certainly still have a lot to learn, I’ve gained a reasonable understanding from the following free resources online: LearnCpp.com – Learn C++ tutorialspoint – The C++ Programming Language cplusplus.com – C++ Language XoaX.net – C++ Video Tutorials Google Developers – C++ Class Cprogramming.com – Programming Tutorials – C, …

Read More
Best resources for learning OpenCV (Python and C++)

Here’s a list of some of the websites, books and videos (for both Python and C++), that I have found very useful while learning OpenCV. Python Using OpenCV with Python and ROS (Video) – Great introduction to computer vision and OpenCV. PyImageSearch – Website has a lot of great tutorials on many different applications of OpenCV. OpenCV-Python …

Read More
Using C++ or Python for OpenCV Programs

When I first started learning OpenCV, I was working exclusively with Python. While I am still a huge fan of the language, today all of my OpenCV programs are written in C++. Why? Some of the deeper functionality of OpenCV has not been completely ported to Python (although hopefully the release of OpenCV 3.0 will …

Read More
Sublime Text OpenCV C++ Build System

If you want to compile and run a C++ program using OpenCV in Sublime Text, then copy and paste the code below into a build system file. If you’re not interested in explicitly using C++11 you can delete the “-std=c++0x” section.

Read More