I have seen all questions on SO for range of HSV color space for skin
But I can only figure out this
Code -
CvScalar hsv_min = cv
And if you are using video caption, you should be concerned that in most of the cases the cameras make an automatic contrast adjust, this impact in your images because you are going to have a significant difference of tones, also you should consider the shadows and light sources that impact in the skin