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/26936/face-facial-features-cropping-using-opencv-in-ios/ and here http://answers.opencv.org/question/9398/how-to-crop-the-face-detected-in-opencv-for-android/
but i still didnt get the desired result.
Please suggest me how to get exact face region, any article or tutorial.
Thanks