This Python script utilizes computer vision to create an eye-tracking mouse control system. The script uses the MediaPipe library for face mesh detection and PyAutoGUI for mouse control.
- Python 3.x
- OpenCV
- MediaPipe
- PyAutoGUI
-
Install the required dependencies:
pip install opencv-python mediapipe pyautogui
-
Clone the repository:
git clone https://github.com/rajiv2004-cloud/Eye-Control-Mouse.git cd eye-control-mouse
-
Run the script:
python eye_control_mouse.py
-
Adjust the camera to have a clear view of your face.
-
Move your eyes to control the mouse cursor.
-
Blink both eyes simultaneously to perform a click.
- Real-time eye tracking for mouse control.
- Blink detection for mouse clicks.
- Dynamic adjustment of mouse sensitivity based on eye movement.
- On-screen visualization of eye and click points.
- Modify the
screen_x
andscreen_y
variables to adjust the initial mouse cursor position. - Adjust the sensitivity factor in the mouse movement calculations for personalized control.
- The script may require fine-tuning for different lighting conditions.
- Blink detection sensitivity may need adjustment based on individual user behavior.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and submit a pull request.
Feel free to customize the README file further based on your project's specific details and requirements.