WritingOnAir is a cutting-edge computer vision application that transforms your webcam into a virtual canvas. By tracking your fingertip movements in 3D space, it allows you to draw, write, and create digital art using nothing but simple hand gestures.
- Gesture-Based Control:
- Draw: Use just your index finger to start sketching.
- Pen Up: Pinch your thumb and index finger to move without drawing.
- Erase: An open palm gesture activates an intuitive eraser mode.
- Smart Shape Autocorrect: Sophisticated algorithms automatically detect and "snap" hand-drawn sketches into perfect geometric shapes, including:
- Lines
- Circles
- Rectangles
- Squares
- Versatile Modes:
- Mixed Reality: Draw directly over your camera feed.
- Whiteboard Mode: Toggle a clean, white background for professional-looking notes.
- Record & Save: Capture your creative sessions as MP4 videos or save static snapshots as PNG files.
- Advanced Controls: Undo/Redo support, multiple color palettes, and adjustable brush thickness.
- Python 3.x
- OpenCV: Core image processing and UI rendering.
- MediaPipe: High-fidelity hand landmark detection and tracking.
- NumPy: Efficient mathematical operations for gesture analysis and shape detection.
-
Clone the repository:
git clone https://github.com/CodeItAlone/WritingOnAir.git cd WritingOnAir -
Set up a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
Navigate to the Backend directory and execute the main script:
cd Backend
python main.py| Key | Action |
|---|---|
| C | Clear Canvas Completely |
| B | Soft Clear (Fade) |
| S | Save Snapshot (PNG) |
| Z | Undo Last Stroke |
| 1 - 4 | Select Colors (White, Red, Green, Blue) |
| + / - | Adjust Brush Thickness |
| W | Toggle Whiteboard Mode |
| R | Start/Stop Session Recording (MP4) |
| Q | Quit Application |
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Created by CodeItAlone