title: Skin Color Detection
body: <p>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 suggest a better approach</p>
  
  <pre><code>R &gt; 95 AND G &gt; 40 AND B &gt; 20 AND
  max{R, G, B} – min{R, G, B} &gt;15 AND
  |R – G| &gt; 15 AND
  R &gt; G AND R &gt; B
  OR
  R &gt; 220 AND G &gt; 210 AND B &gt; 170 AND
  |R – G| &lt;= 15 AND
  R &gt; B AND G &gt; B
  </code></pre>
  
  <p><a href="http://softexpert.wordpress.com/2007/10/17/skin-color-detection/" rel="nofollow">http://softexpert.wordpress.com/2007/10/17/skin-color-detection/</a></p>
  
  <p>Cheers</p>