I am working on opecv project in c++
I have a code to detect the yellow color object and I want to detect the skin color.
//Variables for trackbars
int h1=23;int s1=41;int v1=133;
int h2=40;int s2=150;int v2=255;
//Creating the trackbars
//Getting the current frame
//If failed to get break the loop
//1.PREPROCESSING OF FRAME
//Resizing the capture
//Flipping the frame
//Changing the color space
//Thresholding the frame for yellow
//Filtering the frame
Where I need to change from yellow to skin color I mean for skin what is rgb value.
I have the impression you are not understanding what the program is doing .
In order to detect skin color is better to use HSV color space rather than the usual RGB (that is why you use cvCvtColor() )
If you don't know the reason I recommend to read at least this
So instead of using RGB just use HSV with H something approx. between 10 and 50, maximum is 360.