A real-time hand gesture-based drawing application built using OpenCV and MediaPipe. Control your canvas using just your hands β no mouse, no keyboard required π€β¨
- βοΈ Draw with gestures (pinch to draw)
- π§½ Erase using hand gesture
- π Undo functionality
- πΎ Save drawings
- π¨ Dynamic brush size control
- π― Color palette selection
- π€ Gesture-based controls (no keyboard needed)
- β¨ Smooth drawing with glow effects
- π Interactive sound feedback
| Gesture | Action |
|---|---|
| π€ Pinch (thumb + index) | Draw |
| βοΈ Two fingers | Erase |
| β Open palm | Save |
| β Fist | Clear canvas |
| π Thumb up | Undo |
- Python
- OpenCV
- MediaPipe
- NumPy
Clone the repository:
git clone https://github.com/your-username/ai-gesture-drawing.git
cd ai-gesture-drawingInstall dependencies:
pip install opencv-python mediapipe numpypython main.py- Uses MediaPipe Hands to track hand landmarks in real-time
- Detects gestures based on finger positions
- Maps gestures to actions like drawing, erasing, saving, etc.
- Uses OpenCV to render drawings on a virtual canvas
- π¨ Shape drawing (circle, rectangle)
- π Web-based version (React + TensorFlow.js)
- π§ AI gesture classification model
- π± Mobile app version
Contributions are welcome! Feel free to fork this repo and improve it π
If you like this project, give it a β on GitHub!
Shalini Kumari