CoolFace
Apppublic

swastikdl/casting-defect-screener

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

Casting Defect Screener — Blow holes & Porosity

Professional QC inspection dashboard. Operators sign in, upload a machined-casting photo, and get a binary OK / DEFECT verdict with the suspected blow-hole / porosity cavities circled, a detailed verdict card (category, severity, likely causes, recommended action, reasoning), live session KPIs, a session history grid, and a downloadable self-contained HTML inspection report.

Engine

  • —detector.py — v1 classical computer-vision detector (no training data required): isolates the bright machined surface and flags dark, round cavities, rejecting marker ink and drilled holes. Swap in a trained model later without touching the UI.
  • —report.py — builds the self-contained HTML inspection report (KPIs, per-defect cards with embedded images, model parameters, sign-off).
  • —app.py — Gradio dashboard (dark theme, login, KPI stats, history, report).

Run locally

bash
pip install -r requirements.txt
python app.py            # local only  -> http://localhost:7860
python app.py --share    # temporary public link (~1 week)