How ganatuka/mongolsign works
MongolSign is a local Mongolian fingerspelling-recognition research application. Its primary workflow captures webcam frames, detects hand landmarks, matches them against reviewed templates, arbitrates stable or completed signs, and presents confirmed letters and diagnostics in the browser. Separate workflows collect and review reference performances and photos, support calibration and experimental baselines, and mine corpus statistics to refine text. The excerpts show key calls, but not every route or subsystem; links for broader documented capabilities cite the README, and unsampled relationships are omitted.
Main entry points: app.py HTTP application · app.js Browser interface · template_store.py Prototype lifecycle · template_api.py Template API
Components 21
Web experience
- Browser interface
frontend/app.js - Template controls
frontend/templates.js - Diagnostic trace
frontend/segment.mjs - Output stabilizer
frontend/stability.mjs - Text buffer
frontend/text_buffer.mjs - HTTP application
app.py
Recognition pipeline
- Hand landmark detector
src/vision.py - Pose descriptors and matching
src/templates.py - Temporal recognition
src/recognition.py
Reference management
- Template API
src/template_api.py - Prototype lifecycle
src/template_store.py - Photo enrollment
src/reference_images.py - Reference installer
src/pilot.py
Research and text
- Local study database
src/storage.py - Recording calibration
src/calibration.py - Experimental classifiers
src/ml.py - Corpus language model
src/nlp.py - Text study
src/text_study.py - Template evaluation
scripts/evaluate_templates.py
Other components
- Signer / researcher
- Webcam
Connections 28
- Signer / researcher → Browser interface: uses
README.md - Webcam → Browser interface: supplies frames
README.md - Browser interface → HTTP application: sends frames
README.md - HTTP application → Hand landmark detector: detects hands
app.py - HTTP application → Temporal recognition: recognizes streams
README.md - Temporal recognition → Pose descriptors and matching: compares poses
src/recognition.py - Browser interface → Output stabilizer: stabilizes output
frontend/app.js - Browser interface → Diagnostic trace: records diagnostics
frontend/app.js - Browser interface → Text buffer: buffers text
frontend/app.js - Browser interface → Template controls: manages templates
frontend/app.js - HTTP application → Template API: serves templates
README.md - Template API → Temporal recognition: dispatches recognition
README.md - Template API → Hand landmark detector: extracts landmarks
README.md - Template API → Prototype lifecycle: manages prototypes
src/template_api.py - Prototype lifecycle → Pose descriptors and matching: builds prototypes
src/template_store.py - Prototype lifecycle → Local study database: reads and writes
src/template_store.py - Photo enrollment → Hand landmark detector: recovers landmarks
README.md - Photo enrollment → Prototype lifecycle: saves reviewed photos
README.md - Reference installer → Prototype lifecycle: installs references
src/pilot.py - Reference installer → Hand landmark detector: extracts landmarks
src/pilot.py - HTTP application → Local study database: stores recordings
app.py - Recording calibration → Local study database: reads study records
src/calibration.py - Recording calibration → Prototype lifecycle: loads prototypes
src/calibration.py - HTTP application → Experimental classifiers: offers baselines
README.md - HTTP application → Corpus language model: refines text
README.md - Text study → Corpus language model: analyzes corpus
src/text_study.py - Template evaluation → Prototype lifecycle: evaluates templates
scripts/evaluate_templates.py - Template evaluation → Local study database: reads recordings
scripts/evaluate_templates.py