Skip to content

Computer Vision Project: Virtual Pen using OpenCV and Python

License

Notifications You must be signed in to change notification settings

priyanshkedia04/Virtual-Pen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Virtual-Pen

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.

Getting Started

Dependencies

  • Jupyter Notebook required

  • Python Libraries

    • Numpy
    • cv2
    • Matplotlib

Installing

  • Download Jupyter Notebook

  • No further installation

Executing program

  • 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

Help

Installing the libraries beforehand will solve most issues

Authors

Contributors names and contact info ex. @priyanshkedia04

Version History

  • 0.1
    • Initial Release

License

GNU General Public License v3.0

About

Computer Vision Project: Virtual Pen using OpenCV and Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published