You can get the latest code for this book from GitHub: https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Second-Edition. You can either download a .zip package (beginners) or clone the repository using Git (intermediate users).
If you choose to go with git, the first step is to make sure it is installed (https://git-scm.com/downloads).
Then, open a Terminal (or Command Prompt, as it is called in Windows):
- On Windows 10, right-click on the Start Menu button, and select Command Prompt.
- On macOS X, press Cmd + Space to open spotlight search, then type terminal, and hit Enter.
- On Ubuntu, Linux/Unix and friends, press Ctrl + Alt + T. On Red Hat, right-click on the desktop and choose Open Terminal from the menu.
Navigate to a directory where you want the code downloaded:
cd Desktop
Then you can grab a local copy of the latest code by typing the following:
git clone https://github.com/PacktPublishing/Machine-Learning-for-OpenCV-Second-Edition.git
This will download the latest code in a folder called OpenCV-ML.
After a while, the code might change online. In that case, you can update your local copy by running the following command from within the OpenCV-ML directory:
git pull origin master