Getting the latest code for this book

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).

Git is a version control system that allows you to track changes in files and collaborate with others on your code. In addition, the web platform GitHub makes it easy for people to share their code with you on a public server. As I make improvements to the code, you can easily update your local copy, file bug reports, or suggest code changes.

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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset