How aceofpsycho/hand-sign-website works
This browser app translates between ASL hand signs and speech. Its main workflow captures camera frames, detects hand landmarks, preprocesses them for local classifiers, and turns stable letter predictions into text; a separate speech mode recognizes spoken words and displays corresponding letter images. Speech synthesis reads text aloud, while ASL images and TFLite models are local assets. The runtime is concentrated in src/main.js; the excerpts show key calls and asset references, but not every initialization detail.
Main entry points: main.js Translator UI and orchestration · models Keypoint model · asl_images ASL letter images
Components 16
Browser runtime
- Translator UI and orchestration
src/main.js - Camera capture
src/main.js
Sign translation
- Hand landmark detection
src/main.js - MediaPipe Hands
- Landmark preprocessing
src/main.js - Keypoint classification
src/main.js - Point-history classification
src/main.js - Stable letter and text output
src/main.js - ASL letter image display
src/main.js
Speech features
- Speech recognition
src/main.js - Speech text and image output
src/main.js - Speech synthesis
src/main.js
Local assets
- Keypoint model
public/models - Point-history model
public/models - ASL letter images
public/asl_images
Other components
- User
Connections 17
- User → Translator UI and orchestration: uses
README.md - Translator UI and orchestration → Camera capture: starts and stops
src/main.js - Camera capture → Hand landmark detection: sends frames
src/main.js - Hand landmark detection → MediaPipe Hands: uses
src/main.js - Hand landmark detection → Landmark preprocessing: provides landmarks
src/main.js - Landmark preprocessing → Keypoint classification: provides 42 values
src/main.js - Keypoint classification → Keypoint model: loads model
src/main.js - Hand landmark detection → Point-history classification: provides history
src/main.js - Point-history classification → Point-history model: loads model
src/main.js - Keypoint classification → Stable letter and text output: returns letter
src/main.js - Stable letter and text output → Translator UI and orchestration: updates output
src/main.js - Translator UI and orchestration → ASL letter image display: renders letters
src/main.js - ASL letter image display → ASL letter images: loads images
src/main.js - Translator UI and orchestration → Speech recognition: starts recognition
src/main.js - Speech recognition → Speech text and image output: provides recognized text
src/main.js - Speech text and image output → ASL letter image display: shows letter images
src/main.js - Translator UI and orchestration → Speech synthesis: speaks text
src/main.js