1

I want to Classify the hair and face in android so that I can apply some cosmetic effects on the face, without affecting the hair.

However, everyone has different hair style and some of their hair color are close to their face color. Nowadays, most of the libraries or web services only provide the detection for the face. How can I classify the hair and face color in android or is there any haar-classifier for me to do that ??

Please give me some advice. Thank you!

Jeru Luke
  • 20,118
  • 13
  • 80
  • 87
ng2b30
  • 351
  • 6
  • 18

1 Answers1

0

Maybe you can try something like this :

Community
  • 1
  • 1
Stanley S
  • 1,052
  • 13
  • 22
  • Thank you for your reply. If the hair color are black and the skin color are yellow, I can detect them but when the hair color and the skin color are both yellow tone, then how can I tackle it? – ng2b30 Mar 07 '17 at 03:28
  • I've been reading this [paper](http://www.ee.cuhk.edu.hk/~knngan/TCSVT_v9_n4_p551-564.pdf), where they explain in - depth how the human face has a special color distribution that differs significantly (although not entirely) from those of the background objects ( including hair). They create a skin-color map by adopting histograming technique on a given set of training data. Basically there is no easy way to detect the hair, if you are really interested you should give it a read. – Stanley S Mar 07 '17 at 13:40
  • I know that this would be a tough work and thank you for the paper that you provide. But most of the color difference between the hair and skin are not really close. – ng2b30 Mar 08 '17 at 04:39
  • @ng2b30 could you manage to distinguish whether face has hair or not – cgr Apr 19 '17 at 13:43