Crop Face Region from Detected Face
Hello,
I'm currently developing an application for face detection and augmented reality using OpenCV and Java. I need to crop out the face region from detected face. I have done detecting the face using haarcascade.
My problem is, when i cropping the face using submat and assigning the region (Rect ) that i get using haarcascade, it didnt give me the desired result. Using submat i get rectangle area around the face (including some of the background, hair, ears) meanwhile i only want face region (including forehead and chin, without ears and head).
I've tried using suggestion from here http://answers.opencv.org/question/26... and here http://answers.opencv.org/question/93...
but i still didnt get the desired result.
Please suggest me how to get exact face region, any article or tutorial.
Thanks
I guess this isn't possible out of the box, since the detections aren't perfect. You'll need to fit a face model to it to get only the facial parts.
hi @Guanta , thanks for the comment. What you mean by i need to fit a face model to get the facial parts?
I thought of ASM (active shape model), apparently there exist also code using openCV: https://code.google.com/p/asmlib-opencv/
Thanks @Guanta , i'll take a look something similar with ASM but written in java. But if by any chance you found out something else, pls share it. Thanks again @Guanta, really appreciate it