A line makes the same decision thousands of times a shift: pass, hold, rework. Most plants already inspect, usually by eye at the end of the line, and the inspector’s attention is the real capacity limit. Cameras do not get tired. They do get confused by a change in the light, a new supplier of packaging, or a lens nobody cleaned.
The first task is not training a model. It is defining the defect with the people who argue about it: photographs of the borderline cases, an agreed name for each class, and a written note on what counts as cosmetic rather than rejectable. Much of the value of the project sits in that definition, which is why it is done standing next to the machine.
What ships with the system
- Inspection with defect localisation, so a rejection shows where to look on the part
- A calibrated operating point chosen from the two error costs, documented with the reasoning
- Per-class and per-condition results, with the weak slices named rather than averaged away
- A defined behaviour when the camera, the light or the model fails: hold the part, and tell someone
- An exception station where a person classifies what the system declines to
Four steps, in this order
- 01Count the errors first
A week of manual records on current inspection, including the defects the customer found later. That is the baseline, and without it there is nothing honest to compare against.
- 02Fix the imaging
Camera, lens, light and trigger settled as part of the system rather than as an afterthought. No model recovers from a shadow that moves with the conveyor.
- 03Calibrate against cost
The plant sets an acceptable rate for each error type, and the threshold follows from it in writing, signed by quality and production together.
- 04Run beside the line
The system inspects in parallel and its decisions are compared with the inspector’s for a fortnight before it is allowed to reject anything on its own.
| Setting | Who decides | Recorded as |
|---|---|---|
| Acceptable escape rate | Quality manager | A figure per defect class |
| Acceptable false-reject rate | Production manager | A figure per shift |
| Operating threshold | Both, in one meeting | A dated decision in the project file |
| Drift re-check | Quality engineer | Monthly, and after any tooling change |
Sizing is a physical question. A model that takes a third of a second per frame will miss parts on a line that inspects four a second, and the answer is rarely a bigger model. It is a smaller region of interest, a trigger that fires once per part, and a camera that stops sending frames nobody looks at.
Handover is where inspection projects die quietly. The plant needs a runbook, the threshold history, a way to add a defect class without us, and a named engineer on their side who can restart the service at three in the morning. We write those documents for the team that inherits the system, not for the audit folder.