hough transform for eyedetection and precise eyes location. it is a very good code that works on both grayscale and jpg image.