How suzzith/sign-language-detector works
This repository is a webcam-based ASL letter detector with a custom data-preparation and model-training workflow. At runtime, webcam frames are processed for hand landmarks, classified, shown with a confirmable text buffer, and intended to be spoken aloud. The README documents the broad preparation stages; sampled source confirms collection, training, and much of inference. The labeling and dataset-preparation implementations were not sampled, so their internal behavior and connections are shown only where documented or left unverified.
Main entry points: inference_classifier.py Letter confirmation · collect_imgs.py Image collection · data1 Class images · label_data.py Data labeling
Components 15
Dataset preparation
- Image collection
collect_imgs.py - Class images
data1 - Data labeling
label_data.py - Dataset preparation
create_dataset.py - Feature dataset
data.pickle
Model training
- Classifier training
train_classifier.py - Trained classifier
hand_model.h5
Live recognition
- Frame capture
inference_classifier.py - Hand tracking
inference_classifier.py - Gesture classification
inference_classifier.py
User output
- Letter confirmation
inference_classifier.py - Text display
inference_classifier.py - Speech output
inference_classifier.py
Other components
- User
- Webcam
Connections 16
- User → Image collection: starts capture
collect_imgs.py - Webcam → Image collection: provides frames
collect_imgs.py - Image collection → Class images: saves images
collect_imgs.py - Class images → Data labeling: labels samples
- Data labeling → Dataset preparation: prepares data
- Dataset preparation → Feature dataset: creates dataset
- Feature dataset → Classifier training: loads data
train_classifier.py - Classifier training → Trained classifier: saves model
train_classifier.py - User → Frame capture: runs detector
inference_classifier.py - Webcam → Frame capture: provides frames
inference_classifier.py - Frame capture → Hand tracking: processes frames
inference_classifier.py - Trained classifier → Gesture classification: provides model
inference_classifier.py - Hand tracking → Gesture classification: provides landmarks
inference_classifier.py - Gesture classification → Letter confirmation: suggests letter
inference_classifier.py - Letter confirmation → Text display: updates text
inference_classifier.py - Letter confirmation → Speech output: speaks letter
README.md