Real-time hand tracking that turns finger motions into a virtual pen. Draw digits and simple math expressions in the air, let the app recognize what you wrote, and see the result on screen.
- MediaPipe tracks your hand and detects when only the index finger is up.
- The index fingertip path is drawn onto an invisible canvas.
- On save, the canvas is preprocessed and segmented into characters.
- A trained TensorFlow model predicts each character.
- The predicted expression is evaluated and the answer is shown.
src/air_writing/finger_track.py- main applicationmodels/air_writing_model3.keras- trained model used by the appnotebooks/- experiments and training notesscripts/- helper/legacy scriptsoutputs/- saved drawings
pip install -r requirements.txt
python src/air_writing/finger_track.py
cclear canvasnlift pen (start a new stroke)ssave drawing + evaluateqquit