You can refer to the code for this chapter from the following link: https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Second-Edition/tree/master/Chapter13.
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 for installing Python and the required modules.
- You can use any OS—macOS, Windows, and Linux-based OSes along 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 along with this book.