
Getting the latest code for this book
You can get the latest code for this book from GitHub, https://github.com/mbeyeler/opencv-machine-learning. 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 Mac OS X, press Cmd + Space to open spotlight search, then type terminal, and hit Enter.
- On Ubuntu 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, for example:
$ cd Desktop
Then you can grab a local copy of the latest code by typing the following:
$ git clone https://github.com/mbeyeler/opencv-machine-learning.git
This will download the latest code in a folder called opencv-machine-learning.
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-machine-learning directory:
$ git pull origin master