Eye tracking is a widely used tool for behavioral research in the field of psychology. With technological advancement, we now have specialized eye-tracking devices that offer high sampling rates, up to 2000 Hz, and allow for measuring eye movements with high accuracy. They also offer high spatial resolution, which enables the recording of very small movements.
- (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real-time Computer Vision. Originally developed by Intel, it was later supported by Willow Garage then Itseez (which was later acquired by Intel). The library is cross-platform and free for use under the open-source Apache 2 License. Starting with 2011, OpenCV features GPU acceleration for real-time operations.
pip install opencv-python
cap = cv2.VideoCapture("eye_recording.mp4")
python main.py
Output 1 :
Output 2 :