Finding 68 facial landmarks in images

In this section, we're going to see our first example, where we find 68 facial landmarks and images with single people and with multiple people. So, let's open our Jupyter Notebook for this section. Take a look at this first cell:

%pylab notebookimport dlibimport cv2import osimport tkinterfrom tkinter import filedialogfrom IPython import displayroot = tkinter.Tk()root.withdraw()#Go to your working directory (will be different for you)%cd /home/test/13293

We've got to do some basic setup, as we did in the previous chapters. We're going to initialize %pylab notebook. Again, that will load NumPy and PyPlot and some other stuff, and we're going to perform notebook for now, which will be good for close-up ...

Get Computer Vision Projects with OpenCV and Python 3 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.