March 2019
Intermediate to advanced
538 pages
13h 38m
English
There is a very easy way to install OpenCV and all its dependencies on a Debian-based embedded device such as Raspberry Pi:
sudo apt-get install libopencv-dev
However, that might install an old version of OpenCV from one or two years ago.
To install the latest version of OpenCV on an embedded device such as Raspberry Pi, we need to build OpenCV from the source code. First, we install a compiler and build system, then libraries for OpenCV to use, and finally OpenCV itself. Note that the steps for compiling OpenCV from source on Linux are the same whether you are compiling for desktop or for embedded systems. A Linux script, install_opencv_from_source.sh, is provided with this book; it is recommended ...