Virtual-Paint is an interactive digital painting application that allows users to draw on a canvas using colors picked via a webcam. The application uses computer vision techniques to detect specific colors and translates them into drawing on the canvas.
- Real-Time Drawing: Draw on the canvas using the webcam as an input device.
- Color Picker: Use a custom color picker to choose colors based on the HSV range (Hue, Saturation, and Value).
- Multiple Colors: Pick and draw with multiple colors by adjusting HSV values.
- Interactive Interface: The app shows real-time video feed with an overlay for the selected colors and drawn paths.
- ColorPicker.py: A helper script to help you select HSV values for the colors you want to use in your drawing. You can adjust the sliders to select the appropriate hue, saturation, and value for your desired color.
- VirtualPaint.py: The main application file that utilizes the webcam feed to detect the colors you’ve selected and draw them on a virtual canvas.
- Python 3.x
- OpenCV: Install via
pip install opencv-python - NumPy: Install via
pip install numpy
- Color Detection: The
findcolorfunction in VirtualPaint.py captures the selected colors from the webcam input based on the HSV ranges. - Drawing: The colors are drawn on the canvas by appending the detected points and then rendering the drawing onto the canvas with the function
drawOnCanvas.