title: Exact Skin color HSV range
body: <p>I have seen all questions on SO for range of HSV color space for skin<br>
  But I can only figure out this  </p>
  
  <p><strong>Code -</strong></p>
  
  <pre><code>CvScalar  hsv_min = cvScalar(0, 30, 60, 0);
  CvScalar  hsv_max = cvScalar(20, 150, 255, 0);
  //range I am using is { 0,30,60,0 &amp; 20,150,255,0 }
  cvCvtColor(src, hsv_image, CV_BGR2HSV);
  cvInRangeS (hsv_image, hsv_min, hsv_max, hsv_mask);
  cvDilate(hsv_mask,hsv_mask,0,1);
  cvErode(hsv_mask,hsv_mask,0,1);
  cvSmooth( hsv_mask, hsv_mask, CV_MEDIAN);
  </code></pre>
  
  <p><strong>Problem</strong> with this range <strong>(</strong> <em>{ 0,30,60,0 &amp; 20,150,255,0 }</em> <strong>)</strong> is it detects even red color and when you place your hand in red background it does not track your skin...<br>
  <strong>Please Help !!!</strong></p>