Building OpenCV from the source is the easiest way to grab OpenCV for your Raspberry Pi Java projects. The following steps will guide you through how to download, build and make OpenCV on the Raspberry Pi. Connect it to your Raspberry Pi through SSH using PuTTY:
- Install the following build essentials on the Raspberry Pi to have all the necessary tools to build the OpenCV source:
sudo apt-get -y install ant build-essential cmake cmake-curses-gui
- The GitHub page (Figure 7-14) at https://github.com/opencv/opencv/releases lists all the releases of OpenCV and the latest release is OpenCV 3.2.0, dated Dec 23, 2016 at the time of writing this book. We need only the source code of OpenCV 3.2.0 ...