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 cameraColor_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:
Credit:
I have used the ball tracking algo of Adrian from: https://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/
Contacts:
- Created by:Abdullah Shoumik
- Email:abd.shoumik@gmail.com
- Youtube:TheLazyCoder
- LinkedIn: Abdullah Shoumik