OpenCV Series — 9— Virtual Makeup — Hats on Head
4 min readOct 11, 2020
In this post, we are going to see how we can use Dlib’s face detection landmarks to augment a hat or cap to a person’s image. In my previous Dlib posts i had explained where to download the Dlib pre-trained 68 point face prediction model and the code to detect the landmark points on a facial image.
Now, we will go through the steps involved in identifying the right points in a…