January 2018
Intermediate to advanced
268 pages
6h 20m
English
Just like we did earlier, we load the image and detect the eyes. Once we detect the eyes, we resize the sunglasses image to fit the current region of interest. To create the region of interest, we consider the distance between the eyes. We resize the image accordingly and then go ahead and create a mask. This is similar to what we did with the skull mask earlier. The positioning of the sunglasses on the face is subjective, so you will have to tinker with the weights if you want to use a different pair of sunglasses.
Read now
Unlock full access