Identifying the convex hull

Once we identify the key points, our next task is to find our convex hull. This is a boundary drawn around the facial key points. With the facial key points identified, we can find our hull by connecting the boundary points. A boundary that doesn't have any concavities is called a convex hull.

After applying the convex hull, the input image looks as follows:

Get Machine Learning Projects for Mobile Applications 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.