This is an application that enables one to vitually paint in the air using their fingers. It is developed in python on openCV, TfLite and Mediapipe. So go ahead and recreate your imaginations in the air !
Use the link below to close this repository to your machine.
$ https://github.com/Severus11/Virtual-Air-Painting.git
$ cd Virtual-Air-Painting/
$ tree
.
├── Assests
├── Sample_run.mp4
└── iphone_Sample_run0.mp4
├── Images
├── 1.png
├── 2.png
├── 3.png
└── 4.png
├── __pycache__
├── templates
└── index.html
├── README.md
├── app.py
├── cam.py
├── painter.py
├── track_hands.py
└── requirements.txt
1 directory, 14 files
These are the required dependencies needed to setup the environment
$ pip3 install -r requirements.txt
- To run on local machine without a Flask server.
$ python3 run painter.py
- To run as a local host on a Flask server.
- Run the Flask app
$ python3 run app.py
- On your phone's browser enter your machine's ip and port 5000. Say ip is 192.168.0.15.
192.168.0.15:5000
- Use your index finger to draw.
- To change color/ use eraser, use index and middle fingers to select it by hovering on it.
- Continue painting !