From the course: Deep Learning: Face Recognition

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Applying digital makeup to a face

Applying digital makeup to a face - Python Tutorial

From the course: Deep Learning: Face Recognition

Start my 1-month free trial

Applying digital makeup to a face

- [Instructor] Our face recognition pipeline has the ability to detect face landmarks. Let's see how we can use face landmarks to do something fun, let's use them to create digital makeup. Let's open up digitalmakeup.py. If you've used any social media applications like Instagram or Snapchat, you might've seen how you can add silly effects to your pictures to make it look like you're wearing makeup or funny hats. Let's create a really simple version of that. First, look at the list of files, I've included a file called people.jpg, let's take a look. This is a picture of three people, we'll have our program draw makeup on each of these people. How about we draw purple lipstick on each persons lips and maybe highlight their eyebrows. Alright, let's close the picture. Let's go back to the code. First, we've already imported some Python libraries. We have the PIL library, or Python imaging library that will let us draw on top of images and show the results on the screen, and then we have…

Contents