Draw with your fingers using webcam and hand gestures!
A fun computer vision project that lets you switch colors, draw, erase, and clear the canvas β all with simple hand movements π«±
- Python
- OpenCV
- MediaPipe
- NumPy
- π Draw with your index finger
- βοΈ Switch colors by showing index + middle fingers
- β Clear canvas with all five fingers up
- π§½ Eraser mode (black color)
- πΎ Press
Sto save your drawing - β Press
Qto quit
| Gesture | Action |
|---|---|
| Index Finger | Draw |
| Index + Middle Fingers | Change color |
| All Fingers | Clear canvas |
S Key |
Save drawing |
Q Key |
Quit app |
Colors available:
- Pink
- Green
- Yellow
- Cyan
- Blue
- Eraser (Black)
- Clone the repo:
git clone https://github.com/rabeehakamran/GesturePainter.git cd gesture-painter
- Install dependencies:
pip install opencv-python mediapipe numpy
- Run the app:
python gesture_painter.py
Every time you press S, your artwork is saved with a timestamp filename like: drawing_1721599813.png