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/Chapter10.
Here is a short summary of the software and hardware requirements:
- OpenCV version 4.1.x (4.1.0 or 4.1.1 will both work just fine).
- Python version 3.6 (any Python version 3.x will be fine).
- Anaconda Python 3 for installing Python and the required modules.
- You can use any OS—macOS, Windows, or Linux-based—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 the book.