Skip to content

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

Notifications You must be signed in to change notification settings

Severus11/Virtual-Air-Painting

Repository files navigation

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 !

Made with Python Made with TfLite LinkedIn-profileGitHub followers GitHub stars

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

  1. To run on local machine without a Flask server.
$ python3 run painter.py
  1. 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:

Sample_run.mp4

The fun part is that it runs on your phone too !

iphone_Sample_run0.mp4

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published