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