I am trying to implement eye tracking using lucas kanade algorithm. First I am working on the videos by selecting the eyes. My doubt is I wanted to select points on the first frame itself. But when I try to do that by using cvWaitKey(0) for first frame and cvWaitKey(20) for the remaining frames, I am not able to select points. Can any one say how to do that? Any help would be highly appreciated.