python - Change skin colour programmatically -
Does anyone have any information or advice about adjusting an image so that the skin tone in it matches the second image Eat?
It is a bit of an unclear question, but I was hoping that anyone would come before this problem! I have the purpose of doing this so that I can replace one face with one face in the face of another by using a python (or any language), just this program as long as this is).
I have many papers related to the subject:
- (pdf) (See also :)
- (pdf)
- (Pdf)
However, the content is on my side and therefore I can not say what to do on the basis of what they are saying.
Any kind of advice would be greatly appreciated because I do not have to do damage for what I currently do.
There are some general high-level advice for how to get started.
Actually, what you are doing is a customizable problem. These algorithms are used for many problems, and there are many famous ways to do this. They boil over it
- Create a scoring function, which can tell you a result of how good results you have. The larger the number is better.
- Create a function that takes input and some parameters and prepares an output that can be run
- It is important: the scoring function to be somewhat constant # 2 on the basis of the parameter If you have two criteria, and it has plotted in 3D (the ultimate 1, paragraph 2, score), then it looks like a rugged surface with large hills.
- Your job is now to find the maximum in the surface. You can have more than two parameters - in that case, you have the surface of the N-D - but this idea is similar
See mountain climbing, genetic algorithms, or adaptation problems
Though look at the actual algorithms, they have some Are more complex.
Many research boasts down to come from well to the scoring function and it is a good way to know which parameters will work and how to use them.
Using this general framework - Try just the brightness / contrast as the output output function (glow and vice versa). For scoring, you will need to compare two photos for a match - to start, choose some simple (possibly to check the hard-code area)
Once you If you get it, then you will have more information about how to do it, and can go back to the papers for ideas.
Comments
Post a Comment