A real-time computer vision project that allows users to draw in the air using their index finger and erase using an open hand gesture.
- ✍️ Index finger only → Smooth golden pen drawing
- ✋ Open hand → Eraser mode
- 👋 Real-time hand landmarks visualization
- 🎯 Drawing activates only at close distance
- 🧽 Smooth canvas overlay
Python 3.x
OpenCV
MediaPipe
NumPy
pip install -r requirements.txt
python main.py
Press Q to exit.
Hand landmarks are detected using MediaPipe.
Finger states determine drawing or erasing mode.
A separate canvas layer is merged with the camera feed.
Distance threshold controls natural writing activation.