How sahayabarbaralpricy/bone-fracture-detection works
This Flask application supports user accounts and a logged-in X-ray workflow: upload an image with patient details, run fracture classification, save the result, and display it. Users can then review history, edit profiles, and download reports. The graph includes the app setup, query layer, image preprocessing, and model. Report generation is referenced by the sampled report route, but its implementation is absent from the supplied tree, so that subsystem’s path is unknown; upload-route internals were not excerpted.
Main entry points: app.py Flask app · templates Page templates · queries.py Database queries · prediction.py Prediction handler
Components 18
Web application
- Flask app
app.py - App configuration
config.py - Page templates
templates
X-ray assessment
- X-ray upload
routes/upload.py - Prediction handler
routes/prediction.py - Image preprocessing
model/preprocess.py - Fracture classifier
model/predict.py - Trained model
model/bone_fracture_model.h5 - Uploaded images
Persistence
- Database queries
database/queries.py - MySQL database
database/db.py
User and records
- Login and registration
routes/auth.py - Dashboard
routes/dashboard.py - Prediction history
routes/history.py - User profile
routes/profile.py - Report download
routes/report.py - PDF generation
Other components
- Website user
Connections 28
- Website user → Flask app: uses
README.md - Flask app → App configuration: loads
app.py - Flask app → MySQL database: initializes
app.py - Flask app → Login and registration: registers
app.py - Flask app → Dashboard: registers
app.py - Flask app → X-ray upload: registers
app.py - Flask app → Prediction handler: registers
app.py - Flask app → Prediction history: registers
app.py - Flask app → User profile: registers
app.py - Flask app → Report download: registers
app.py - Login and registration → Database queries: reads and writes
routes/auth.py - Login and registration → Page templates: renders
routes/auth.py - Dashboard → Page templates: renders
routes/dashboard.py - X-ray upload → Page templates: renders
- Prediction handler → Uploaded images: saves image
routes/prediction.py - Prediction handler → Fracture classifier: requests classification
routes/prediction.py - Prediction handler → Database queries: saves result
routes/prediction.py - Prediction handler → Page templates: renders result
routes/prediction.py - Fracture classifier → Image preprocessing: preprocesses image
model/predict.py - Fracture classifier → Trained model: loads model
model/predict.py - Prediction history → Database queries: reads history
routes/history.py - Prediction history → Page templates: renders
routes/history.py - User profile → Database queries: reads and updates
routes/profile.py - User profile → Page templates: renders
routes/profile.py - Report download → Database queries: reads records
routes/report.py - Report download → PDF generation: generates PDF
routes/report.py - Report download → Page templates: renders reports
routes/report.py - Database queries → MySQL database: queries and updates
database/queries.py