Detecting hair in a portrait image?

后端 未结 3 1416
猫巷女王i
猫巷女王i 2020-12-07 23:26

What would be the best approach for detecting and removing a person\'s hair in a simple portrait image ? Any useful libraries of algorithms ? I have been looking over open

相关标签:
3条回答
  • 2020-12-08 00:08

    You're dealing with two different problems here:

    1. detecting if a face in a portrait has hair
    2. "removing" the hair

    The first is solvable fairly easily:

    • Separate the face from the background (as you've mentioned a "simple portrait image", this shouldn't be too hard).
    • Convert your image to the Y'CbCr color space
    • Human skin has a fairly narrow range of chrominance values, regardless of race. Check out this paper for the details.
    • The approach above will help you separate skin areas of the face from non-skin areas
    • Assume that the non-skin areas consist of hair. Note that facial hair will get picked up as a non-skin area, too.

    As far as the second problem goes, you need to clarify exactly what you mean by "removing":

    • Are you simply cutting out the part of the portrait that has hair? In this case, the solution follows directly from the detection method above.
    • Are you trying to make it look like the person has no hair at all (e.g. is bald, clean-shaven?) In this case, things will be a lot harder -- there's a reason why professional photo manipulators get paid well.
    0 讨论(0)
  • 2020-12-08 00:16

    try this http://betaface.com/demo.html . Color , hair info and more . smile , age, eye etc..

    0 讨论(0)
  • 2020-12-08 00:19

    I think this is hard problem - consider for detecting and removing hair in this case: enter image description here

    I found several papers, maybe they will help you:

    • Detection and analysis of hair
    • Dullrazor®: A software approach to hair removal from images
    • Research on the Expression of Hair in Computer Animation

    Cheers!

    0 讨论(0)
提交回复
热议问题