A real-time virtual painter application that uses computer vision to track hand gestures for painting on a virtual canvas. Built using Python, OpenCV, and MediaPipe.
- Real-time Hand Tracking: Uses MediaPipe to track hand landmarks.
- Gesture Control:
- Draw: OK Sign (Pinch).
- Select: Peace Sign (Select colors/shapes/buttons).
- Resize: L-Sign (Adjust brush size dynamically).
- Clear: Three Fingers Up (or "Clear" button).
- Erase: Index Finger Pointing.
- Eraser Size: Rock Sign.
- Virtual Tools: Brush, Eraser, Shapes (Rectangle, Circle, Triangle).
- New Features:
- Save Artwork: Save your creation to
Gallery/folder. - Undo: Undo your last stroke.
- Dynamic Sizing: Visual gesture-based resizing.
- Save Artwork: Save your creation to
- Install dependencies:
pip install -r requirements.txt - Run the application:
python main.py
Double-click run_on_windows.bat. It will automatically create an isolated environment, install dependencies, and launch the app.
- Controls:
- Colors/Shapes: Use Peace Sign, hover over the header to select.
- Buttons: Use Peace Sign, hover over Save/Undo/Clear in the top right.
- Draw: Use OK Sign to paint.
- Press
ESCto exit.
- Add more brush types (Texture brushes)
- Add "Redo" functionality
- Augmented reality 3D drawing