Skip to content

tasdidnoor/EyeTrackingMouse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eye Control

Eye Control is a software-based accessibility tool that allows users to control their system's mouse cursor using eye and head movements. It utilizes advanced computer vision to track iris positioning and facial orientation in real-time.

Interface

Web Demonstration

Web Interface

Desktop Application

Desktop Interface

Installation and Setup

Follow these steps to set up and run Eye Control on your machine.

1. Install Python

If you do not have Python installed, download the latest version from python.org. During the installation process, ensure that the "Add Python to PATH" checkbox is selected.

2. Download Project Files

Download this repository by clicking the "Code" button at the top of this page and selecting "Download ZIP". Extract the contents of the ZIP file to a local folder on your computer.

3. Open Terminal

Open the Command Prompt, PowerShell, or your preferred terminal and navigate to the extracted folder:

cd path/to/EyeTrackingMouse

4. Install Required Libraries

Execute the following command to install the necessary Python packages:

pip install -r requirements.txt

If you encounter any issues with MediaPipe during execution, perform a forced reinstallation of the verified version:

pip install --force-reinstall mediapipe==0.10.11

5. Run the Application

Start the tool by running the following command:

python main.py

Usage Instructions

  1. Activation: Click the "Turn On" button in the application window.
  2. Calibration: Look directly at the center of your screen for one second to establish the baseline center-point.
  3. Navigation: Look toward different areas of the screen or move your head slightly to translate the cursor.
  4. Interaction: Blink twice rapidly to perform a left-click.
  5. Deactivation: Keep your eyes closed for five seconds or cover the camera lens to stop the tracking service.

Browser Demonstration

A web-based demonstration is available for testing tracking accuracy without installing any software. Open the index.html file in this repository using a modern web browser and grant camera permissions to begin.

Acknowledgments

This project is built upon the following industry-standard libraries and frameworks:

  • MediaPipe: High-fidelity face mesh and iris landmark detection.
  • OpenCV: Real-time video stream capture and processing.
  • PyAutoGUI: Programmatic mouse control and event execution.
  • Screeninfo: Cross-platform screen resolution detection.

Support and Contact

This project is a work-in-progress. For support or feedback, please contact contact@tasdidnoor.com.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

Eye Control is a software-based accessibility tool that allows users to control their system's mouse cursor using eye and head movements. It utilizes advanced computer vision to track iris positioning and facial orientation in real-time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors