title: specific color detection using opencv
body: <p>i'm working on a project using openCV with c++ where i have to detect the motion of object with specific color using webcam. Lets say, it's red.</p>
  
  <p>i have look for any example and i found it,
  like in this <a href="https://stackoverflow.com/questions/14752006/computer-vision-masking-a-human-hand/14756351#14756351">Computer Vision: Masking a human hand</a></p>
  
  <p>and this
  <a href="https://stackoverflow.com/a/17375222/1463143">https://stackoverflow.com/a/17375222/1463143</a></p>
  
  <p>but it set for skin color, not red. </p>
  
  <p>So anyone can help me ? And as far as i know(sorry for my incompetence:)), those example are in python. can anyone point me what to do using c++ in opencv ?</p>
  
  <p>Thank you for your attention</p>