| 1 | Define the defect before selecting the light | Classify the feature as a surface defect, edge, hole, printed mark, height variation, or color/contrast difference. | One primary image characteristic per inspection station. | Create a defect matrix containing at least 30 good samples and 30 representative defect samples. | Prevents unsuitable lighting geometry and reduces false rejects. |
| 2 | Optimize the signal-to-noise ratio | Adjust light angle, intensity, exposure, gain, and background so the defect signal is clearly separated from image noise. | SNR ≥ 10:1, calculated as defect signal amplitude divided by the standard deviation of background noise. | Capture repeated images of a static sample; compare the mean defect-to-background difference with background standard deviation. | Improves detection reliability and supports stable threshold settings. |
| 3 | Use diffuse lighting for uneven or reflective surfaces | Use a dome, hemispherical, or diffused panel light to reduce glare and hot spots on curved, polished, or metallic parts. | Keep pixel intensity variation across the inspection area within approximately ±10% when uniformity is required. | Measure grayscale values at the center and four corners of a uniform reference sample. | Produces more consistent images and reduces reflections caused by small part-position changes. |
| 4 | Choose low-angle dark-field lighting for scratches and raised defects | Position a narrow-beam light at a shallow angle, commonly between 10° and 30° from the inspected surface. | Make the target scratch, burr, or raised edge at least 10 gray levels above local background after exposure adjustment. | Compare defect contrast under several incidence angles using identical camera settings. | Highlights small surface changes while suppressing broad, flat areas. |
| 5 | Use backlighting for silhouettes and dimensional checks | Place a collimated or diffuse light behind the part to create a high-contrast outline. | Target an edge contrast of at least 20% of the camera's available grayscale range. | Measure edge position repeatability across 30 or more repeated captures. | Simplifies measurement of outer diameter, holes, gaps, profiles, and missing features. |
| 6 | Control exposure before increasing gain | Increase light output or exposure time first; use analog or digital gain only when necessary. | Keep important pixels away from saturation and maintain a stable histogram, typically below 95% of full scale. | Review histogram clipping and compare repeated-image standard deviation at different gain levels. | Limits amplified noise and preserves usable gray-level information. |
| 7 | Freeze motion when inspecting moving parts | Use a triggered strobe or short exposure synchronized with the conveyor or robot position. | Set exposure time so image movement is less than one pixel at the inspected feature. | At the maximum line speed, inspect edge sharpness and calculate displacement during exposure. | Reduces motion blur and improves dimensional measurement accuracy. |
| 8 | Use optical filters to remove unwanted wavelengths | Match the filter to the inspection wavelength; use a polarizer pair for glare-sensitive surfaces when polarization is suitable. | Reduce distracting background or glare intensity by at least 50% without losing the defect signal. | Compare defect contrast and background variation with the filter installed and removed. | Improves contrast in the presence of ambient light, colored backgrounds, or specular reflections. |
| 9 | Shield the inspection area from ambient light | Install a matte enclosure, light tunnel, or physical baffle around the camera and light source. | Keep ambient-light contribution below 10% of the controlled inspection signal. | Capture images with the inspection light on and off under day, night, and maintenance lighting conditions. | Protects image thresholds from changes in factory lighting and operating shifts. |
| 10 | Validate performance across production variation | Test multiple lots, part colors, surface finishes, positions, speeds, and temperatures before final approval. | Use at least 100 good parts and all known defect types, with acceptance limits defined before testing. | Record false-accept, false-reject, repeatability, and measurement results for each operating condition. | Demonstrates that the lighting design is robust for global production environments. |