You can refer the code for this chapter at the following link: https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Second-Edition/tree/master/Chapter12.
Here is a summary of the software and hardware requirements:
- You will need OpenCV version 4.1.x (4.1.0 or 4.1.1 will both work just fine).
- You will need Python version 3.6 (any Python version 3.x will be fine).
- You will need Anaconda Python 3 to install Python and the required modules.
- You can use any OS—macOS, Windows, and Linux-based OSes—with this book. We recommend you have at least 4 GB RAM in your system.
- You don't need to have a GPU to run the code provided with this book.