Setting up the coding environment

In this section, we will set up the coding environment for the face recognition application. We will look at how to install dependencies. We will be installing the following two libraries:

  • dlib
  • face_recognition

Let's begin the installation process.

Installing dlib

In order to install the dlib library, we need to perform the following steps. We can install this library either on a Linux operating system (OS), or on macOS. Let's follow the stepwise instructions:

  1. Download the source code of dlib by executing this command:
    sudo git clone https://github.com/davisking/dlib.git.
  2. Now jump to the dlib directory by executing this command: cd dlib.
  3. Now we need to build the main dlib library, so we need to execute the following commands ...

Get Machine Learning Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.