title: Closed eye detection opencv C++
body: <p>I need to detect closed eyes only and also both eyes separately. That means I need to tell if left eye is open or closed, also same about the right eye.</p>
  
  <p>I tried few ways. One of them is to detect eyes with haarcascade_eye and haarcascade_eye_tree_eyeglasses separately and then compare the results. If both detect eye, then eye open, if one detect and another can't,then eye closed. This trick was taken from this link:</p>
  
  <p><a href="http://tech.groups.yahoo.com/group/OpenCV/messages/87666?threaded=1&amp;m=e&amp;var=1&amp;tidx=1">http://tech.groups.yahoo.com/group/OpenCV/messages/87666?threaded=1&amp;m=e&amp;var=1&amp;tidx=1</a></p>
  
  <p>But it doesn't work as expected.eye cascade detectors don't work as mentioned in the link. Much close results are found with those haarcascade that I mentioned above. Sometimes it gives correct result, sometimes it can't. I don't know why. Besides it can't be told with this method that which eye is open and which eye is closed.</p>
  
  <p>Now can someone help me to solve this?? At least I need a way to tell that one of the eyes is closed regardless which one and need to do that accurately. Please help.......</p>