This repository contains my solutions to the exercises provided in the book Learning OpenCV 3 (1st ed).
The solutions are presented in both OpenCV 3 and OpenCV 4. (Though, the differences are often small if there are any.) Each program has its own CMake directives, and they are compiled independently.
-
CMake (>= 3.0)
-
Make
-
OpenCV 3 and/or OpenCV 4 (The programs are tested using OpenCV versions
3.2.0
and4.5.1
.)
cd
into the desired solution'sbuild
directory:
$ cd ocvX/chX/chXexX/build/
- Run
cmake
:
$ cmake ../src/
You need to specify your OpenCV (version 3 or 4 depending on the program) installation path if it cannot be found using your PATH
environment variable (see: CMake find_package documentation for package searching behavior).
$ cmake -DOCV_PATH=/path/to/ocv/installation/ ../src/
- Compile the program:
$ make