Hello I'm trying to detect the area of the mouth or lips. To do this I am trying to use the the method described in these papers: Paper1,Paper2. (Could only post two of the papers)
They use a method where you utilize the colorspace YCbCr because the lips have a strong red component and a weaker blue then the rest of the face. Because of this you can use this color space like this:
LipMap = (CrCr)((CrCr)-n(Cr/Cb))((CrCr)-n*(Cr/Cb))
n = 0.95*((sum(Cr*Cr)/m)/(sum(Cr/Cb)/m))
The problem is that all these sources dont really explain how the calculation is made. I know how to get the values of Cr and Cb but I am not 100% sure in what range they should be [0,1] or [0,255], the sources state both. Also after that I'm not sure how to get the correct values from the n calculation as well as the LipMap one. Are the numbers supposed the be normalized before or after the calculation has been made. Also how do you get the correct value from Cr/Cb and the normalized value, i just cant seem to get that one right.
I have been trying to get this to work for some hours but im doing something wrong. Some values in the end are always far to big. Also they are not in the ranges they are supposed to be [0,1] or [0,255].
If anyone has any input regarding this how to solve it or some tips it would be greatly appreciated.