How dhivyabala726/good_weld works
LaserWeld AI Inspector is a Flask web app for inspecting weld-surface images with an ONNX YOLO model. Users choose an image or capture one with a camera, submit it for inference, then review a weld verdict, confidence and annotated image; they can also browse or clear session history and download results. The backend decodes and scales images, runs detection and saves annotations. Note: the README describes persisted history, but the sampled implementation keeps history in memory. The source excerpt does not show a health endpoint or persistent history store.
Main entry points: app.py Flask Routes · app.js Dashboard Interaction · results Annotated Results · index.html Dashboard Page
Components 17
Image Intake
- Flask Routes
app.py - Image Decoding
app.py - Image Selection
static/js/app.js
Inspection Engine
- Image Preprocessing
app.py - ONNX Model
best.onnx - YOLO Inference
app.py - Detection Processing
app.py - Weld Verdict
app.py
Results and History
- Image Annotation
app.py - Annotated Results
static/results - Session History
app.py
Web Experience
- Dashboard Interaction
static/js/app.js - Dashboard Page
templates/index.html - History Display
static/js/app.js - Inspection Results UI
static/js/app.js
Other components
- Inspector
- Browser Camera
Connections 21
- Inspector → Dashboard Interaction: uses
README.md - Dashboard Interaction → Dashboard Page: renders
- Flask Routes → Dashboard Page: renders
app.py - Inspector → Image Selection: selects image
README.md - Browser Camera → Dashboard Interaction: provides capture
README.md - Dashboard Interaction → Flask Routes: posts image
static/js/app.js - Flask Routes → Image Decoding: decodes image
app.py - Image Decoding → Image Preprocessing: passes image
app.py - Image Preprocessing → YOLO Inference: supplies tensor
app.py - YOLO Inference → ONNX Model: runs model
app.py - YOLO Inference → Detection Processing: processes output
app.py - Detection Processing → Weld Verdict: supplies detections
app.py - Weld Verdict → Image Annotation: annotates image
app.py - Image Annotation → Annotated Results: writes image
app.py - Weld Verdict → Session History: records summary
app.py - Flask Routes → Session History: serves history
app.py - Flask Routes → Annotated Results: serves download
app.py - Dashboard Interaction → Inspection Results UI: renders response
static/js/app.js - Inspection Results UI → Annotated Results: shows image
- Dashboard Interaction → History Display: loads history
static/js/app.js - History Display → Flask Routes: requests history
static/js/app.js