title: Eye pupil corner detection (openCV)
body: <p>I am trying to make a program in openCV (python) that can tell when an eye pupil is straight or at corners (left or right). What I have done so far is:</p>
  
  <ol>
  <li>Took an image, cropped the eye part (detected the region through eye_cascade.detectMultiScale(gray)) (picture is attached).</li>
  <li>Got BGR value ofpixel of img[(3*h)/4,w/2] (h=height, w=width)</li>
  <li>Tried to mask the skin by converting BRG to HSV, did thresh_BINARY to get only remaining white shade of around pupil.</li>
  <li>count white pixels and checked if either side has less than 40% of white pixels then decide the position of pupil.</li>
  </ol>
  
  <p>This method gives somewhat good answer for picture but when I start the webcam, masking fails thus failing further entire process.
  Anyone has better idea on how I can do this? (Already read all the answered questions on this forum but couldn't find a satisfactory solution).</p>
  
  <p>Image</p>
  
  <p><img src="https://i.stack.imgur.com/5J1R3.png" alt=""></p>