Occlusion in Face Detection and Augmented Reality
Hi guys, I'm doing an augmented reality project based on face detection using Haarcascade from OpenCV and Java. The application will augmented an image onto detected face. So far i manage to detect the face and then apply an image to detected face (at the moment i'm using hijab image). But, the result is not look real enough. I mean, its just like an image with transparent area in the middle being put on top of detected face.
Here is the result from my AR application:
and the desired result is (*edited using photoshop)
In first image, the chins being covered by hijab image meanwhile the second image is not covered.
How do i handle this occlusion, so when i'm applying a hijab image to detected face, chins is not covered by augmented image. I already try to adjust height of the hijab, and then there will be a little gap between chins and the hijab image.
Any suggestion or what technique i should use to solve the problem?