title: opencv - haarcascades not working for eye detection
body: <p>I have been following the tutorial <a href="http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html" rel="nofollow"><strong>here</strong></a> for object tracking for both the face and eyes through a webcam using opencv. The problem is that even though the face detection works using <code>haarcascade_frontalface_alt.xml</code>, i am receiving no results for eye detection using <code>haarcascade_eye_tree_eyeglasses.xml</code> (or any other haarcascade for eye detection). Following the code, i noticed a few errors that would not allow my code to run, so i modified to tutorials source. 
  From this:</p>
  
  <pre><code>if( !face_cascade.load( face_cascade_name ) ){ printf("--(!)Error loading\n"); return -1; };
   if( !eyes_cascade.load( eyes_cascade_name ) ){ printf("--(!)Error loading\n"); return -1;};
  </code></pre>
  
  <p>To this: </p>
  
  <pre><code> eyes_cascade.load( eyes_cascade_name );
   face_cascade.load( face_cascade_name ) ;
  </code></pre>
  
  <p>This was the only modification made in the source. </p>
  
  <p><strong>NOTE</strong> </p>
  
  <p>->all of the haarcascades are in the source directory.</p>
  
  <p>->only some of the haarcascades provide results <code>haarcascade_frontalface_alt</code> &amp; <code>haarcascade_profile</code> </p>
  
  <p>-> I have tried the other available haarcascades for eye detection including <code>haarcascade_eye_tree_eyeglasses.xml,</code> <code>haarcascade_eye haarcascade_righteye_2splits.xml</code>, <code>haarcascade_mcs_righteye.xml</code>, <code>haarcascade_mcs_lefteye.xml</code> <code>haarcascade_mcs_eyepair_small.xml</code>, <code>haarcascade_mcs_eyepair_small.xml</code>, <code>haarcascade_mcs_eyepair_big.xml</code>, <code>haarcascade_lefteye_2splits.xml</code></p>
  
  <p>If anybody has a solution to my problem that would be greatly appreciated! The source is available through the Opencv documentation <a href="http://docs.opencv.org/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html" rel="nofollow"><strong>here</strong></a></p>