How 176anjali/hand-gesture-recognition works
HAND GESTURE AI is a local Streamlit application for collecting and managing landmark datasets, training a session-aware Random Forest, and recognizing gestures from a webcam. The main workflow runs from the dashboard’s collection and training pages through shared data, camera, feature, and model logic to live predictions. The graph also includes the documented overview, exploration, and model-information capabilities, plus the legacy command-line tools. Some page wiring is supported by the source index or README rather than complete excerpts; uncertain links are omitted.
Main entry points: data_manager.py Dataset validation · app.py Streamlit entry · model_trainer.py Training and evaluation · hand_detection.py Hand camera
Components 20
Dashboard
- Streamlit entry
app.py - Overview
pages/1_Overview.py - Shared UI
src/ui.py
Dataset workflow
- Dataset management
pages/2_Dataset_Manager.py - Dataset explorer
pages/3_Dataset_Explorer.py - Dataset validation
src/data_manager.py - Gesture CSV
Recognition pipeline
- Hand camera
src/hand_detection.py - Landmark features
src/feature_extraction.py - Live prediction
pages/5_Live_Prediction.py - Confidence prediction
src/prediction.py
Model lifecycle
- Model training
pages/4_Model_Training.py - Training and evaluation
src/model_trainer.py - Model artifacts
- Model information
pages/6_Model_Information.py
Legacy tools
- CLI collector
collect_data.py - CLI recognition
main.py - CLI trainer
train_model.py
Other components
- User
- Webcam
Connections 38
- User → Streamlit entry: opens
README.md - Streamlit entry → Overview: navigates
README.md - Streamlit entry → Dataset management: navigates
README.md - Streamlit entry → Dataset explorer: navigates
README.md - Streamlit entry → Model training: navigates
README.md - Streamlit entry → Live prediction: navigates
README.md - Streamlit entry → Model information: navigates
README.md - Dataset management → Dataset validation: validates and saves
pages/2_Dataset_Manager.py - Dataset management → Hand camera: captures samples
pages/2_Dataset_Manager.py - Dataset management → Shared UI: renders charts
pages/2_Dataset_Manager.py - Dataset explorer → Dataset validation: manages samples
pages/3_Dataset_Explorer.py - Dataset explorer → Shared UI: renders charts
pages/3_Dataset_Explorer.py - Dataset validation → Gesture CSV: reads and writes
src/data_manager.py - Hand camera → Webcam: reads frames
src/hand_detection.py - Hand camera → Landmark features: extracts landmarks
src/hand_detection.py - Model training → Dataset validation: loads dataset
pages/4_Model_Training.py - Model training → Training and evaluation: trains model
pages/4_Model_Training.py - Model training → Model artifacts: saves artifacts
pages/4_Model_Training.py - Model training → Shared UI: renders headings
pages/4_Model_Training.py - Training and evaluation → Dataset validation: validates data
src/model_trainer.py - Training and evaluation → Model artifacts: loads and saves
src/model_trainer.py - Live prediction → Hand camera: captures frames
pages/5_Live_Prediction.py - Live prediction → Model artifacts: loads model
pages/5_Live_Prediction.py - Live prediction → Confidence prediction: predicts features
pages/5_Live_Prediction.py - Live prediction → Shared UI: renders headings
pages/5_Live_Prediction.py - Model information → Dataset validation: reads dataset
pages/6_Model_Information.py - Model information → Training and evaluation: reads metadata
pages/6_Model_Information.py - Model information → Shared UI: renders headings
pages/6_Model_Information.py - Overview → Dataset validation: reads dataset
pages/1_Overview.py - Overview → Training and evaluation: reads metrics
pages/1_Overview.py - Overview → Shared UI: renders charts
pages/1_Overview.py - CLI collector → Hand camera: captures samples
collect_data.py - CLI collector → Dataset validation: saves samples
collect_data.py - CLI recognition → Hand camera: captures frames
main.py - CLI recognition → Training and evaluation: loads model
main.py - CLI recognition → Confidence prediction: predicts features
main.py - CLI trainer → Dataset validation: loads dataset
train_model.py - CLI trainer → Training and evaluation: trains model
train_model.py