Skip to content

rabeehakamran/GesturePainter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Gesture Painter (OpenCV + MediaPipe)

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 🫱


🧠 Tech Stack

  • Python
  • OpenCV
  • MediaPipe
  • NumPy

✨ Features

  • πŸ‘‰ Draw with your index finger
  • ✌️ Switch colors by showing index + middle fingers
  • βœ‹ Clear canvas with all five fingers up
  • 🧽 Eraser mode (black color)
  • πŸ’Ύ Press S to save your drawing
  • ❌ Press Q to quit

🎨 Color Palette

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)

πŸš€ How to Run

  1. Clone the repo:

git clone https://github.com/rabeehakamran/GesturePainter.git cd gesture-painter

  1. Install dependencies:

pip install opencv-python mediapipe numpy

  1. Run the app:

python gesture_painter.py


Every time you press S, your artwork is saved with a timestamp filename like: drawing_1721599813.png

About

A webcam-based gesture drawing app using Python, OpenCV, and MediaPipe draw with your fingers, switch colors, and erase with simple hand gestures!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages