Select lens, field of view, exposure and lighting based on the target defect size.
Calculate pixel scale
Estimate how many pixels represent the smallest defect. Detail falls as field of view grows at fixed resolution.
Test glare and motion on the actual line
Metal glare, vibration and product colour differ from bench conditions. Test lighting and exposure at line speed and retain samples.