Control your mouse cursor using hand gestures captured through your webcam. This project uses computer vision and hand tracking to convert hand movements and gestures into mouse actions.
- Mouse cursor control using index finger
- Left click, right click, and double click gestures
- Scroll up/down functionality
- Mouse movement lock
- Visual feedback with on-screen buttons
- Smooth cursor movement
- Python 3.7 or higher
- Webcam
- Required packages (listed in requirements.txt)
- Clone the repository:
git clone https://github.com/PhilemonTJ/Gesture-based-AI-Mouse.git
cd Gesture-based-AI-Mouse
- Install required packages:
pip install -r requirements.txt
Run the main script:
python src/main.py
- Move Mouse: Raise your index finger (other fingers closed)
- Lock Movement: Raise index and middle finger (other fingers closed)
- Left Click: Join index and middle fingers (other fingers closed)
- Right Click: Join index and middle fingers + raise ring finger (other fingers closed)
- Double Click: Join index and middle fingers + raise pinky (other fingers closed)
- Scroll Up: Join index and middle fingers + raise pinky (thumb open)
- Scroll Down: Join index and middle fingers (thumb open)
Gesture-based-AI-Mouse/
├── src/
│ ├── main.py # Main application script
│ └── utils/
│ ├── hand_detector.py # Hand detection and tracking
│ └── button.py # UI button implementation
├── requirements.txt # Project dependencies
└── README.md # Project documentation
This project is part of AICTE Internship.
Feel free to open issues and pull requests for any improvements.