Search code examples
androidface-detectiongoogle-mlkitface-landmark

Detect whole face through MLKit in Android


I am using MLKit for face detection, it is working fine. But there is a use case in which I am getting trouble. MLKit is too Fast, it can detect half face too. I want to detect whole face, I want to know whether there is the complete face in the frame or not?enter image description here

E.g: I apply MLKit' Face Detection on the attached Image, it is returning me all the Landmarks positions, all the contours etc. It is also returning me the smiling probability even there are no lips in the image.


Solution

  • I used MediaPipe' Face Mesh solution. Through it, I am getting Face contours, these (36) points are in oval, from 0 to 35.