title: OpenCV detect hand and comparison images
body: <p>Purpose of my application is to take a photo hand (gesture) and comparing it with a picture that is in the database. The first option I was use is background subtraction on images:</p>
  
  <p><a href="http://docs.opencv.org/trunk/doc/tutorials/video/background_subtraction/background_subtraction.html" rel="nofollow">http://docs.opencv.org/trunk/doc/tutorials/video/background_subtraction/background_subtraction.html</a>. </p>
  
  <p>The solution works, but sometimes, depending on the first picture is not properly cut hand.</p>
  
  <p>The second option is to detect skin color: <a href="http://bytefish.de/blog/opencv/skin_color_thresholding/" rel="nofollow">http://bytefish.de/blog/opencv/skin_color_thresholding/</a></p>
  
  <p>Or is it better to use a hand detection based on xml files? To compare the images I wanted to use this method:<a href="http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html" rel="nofollow">http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html</a></p>
  
  <p>Let me remind you that I'm talking about comparing the images to which they are gestures. I also read about the possibility of making the histogram is not the entire image only on the subject of the photo and then the data is more reliable, but do not know how to do it.</p>
  
  <p>I want to compare the gesture as a single image, I do not mean here with the sequences. 1 picture for comparison with the baseline. Gesture detection is to enable someone eg. Will ring, and now I will have for example. 5 seconds to take pictures and compare them with the base because I'm not certain if appeared in the lens of the hand or not. Unless there is another solution.</p>
  
  <p>Ultimately, it is to be a comparison of two images in which there will be some hand gestures.</p>