How vishnu190806/sign-language-translate works
This is a local, webcam-based Indian Sign Language recognizer for isolated signs, with English sentence assembly and offline speech. Its principal runtime path captures frames, extracts and smooths landmarks, buffers a temporal sequence, recognizes signs, gates stable words, assembles and polishes a sentence, then synthesizes and plays speech. Training and dataset preparation form a separate supporting branch. The README documents the end-to-end path; sampled source and the index confirm several implementations and calls, but not every runtime detail.
Main entry points: htma.py HTMA classifier · polish.py Sentence polish · factory.py Speech engine factory · playback.py Audio playback queue
Components 21
Capture and features
- Threaded camera
src/app/camera.py - Landmark extractor
src/features/extractor.py - Feature smoothing
src/features/smooth.py
Recognition
- Frame buffer
src/infer/buffer.py - HTMA classifier
src/models/htma.py - Model builder
src/models/builder.py - Multi-source routing
src/infer/routing.py - Stability gate
src/infer/gate.py
Sentence and speech
- Sentence assembler
src/infer/sentence.py - Sentence polish
src/text/polish.py - Gloss rendering rules
src/text/rules.py - Speech engine factory
src/tts/factory.py - Kokoro engine
src/tts/kokoro_engine.py - Piper engine
src/tts/piper_engine.py - Audio playback queue
src/tts/playback.py
Training and data
- Landmark dataset
src/data/dataset.py - Dataset registry
src/data/registry.py - Augmentation pipeline
src/features/augment_pipeline.py - Model trainer
src/train/trainer.py
Other components
- Webcam
- User
Connections 20
- Webcam → Threaded camera: supplies frames
- Threaded camera → Landmark extractor: provides frames
- Landmark extractor → Feature smoothing: builds features
- Feature smoothing → Frame buffer: smooths features
- Frame buffer → HTMA classifier: buffers sequences
- Model builder → HTMA classifier: constructs
src/models/builder.py - HTMA classifier → Stability gate: predicts signs
- Stability gate → Sentence assembler: emits words
- Sentence assembler → Sentence polish: polishes draft
- Sentence polish → Gloss rendering rules: uses rules
src/text/polish.py - Sentence polish → Speech engine factory: provides text
- Speech engine factory → Kokoro engine: creates engine
src/tts/factory.py - Speech engine factory → Piper engine: creates engine
src/tts/factory.py - Kokoro engine → Audio playback queue: provides audio
- Piper engine → Audio playback queue: provides audio
- Audio playback queue → User: plays speech
- Landmark dataset → Augmentation pipeline: augments samples
src/data/dataset.py - Model trainer → Landmark dataset: loads batches
src/train/trainer.py - Model trainer → Model builder: builds model
src/train/trainer.py - HTMA classifier → Multi-source routing: supports source prediction