June 24, 2020

126 words 1 min read

sharanya02/Virtual-Hover-Pen

sharanya02/Virtual-Hover-Pen

Virtual Hover Pen with OpenCV library

repo name sharanya02/Virtual-Hover-Pen
repo link https://github.com/sharanya02/Virtual-Hover-Pen
homepage
language Python
size (curr.) 11 kB
stars (curr.) 52
created 2020-06-16
license

Virtual Hover Pen

A virtual pen using your webcam and the OpenCV Library

First, color masking was used to get the binary mask of the target pen and then contour detection to detect and track the location of the marker.

Features:

  • Works best with green, blue and Red markers.
  • To clear screen, put any marker upto the webcam.
  • Press q to exit the program.
  • Result will differ with the lighting.

Pre requisites:

  • Python 3 installed.
  • OpenCV installed.

Instructions to run:

  • First clone the project
  • Go to the directory where you have cloned it
  • Run the following:
  • python virtualhoverpen.py

Contributors:

comments powered by Disqus