This repo contains the GreenMagic air-writing system. The main app lives in air_writing_system/.
# From repo root
cd air_writing_system
python -m venv venv
./venv/Scripts/python.exe -m pip install -r requirements.txt
./venv/Scripts/python.exe air_writing_enhanced.pyFor a minimal finger-tracking demo:
cd air_writing_system
./venv/Scripts/python.exe test_air_writing.py- Real-time index fingertip tracking (MediaPipe HandLandmarker)
- Air-writing laser trail and smoothing
- Close-fist gesture to finish and trigger OCR
- OCR-driven text recognition → AI graphics generation and overlay
- Voice feedback, logging, analytics modules
air_writing_system/— source, configs, tests, guidesair_writing_enhanced.py— full appgesture_tracking.py— fingertip tracking & trailhand_detection.py— MediaPipe hand landmarking helperstest_air_writing.py— quick demorequirements.txt— dependencies
- Data, generated images, logs, and models are gitignored (see
.gitignore). - MediaPipe model file
hand_landmarker.taskis included inair_writing_system/.
- Multi-hand support and richer gesture commands
- Model toggles for OCR/image generation
- Mobile-friendly build