Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.