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.
- *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
I have used the ball tracking algo of Adrian from: https://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/
- Created by:Abdullah Shoumik
- Email:[email protected]
- Youtube:TheLazyCoder
- LinkedIn: Abdullah Shoumik