Skip to content

FaizAlam/Vaint

Repository files navigation

Vaint - Virtual Air Painter

Vaint

This is an application that enables one to vitually paint in the air using their fingers. It is developed in python on openCV and Mediapipe. So go ahead and recreate your imaginations in the air !

Made with Python GitHub followers GitHub stars

Cloning

Use the link below to close this repository to your machine.

$ https://github.com/FaizAlam/Vaint.git

Directory Contents

$ cd Vaint/
$ tree
.
├── Header
    ├── 1.png
    ├── 2.png
    ├── 3.png
    └── 4.png    
├── __pycache__
├── templates
    └── index.html
├── README.md
├── app.py
├── cam.py
├── VirtualPainter.py
├── HandTrackingModule.py
└── requirements.txt

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 VirtualPainter.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.1.1.
192.168.1.1: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.
  • Enjoy painting !