How dineshkumarj45/hdr works
HDR is a handwritten-digit recognition app: users draw a digit in the web interface, submit it for preprocessing and CNN/SVM inference, and receive both model scores plus a confidence-based final choice. A separate training script builds the CNN and SVM from MNIST and saves model artifacts that the Flask app loads at startup. The README documents the interactive web workflow; index.html is listed in the tree but was not sampled, so its implementation details are not shown.
Main entry points: app.py Flask app · index.html Drawing interface · train_model.py CNN training
Components 12
User interface
- Drawing interface
index.html
Prediction service
- Flask app
app.py - Image preprocessing
app.py - CNN inference
app.py - SVM inference
app.py - Confidence comparison
app.py
Model training
- CNN training
train_model.py - SVM training
train_model.py
Other components
- Digit drawer
- MNIST dataset
- CNN model file
- SVM model file
Connections 13
- Digit drawer → Drawing interface: draws
README.md - Drawing interface → Flask app: submits digit
README.md - Flask app → Drawing interface: returns prediction
README.md - Flask app → Image preprocessing: preprocesses
app.py - Flask app → CNN inference: predicts with
app.py - Flask app → SVM inference: predicts with
app.py - Flask app → Confidence comparison: compares scores
app.py - MNIST dataset → CNN training: trains on
train_model.py - MNIST dataset → SVM training: trains on
train_model.py - CNN training → CNN model file: saves
train_model.py - SVM training → SVM model file: saves
train_model.py - Flask app → CNN model file: loads
app.py - Flask app → SVM model file: loads
app.py