Preface
OpenCV, arguably the most widely used computer vision library, includes hundreds of ready-to-use imaging and vision functions and is extensively used in both academia and industry. As cameras get cheaper and imaging features grow in demand, the range of applications taking advantage of OpenCV is increasing significantly, particularly for mobile platforms.
As a computer vision library, OpenCV provides the following two big advantages:
- It is open source and everyone can freely use it, either on an academic level or for real-life projects
- It arguably contains the most extensive and up-to-date collection of computer vision functions
OpenCV is fed with cutting-edge research in Computer Vision, image and video processing, and machine learning.
The first book published on OpenCV provided a mostly theoretical approach, explaining the underlying computer vision techniques. Subsequent books have adopted the contrary approach, filling pages and pages with large examples (almost complete applications) that are difficult to follow. Large examples are difficult to follow and cannot be easily reused in the reader's projects. Examples taking up several pages are simply not appropriate for a book. We believe that examples should be easy to understand and should also be used as building blocks to reduce the time needed to have a working example for the reader's projects. Consequently, in this book, we also adopt a practical approach, although we aim to cover a larger spectrum of functions with shorter, easy-to-follow examples. From our experience with OpenCV, we can affirm that examples are ultimately the most valuable resource.