Control your PC mouse cursor using your eyes and perform clicks with simple gestures (like blinking) using your webcam.
- Real-time eye tracking using your webcam
- Move mouse cursor with your gaze
- Blink gesture to perform mouse clicks
- Easy setup with Python and KaggleHub
- Python 3.7+
- Webcam
- Packages: opencv-python, dlib, imutils, pyautogui, numpy, kagglehub
- Clone this repository:
git clone https://github.com/vpatel071997/eyePilot.git cd eyePilot - Install dependencies:
pip install -r requirements.txt
- Run the app:
python main.py
The required facial landmark model (shape_predictor_68_face_landmarks.dat) will be downloaded automatically from Kaggle using KaggleHub.
- Look at your screen to move the mouse cursor.
- Blink both eyes to perform a mouse click.
- Press
Escto exit the application.
- For best results, use in a well-lit environment.
- If you encounter issues with the model download, ensure you have KaggleHub set up and internet access.
MIT