A Python project that enables mouse control using hand gestures detected via a webcam. This project uses computer vision and deep learning to recognize gestures and translate them into mouse actions.
- Real-time hand gesture detection
- Mouse movement and click simulation
- Easy to set up and run
- Python 3.8+
- OpenCV
- PyAutoGUI
- NumPy
- (Optional) YOLOv8 for advanced gesture detection
- Clone this repository:
git clone https://github.com/jaswanthsanjay88/gesture-controlled-mouse.git cd gesture-controlled-mouse - Install dependencies:
Or install manually:
pip install -r requirements.txt
pip install opencv-python pyautogui numpy
Run the main gesture controller script:
python src/Gesture_Controller.pyYou can also test the camera or run minimal tests:
python src/test_camera.py
python src/minimal_test.pysrc/Gesture_Controller.py- Main script for gesture-controlled mousesrc/gesture_with_mask_detection.py- Gesture detection with mask supportsrc/simple_gesture_controller.py- Simplified versionsrc/test_camera.py- Camera test utilitysrc/minimal_test.py- Minimal test scriptsrc/yolov8n.pt- YOLOv8 model weights (if used)
This project is licensed under the MIT License.
jaswanthsanjay88