Project Structure
smart-classroom/
├── main.py # Main application
├── app.py # Dashboard app (train / test / camera)
├── draw_pad.py # Drawing pad with digit segmentation
├── retrain_robust.py # Trains models/expr_model.pth
├── generate_tests.py # Deterministic test image generator
├── gen_demo.py # Regenerates the README screenshots
├── config.py # Configuration
├── requirements.txt # Dependencies
├── docs/ # Demo screenshots
├── utils/
│ ├── face_detector.py # Face detection & recognition
│ ├── number_recognizer.py # CNN number recognition
│ └── profile_manager.py # Student profiles & grading
├── models/ # Saved ML models (gitignored)
├── data/ # MNIST + test data (gitignored)
└── profiles/ # Student profile JSONsSource captured: 2026-10-11