I am using the following algorithm to detect skin color, but its not working real well in different lighting conditions. Can anybody offer any advice how to improve it or su
There are a lot of methods for skin colour modelling, each has its pros and cons.
Pick one based on your purposes. Look at these surveys:
V. Vezhnevets, V. Sazonov, A. Andreeva. A survey on pixel-based skin color detection techniques. Proc. Graphicon, 2003
P. Kakumanu, S. Makrogiannis, N. Bourbakis. A survey of skin-color modeling and detection methods. Pattern recognition, 2007