I’ll be teaching Computer Vision next semester using OpenCV as the programming tool. Though I’ve been using it couple of times in the past, I think it would be better if I switch to Windows for the sake of teaching, since most of my students use that OS. Therefore, they can focus on the makn thing, the theory and practice of computer vision.
Now, since they’ve used C++ and Java (through Processing) in the past, I then have several options to setup the dev machine:
- OpenCV in C++ using Visual Studio 2012
- OpenCV in Java using Eclipse
- OpenCV in Java using Processing IDE
I will cover the installation process for these three options, mainly because I need a single place of reference for similar activity in the future (i.e. less Googling).
Some notes to read regarding the environment
- This guide uses OpenCV 2.4.11. Make sure you download it from the OpenCV website. I may use 3.0.0 in the future, but for now, this is enough.
- For the sake of getting the environment up and running quickly, I use the pre-build OpenCV. You’re free to build from source, as in the end, you’ll end up using the same files.
- I use Windows 7 64-bit, but I think this should work for Windows 8 too.
Generally speaking, our installation involves these steps:
- Getting pre-build OpenCV
- Importing the OpenCV components (libraries) to the IDE
- Testing it by building a simple OpenCV example
To make things easier to read, I’ll separate the scenarios into 3 different blog posts. Happy reading 🙂