Virtual-Air-Painting
Virtual-Air-Painting copied to clipboard
This is an application that enables one to vitually paint in the air using their fingers. It is developed in python on TF lite and opencv
Virtual Air Painting
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 !
Cloning
Use the link below to close this repository to your machine.
$ https://github.com/Severus11/Virtual-Air-Painting.git
Directory Contents
$ 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
Pre-requisites
These are the required dependencies needed to setup the environment
$ pip3 install -r requirements.txt
Instructions
- 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
Usage:
- 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 !
Sample Output:
https://user-images.githubusercontent.com/36445722/119236976-00cec880-bb58-11eb-9e09-104d94797b58.mp4
The fun part is that it runs on your phone too !
https://user-images.githubusercontent.com/36445722/119236972-fca2ab00-bb57-11eb-8eed-5a3b26a67495.mp4