Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.03 KB

OpenCV Exercises

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.

Requirements

  • CMake (>= 3.0)

  • Make

  • OpenCV 3 and/or OpenCV 4 (The programs are tested using OpenCV versions 3.2.0 and 4.5.1.)

Compiling the Programs

  1. cd into the desired solution's build directory:
$ cd ocvX/chX/chXexX/build/
  1. 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/
  1. Compile the program:
$ make