Segmentation model to predict face forward and profile parts of the face I am developing a model for feature counting on a person's face that consumes three photos (one face forward and two profile pictures). My model can already detect features, but it counts some features twice.
Consider the image below. There are only four labels (1, 2, 3, 4 and 5). Model detects four labels (1, 2, 3, 4) on the profile photo and four labels on the face forward photo (1, 2, 3, 5).
Labels (1, 2, 3) are counted twice. A straightforward approach would be to segment hundreds of faces into &quot;face forward region&quot; and &quot;profile region&quot;. This is tedious and accurate labeling is hard. Is there a better way to segment the face in regions or to detect duplication of the detected features?
There is a library called facemesh for Python. It can detect face landmark points in Python. Connecting facemesh points to crop image to a desired polygon is trivial.