Skip to content

Nandhu2004/Virtual-Paint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Virtual-Paint

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.

Features

  • 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.

Files

  • 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.

Dependencies

  • Python 3.x
  • OpenCV: Install via pip install opencv-python
  • NumPy: Install via pip install numpy

Explanation

  • Color Detection: The findcolor function 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.

About

Virtual-Paint is an interactive digital painting application that allows users to draw on a canvas using colors picked via a webcam.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages