Code samples from the Packt book OpenCV by Example (2016).
Make sure you have OpenCV installed. Each directory under the chapter directory is a standalone CMake project. Enter one project and run following commands:
$ mkdir build
$ cd build
$ cmake .. && make