Computer Vision Project : Virtual Pen using OpenCV and Python
Draw on Canvas just by using your Web-Camera and moving a Sketch Pen in the air in front of the camera. It automatically detects the color of the Sketch Pen you are using and starts drawing as you move your hand. Keep the pen's cap on and cap's tip facing straight towards the Camera.
Adjust the Threshold values of the colors for better results as the sketch pen color you are using maybe a little different from the ones I used while making this Project. Only designed for Green, Purple, and Yellow color pens. Make sure that cap of sketch pen is of same color as the ink.
You can see the uploaded tutorial video.
-
Jupyter Notebook required
-
Python Libraries
- Numpy
- cv2
- Matplotlib
-
Download Jupyter Notebook
-
No further installation
-
Define your colors or the color of sketch-pen you are using in the lower and upper HSV threshold values.
-
Contoutrs detection and then Color detection using OpenCV.
-
Stream your Web-Cam and Start virtually drawing
Installing the libraries beforehand will solve most issues
Contributors names and contact info ex. @priyanshkedia04
- 0.1
- Initial Release
GNU General Public License v3.0