A computer vision application that enables users to draw on a virtual canvas using real-time hand gestures detected through a webcam.

Virtual Painter is a real-time computer vision application that transforms hand gestures into digital drawing commands using MediaPipe Hand Tracking and OpenCV. The system detects hand landmarks from a webcam feed, allowing users to draw, erase, adjust brush thickness, create geometric shapes, and save artwork without touching any physical input device. Designed with an intuitive gesture-based interface, the project demonstrates real-time image processing, gesture recognition, and human-computer interaction techniques.
git clone <YOUR_GITHUB_REPOSITORY>
cd virtual-painterpy -3.10 -m venv mp_env
mp_env\Scripts\activatepip install -r requirements.txtpython main.pyAchieving stable and accurate hand tracking in real time.
Integrated MediaPipe Hands with OpenCV to accurately detect and track hand landmarks across video frames while maintaining smooth performance.
Differentiating between drawing and interface interactions.
Designed gesture-based controls using finger combinations, enabling seamless switching between drawing, color selection, erasing, and shape creation.
Providing a natural drawing experience without physical input devices.
Implemented dynamic brush thickness, gesture recognition, fullscreen support, and undo functionality to create an intuitive and responsive user experience.
Maintaining correct display proportions across different screen sizes.
Optimized fullscreen rendering to preserve the webcam's aspect ratio, preventing image stretching and ensuring accurate gesture detection.