Skip to content

Virtual Pen can track a object of your desired color and draws trails of the tracked paths

Notifications You must be signed in to change notification settings

abd-shoumik/Virtual-Pen

Repository files navigation

Virtual-Pen

Virtual Pen can track a object of your desired color and draws trails of the tracked paths

File Details:

  • Color_labeler.py: For detecting Red,Green,Blue colors which is near to the camera
  • Color_range_detector: For custom color selection ( optional,if you want to detect other colors than red , green & blue. Follow the video if you want that )
  • VirtualPen.py: Python file to write on your screen.

To run this code in your terminal:

  • *Open your terminal
  • Change directory to where you have downloaded this code
  • Install python3 if you have not, if installed already then it's ok!
  • Run python3 -m venv venv to create a virtual environment named venv.
  • Run source venv/bin/activate to activate your environment!
  • Write pip install -r requirements.txt to install the python dependencies related to this project like opencv,numpy,scipy etc.
  • Run the command python3 VirtualPen.py to run your VirtualPen project

When you run the the file, you should be able to do like this:

VirtulaPenGif

Credit:

I have used the ball tracking algo of Adrian from: https://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/

Contacts:

About

Virtual Pen can track a object of your desired color and draws trails of the tracked paths

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages