π Enhanced Gesture Mouse Control is a hand gesture-based mouse control tool powered by MediaPipe and OpenCV. It supports gesture locking, pinching for clicks, dragging, and scrolling operations.
β Gesture-based Mouse Control - Move the cursor using your index finger with smooth motion and edge acceleration.
β Position Locking - Slightly bending your index or middle finger (>10Β°) locks the mouse position.
β Click & Drag - Pinching your thumb and index finger triggers a mouse click, while holding the pinch allows dragging.
β Scrolling Control - Quickly flicking your middle finger up and down enables page scrolling.
β Optimized Smoothing Algorithm - Uses a moving average filter for stable and responsive movement.
β Edge Acceleration - Enhances cursor movement speed near screen edges for efficient navigation.
β Cross-Platform Compatibility - Works on Windows, Linux, and macOS.
Ensure you have Python 3.7 or later installed.
pip install opencv-python mediapipe pyautogui numpyRun the following command in your terminal:
python mouse_control.py| Gesture | Action | Description |
|---|---|---|
| βοΈ Index Finger | Move Cursor | The index finger controls mouse movement |
| β Finger Bend | Lock Position | Slightly bending the index or middle finger (>10Β°) |
| π€ Pinch | Click | Bringing the thumb and index finger close together (<0.03) triggers a mouse click |
| β Hold Pinch | Drag | Holding the pinch allows dragging of windows or files |
| π Flick Middle Finger | Scroll | Quickly moving the middle finger up and down scrolls the page |
We welcome contributions! Follow these steps to contribute:
- Fork this repository.
- Create a branch (
git checkout -b feature-xyz). - Commit your changes (
git commit -m 'Added XYZ feature'). - Push to the branch (
git push origin feature-xyz). - Open a Pull Request!
This project is licensed under the MIT License, allowing free use and modifications.