Eye Tracking with face distance finder program.
The Python script uses OpenCV and the cvzone library to detect a face in a live video stream from a webcam. It calculates the distance from the camera to the face using the concept of focal length and object width.
It uses: • cv2 (OpenCV): For image and video processing. (pip install opencv-python)
• cvzone: A library that provides various computer vision utilities, including FaceMeshDetector used for detecting facial landmarks. (pip install cvzone)
To get this program working, first you need to select the camera which can be use by the program to detect the eye's position. Then just run the program and let this code detect the position of your eye's.