2

I just ran a sample code using opencv for face detection. It is detecting the edges and face quite nicely.

I was wondering, if anyone has any idea how I can somehow differentiate hair and face? I know we can probably use the hair colour contrast but someone else pointed out that if the person is blond, it won't work.

Any ideas or suggestions are more than welcomed.

Many thanks.

user281300
  • 1,427
  • 2
  • 19
  • 31

1 Answers1

2

Here is another thread in SO about detecting hair in a face picture with OpenCV: Detecting hair in a portrait image? . It has some cool ideas and links to a paper which might be the solution you're looking for.

Community
  • 1
  • 1
  • 1
    Thanks for that. Was looking at that post earlier. Any idea how I could use opencv to detect hair ? – user281300 Feb 17 '11 at 22:36
  • Do you have access to the IEEE website? I was also curious, and found [this](http://ieeexplore.ieee.org/Xplore/login.jsp?reload=true&url=http://ieeexplore.ieee.org\/iel5/10347/32910/01541327.pdf%3Farnumber%3D1541327&authDecision=-203), but i'm not at the uni at the moment, so i can't check it out. – Please treat your mods well. Feb 17 '11 at 22:39
  • nope no access unfortunately.Detecting hair seems to be quite tricky. – user281300 Mar 01 '11 at 23:29