The instinct when an inspection underperforms is to reach for a better model. Usually the model is not the problem. If the defect has no contrast under the installed illumination, it is not present in the pixels the camera captured, and no amount of training recovers information that was never recorded. A scratch that is invisible under flat front light is obvious under low-angle light that rakes across the surface; the difference is the lighting geometry, and it is decided before a single image is labelled.
This is why the honest sequence is imaging first, model second. The lighting geometry is chosen for the defect physics — low-angle for surface relief, dome for specular and curved, backlight for dimension, structured light for three-dimensional form. The optics are sized so the smallest feature that matters is resolved across the whole field. The exposure and strobe are short enough that motion at line speed does not blur away the resolution the optics bought. Only once the defect is reliably visible in the image does the model earn its place, and then it is doing the job it is actually good at: deciding, not compensating for a bad picture.
Reversing that order is the most expensive mistake in industrial vision. A project that selects cameras and trains models on a poorly lit scene spends months chasing accuracy that the imaging made impossible, and often concludes the task is too hard. The same task, re-imaged so the defect has contrast, becomes straightforward. A short imaging trial on real defective parts, before any hardware is committed, is what separates a deployment from a pilot that never ships.