How besoda/sign_lang_to_text works
This is an ASL alphabet gesture-recognition application with two user workflows: collect labeled camera examples, then train a classifier; and run live camera recognition using the saved classifier. The training path reads CSV landmarks and writes a checkpoint, while live recognition extracts landmarks, classifies them, and displays the predicted letter. The README documents real-time camera recognition. The source excerpts show these flows, but do not show speech output or persistence of the live result JSON.
Main entry points: live_recognition.py Recognition loop · model.py Training loop · manual_data.py Gesture collector · gesture_data Gesture CSV samples
Components 13
Data collection
- Gesture collector
manual_data.py - Landmark extraction
manual_data.py - Gesture CSV samples
gesture_data
Model training
- Dataset loader
model.py - Training loop
model.py - Gesture classifier
model.py - Model checkpoint
gesture_classifier.pth
Live recognition
- Recognition loop
live_recognition.py - Hand landmark detection
live_recognition.py - Live classifier
live_recognition.py - Gesture display
live_recognition.py
Other components
- Operator
- Webcam
Connections 14
- Operator → Gesture collector: starts collection
manual_data.py - Webcam → Gesture collector: captures frames
manual_data.py - Gesture collector → Landmark extraction: processes frames
manual_data.py - Landmark extraction → Gesture CSV samples: appends samples
manual_data.py - Gesture CSV samples → Dataset loader: loads samples
model.py - Dataset loader → Training loop: provides batches
model.py - Training loop → Gesture classifier: trains
model.py - Training loop → Model checkpoint: saves weights
model.py - Operator → Recognition loop: runs recognition
README.md - Webcam → Recognition loop: captures frames
live_recognition.py - Recognition loop → Hand landmark detection: processes frames
live_recognition.py - Model checkpoint → Live classifier: loads weights
live_recognition.py - Hand landmark detection → Live classifier: provides keypoints
live_recognition.py - Recognition loop → Gesture display: draws prediction
live_recognition.py