Control your mouse cursor using your eyes with real-time facial landmark detection!
[This will be added soon]
Optic Pointer uses your webcam to track your iris movements and facial landmarks using MediaPipe’s FaceMesh, then translates those movements into cursor positions. It also detects blinks of the left eye to perform mouse clicks using PyAutoGUI.
- 👁️ Eye-based cursor movement
- 👀 Blink (left eye) for mouse click
- 🔄 Real-time webcam tracking
- 🎛️ Adjustable sensitivity
- 🖥️ Works on most systems with a webcam
- 🐍 Built with Python, OpenCV, MediaPipe & PyAutoGUI
git clone https://github.com/abdullahakintobi/optic-pointer.git
cd optic-pointerpython -m venv venv
# Windows
venv\Scripts\activate
# macOS/Linux
source venv/bin/activatepip install -r requirements.txtpython main.py- Look around to move the mouse cursor.
- Blink your left eye to perform a mouse click.
- Press
Ctrl + Cor close the window to exit.
If the cursor is moving too fast or too slow, you can adjust the sensitivity in main.py:
SENSITIVITY_X = 4.5
SENSITIVITY_Y = 4.0Contributions are welcome! Feel free to fork the repository, improve the code, fix bugs, or add new features and open a pull request.
This project is licensed under the Apache License 2.0. See the LICENSE file for more details.