0

While I've learnt how to detect faces in OpenCV, I would like to take it a bit further, to detect the outlines of a whole human head (frontal only, for now), i.e. with hair, and up to chin. How can this be done using OpenCV ?

The photographs from which I wish to perform this extraction, could have some simple constraints, like well-lit background, although putting strict constraint like green/blue screen might be possible, but I'd prefer to avoid it, if possible.

bdutta74
  • 2,798
  • 3
  • 31
  • 54
  • What about looking for concentric and slightly bigger contour than the face, after detecting face. – Pervez Alam Nov 17 '14 at 07:43
  • Thanks for the comments Pervez. If I understood your suggestion correctly, you mean to say that I should start with the bounding box around the detected face, and incrementally 'grow-out' trying to do contour-detection within it ? – bdutta74 Nov 17 '14 at 08:06
  • 1
    why dont you use Upperbody cascade file for detection. http://alereimondo.no-ip.org/OpenCV/34 use Head and shoulder cascade file – Rahul galgali Nov 17 '14 at 09:10
  • Thanks Rahul. It seems interesting, will dig into it see if it can be of help. As such, I specifically want to avoid the neck & shoulder... just the face, nothing more, and nothing less. – bdutta74 Nov 17 '14 at 09:19

1 Answers1

2

You may start finding omega shape in the upper part of body (image). in Omega shape you can find the upper object (head) easily, by fitting ellipse or circles (see this ). Do not forget that you can handle some background issues to get better results. This is a paper explaining some important steps

Community
  • 1
  • 1
Y.AL
  • 1,808
  • 13
  • 27