Qaurvex Labs Request a pilot

Engineering notes

A field guide to inspection lighting

Bright field, dark field, dome, coaxial and backlight: which light makes which defect visible, and why lighting decides most inspection projects.

· 5 min read · [Developer name]

Most failed vision projects fail at the light, not the model. If the defect does not produce a contrast in the image, no network can find it reliably. If the background produces contrast that looks like a defect, the network will flag good parts. Machine-vision textbooks have said this for decades (Batchelor, 2012; Steger et al., 2018), and it is still the first thing we check on a new line.

Start from the defect, not the part

Ask how the defect changes the light that reaches the camera. A scratch changes the angle of the surface, so it reflects light in a different direction. A stain changes colour or absorption. A missing component changes the silhouette. A short shot in a moulded part changes the outline. Each of these calls for a different lighting geometry.

Bright field

A ring or bar light near the camera axis sends light that reflects straight back into the lens from flat surfaces. Flat areas look bright; anything that tilts the surface looks dark. Bright field suits printed marks, labels and colour differences on matte parts. On polished metal it produces glare that hides more than it shows.

Dark field

A low-angle ring light, often at 10 to 30 degrees from the surface, sends light across the part. Flat, polished areas reflect it away from the camera and look dark. Scratches, digs, embossing and edges catch the light and scatter some of it into the lens, so they glow on a dark background. For machined flanges and turned parts, low-angle dark field is usually the first light we try.

Diffuse dome

A dome lights the part from every direction at once, like an overcast sky. Shiny, curved or uneven parts lose their hot spots, and what remains is colour and texture. Domes suit castings, foil packs and moulded parts with complex shapes, where any single direction would cast shadows.

Coaxial

A beam splitter sends light along the camera's own axis. Flat, reflective surfaces appear bright and uniform; anything not perpendicular to the axis, such as a dent or a scratch, appears dark. Coaxial light is useful on flat polished surfaces, wafers and engraved marks.

Backlight

Placing the light behind the part gives a black silhouette on white. It is the most robust way to measure outlines, find burrs and flash on edges, count holes, or check that every blister pocket contains a tablet. With a telecentric lens, a backlight gives silhouettes accurate enough for millimetre gauging.

Wavelength and polarisation

Colour matters even with a monochrome camera. Red light passes through some coloured plastics and reveals what is behind them; blue light shows fine surface texture better because it scatters more. Matching the light's colour to a part's colour makes that colour look bright; the complementary colour makes it look dark. Crossed polarisers on light and lens remove glare from foil and glossy coatings (Martin, Advanced Illumination).

Strobe, and shut out the room

Strobing the light for 100 to 200 microseconds, synchronised with the camera, freezes the moving part and lets the light run brighter than it could continuously. Bright strobes also overwhelm the factory's own lighting. A simple shroud around the station removes the rest: sunlight through a window at four in the afternoon is a classic cause of false rejects.

How we test

On a site visit we bring a kit of lights and try each geometry on good and bad parts, side by side, before choosing a camera or training anything. The best light is the one where a person can see the defect at a glance in the raw image. If a person cannot, the model will struggle too.

References

  1. B. G. Batchelor (ed.). Machine Vision Handbook. Springer, 2012.
  2. C. Steger, M. Ulrich, C. Wiedemann. Machine Vision Algorithms and Applications, 2nd edition. Wiley-VCH, 2018.
  3. D. Martin. A Practical Guide to Machine Vision Lighting. Advanced Illumination, white paper.
  4. E. R. Davies. Computer Vision: Principles, Algorithms, Applications, Learning, 5th edition. Academic Press, 2017.

Run a four-week pilot on one station

Send us 50 good parts and 10 known-bad parts. We set up a station on your line, measure escape and false-reject rates against your QC team, and give you the numbers.