How p-yashavanth/asl-sr works
This is an ASL alphabet recognition application with both a Flask/webcam interface and a standalone OpenCV interface, plus a CSV-based model training workflow. In the web path, webcam frames are landmarked, normalized, classified, and debounced into sentence text, which the browser can inspect and edit or request to be spoken. Training augments and normalizes labeled landmarks before selecting and saving a classifier and labels. The README also describes dataset landmark collection, but its implementation is not established by the sampled files; that boundary is noted rather than inferred.
Main entry points: app.py Web interface · predicate.py Standalone recognition · train.py Classifier training · normalize_utils.py Landmark normalization
Components 19
Recognition runtime
- Web interface
app.py - Webcam capture
app.py - Hand tracking
app.py - Gesture classification
app.py - Sentence composition
app.py - Text-to-speech
app.py - Standalone recognition
predicate.py
Model training
- Labeled dataset
- Landmark augmentation
train.py - Classifier training
train.py - Saved classifier
gesture_model.zip - Saved labels
labels.pkl
Shared components
- Landmark normalization
normalize_utils.py
Other components
- Web user
- Training operator
- MediaPipe
- Webcam
- Browser
- Speech engine
Connections 28
- Web user → Browser: uses
README.md - Browser → Web interface: requests routes
app.py - Web interface → Webcam capture: streams frames
app.py - Webcam → Webcam capture: provides video
app.py - Webcam capture → Hand tracking: processes frames
app.py - Hand tracking → MediaPipe: detects landmarks
app.py - Web interface → Gesture classification: predicts gestures
app.py - Gesture classification → Landmark normalization: normalizes landmarks
app.py - Landmark normalization → Gesture classification: returns features
app.py - Gesture classification → Sentence composition: commits predictions
app.py - Sentence composition → Web interface: serves state
app.py - Web interface → Browser: returns stream and state
app.py - Web interface → Text-to-speech: speaks request
app.py - Text-to-speech → Speech engine: uses engine
app.py - Training operator → Classifier training: runs training
train.py - Labeled dataset → Classifier training: supplies labeled rows
train.py - Classifier training → Landmark augmentation: augments samples
train.py - Classifier training → Landmark normalization: normalizes samples
train.py - Classifier training → Saved classifier: saves classifier
train.py - Classifier training → Saved labels: saves classes
train.py - Standalone recognition → Webcam: captures video
predicate.py - Standalone recognition → MediaPipe: tracks hands
predicate.py - Standalone recognition → Landmark normalization: normalizes landmarks
predicate.py - Standalone recognition → Saved classifier: loads classifier
- Standalone recognition → Saved labels: loads labels
- Web interface → Saved classifier: loads classifier
- Web interface → Saved labels: loads labels
- Web interface → Standalone recognition: alternative interface