How winac2/signlang_test works
SignMachine is a desktop sign-gesture recognition app plus a dataset-to-model workflow. In the main user path, a person starts the webcam, the app detects and classifies a hand gesture, and sustained predictions become translated message text that can be spoken. The separate preparation path extracts and preprocesses image landmarks before training a classifier; evaluation scripts assess model results. Runtime relationships are grounded in the app and language-module excerpts, while preparation and evaluation links follow their shown file reads and writes. Other model artifacts are listed in the tree but their roles were not inspected.
Main entry points: hand_gesture_app.py Gesture app · models Saved model files · lang_mana.py Language manager · collect_data_from_images.py Image landmark extraction
Components 19
Recognition App
- Gesture app
hand_gesture_app.py - Hand detection
hand_gesture_app.py - Landmark features
hand_gesture_app.py - Gesture classifier
hand_gesture_app.py - Message composition
hand_gesture_app.py
Language and Output
- Language manager
lang/lang_mana.py - English translations
lang/EN.py - Vietnamese translations
lang/VI.py - Speech output
hand_gesture_app.py
Dataset Preparation
- Labeled images
- Image landmark extraction
collect_data_from_images.py - Landmark preprocessing
preprocess_data.py - Processed CSV
Model and Evaluation
- Random forest training
train_hand_model.py - Saved model files
models - ROC evaluation
model_evaluate.py - Confusion evaluation
confusion_matrix.py
Other components
- App user
- Webcam
Connections 22
- App user → Gesture app: operates
README.md - Webcam → Gesture app: provides frames
README.md - Gesture app → Hand detection: processes frames
hand_gesture_app.py - Hand detection → Landmark features: extracts landmarks
hand_gesture_app.py - Landmark features → Gesture classifier: predicts gesture
hand_gesture_app.py - Gesture app → Message composition: commits gesture
hand_gesture_app.py - Gesture app → Language manager: translates text
hand_gesture_app.py - Language manager → English translations: uses
lang/lang_mana.py - Language manager → Vietnamese translations: uses
lang/lang_mana.py - App user → Gesture app: requests speech
hand_gesture_app.py - Gesture app → Speech output: speaks message
hand_gesture_app.py - Labeled images → Image landmark extraction: supplies images
collect_data_from_images.py - Labeled images → Landmark preprocessing: supplies images
preprocess_data.py - Image landmark extraction → Processed CSV: writes landmarks
collect_data_from_images.py - Landmark preprocessing → Processed CSV: writes processed data
preprocess_data.py - Processed CSV → Random forest training: loads features
train_hand_model.py - Random forest training → Saved model files: saves classifier
train_hand_model.py - Saved model files → Gesture classifier: loads model
hand_gesture_app.py - Saved model files → ROC evaluation: loads model
model_evaluate.py - Saved model files → Confusion evaluation: loads model
confusion_matrix.py - Processed CSV → ROC evaluation: supplies test data
model_evaluate.py - Processed CSV → Confusion evaluation: supplies test data
confusion_matrix.py