Control your computer cursor using hand gestures via webcam using OpenCV, MediaPipe, and PyAutoGUI.
- Real-time hand tracking (MediaPipe)
- 5 gesture control modes
- Smooth cursor movement
- Left/Right click gestures
- Works on Windows/macOS/Linux
- Easy toggle on/off via gestures or keyboard
- Python 3.7+
- OpenCV
- MediaPipe
- PyAutoGUI
- NumPy
git clone https://github.com/yourusername/virtual-mouse-project.git
cd virtual-mouse-project
# Virtual environment (optional)
python -m venv venv
venv\Scripts\activate # On Windows
# source venv/bin/activate # On macOS/Linux
pip install -r requirements.txt
python main.py