You can refer to the code for this chapter at the following link: https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Second-Edition/tree/master/Chapter01.
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, and Linux-based OS—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.