Skip to content

About

a computer-vision tool that lets users write or draw in the air using only their finger and a webcam. The script uses real-time video capture to track hand or fingertip movement and converts those movements into digital strokes on a virtual canvas.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

WritingOnAir ✍️✨

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.

🚀 Key Features

  • 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.

🛠️ Tech Stack

  • 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.

📦 Installation

  1. Clone the repository:

    git clone https://github.com/CodeItAlone/WritingOnAir.git
    cd WritingOnAir
  2. Set up a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt

▶️ How to Run

Navigate to the Backend directory and execute the main script:

cd Backend
python main.py

⌨️ Controls Reference

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

🤝 Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.


Created by CodeItAlone

About

a computer-vision tool that lets users write or draw in the air using only their finger and a webcam. The script uses real-time video capture to track hand or fingertip movement and converts those movements into digital strokes on a virtual canvas.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages