Introducing Air Doodle – where your imagination takes flight with just the flick of a finger! Draw anything your heart desires using nothing but the motion of your hands. No brush, no stylus — just pure air.
By tracking the landmarks on your hand using computer vision and machine learning, Air Doodle transforms your gestures into art on a virtual canvas — right in your browser.
🌐 Live Demo: airdoodle.streamlit.app
- ✏️ Draw in the air using your index finger
- 🤌 Pinch (thumb + index finger) to lift the brush
- 🎨 Choose from 4 colors — Blue, Green, Red, Yellow
- 🗑️ Clear the canvas with a gesture or button
- 🌐 Runs entirely in the browser — no installation needed
- Hand Detection — OpenCV detects your hand from the webcam feed in real-time
- Landmark Detection — MediaPipe tracks 21 hand landmarks (knuckles, fingertips, etc.) with high precision
- Motion Tracking — Your index fingertip position is mapped to strokes on the virtual canvas
- Gesture Recognition — Pinching lifts the brush; moving to the top bar switches colors or clears the canvas
Just open the link below in Chrome or Firefox on any device with a webcam:
📷 A webcam (built-in or USB) is required. Works on laptops, phones, and tablets.
If you want to run it on your own machine:
- Python 3.10+
- A webcam
git clone https://github.com/kush788/Air_Doodle.git
cd Air_Doodlepython -m venv venv
source venv/bin/activate # On Linux/Mac
venv\Scripts\activate # On Windowspip install -r requirements.txtstreamlit run AirDoodle.pyThen open http://localhost:8501 in your browser.
| Tool | Purpose |
|---|---|
| Streamlit | Web app framework |
| streamlit-webrtc | Webcam streaming in browser |
| MediaPipe | Hand landmark detection |
| OpenCV | Image processing |
| NumPy | Array operations |
Air_Doodle/
├── AirDoodle.py # Main Streamlit app
├── requirements.txt # Python dependencies
├── packages.txt # System dependencies (for Streamlit Cloud)
└── README.md
Pull requests are welcome! For major changes, please open an issue first.
This project is open source and available under the MIT License.