The Complete Guide to Machine Vision Illumination Techniques

Lighting is the highest-leverage decision in a machine vision system and the one most often rushed. This guide walks through the eight techniques and light types we reach for most, bright field, dark field, backlighting, coaxial, ring, bar, dome and structured light, what each one does and when to use it.

Ask an experienced vision engineer what makes a system work and lighting comes up before cameras, lenses or software. The reason is simple. Lighting is what creates the contrast your system depends on. Get the feature you care about to stand out from everything around it and the rest of the job becomes straightforward. Fail to do that and you spend the rest of the project fighting the software to recover detail that better lighting would have handed you for free.

There is no single best light. The right answer comes from the part, the feature and the surface it sits on. The eight approaches below are the core toolkit. Most real inspections combine two or three of them. For each one, here is how it works, what it is best for and what to watch out for.

Bright field

Bright field is the default, the one most people picture first. Light is aimed at the part from the front, usually at a fairly steep angle. A flat surface reflects it back toward the camera and reads bright. Anything that disturbs the surface, a scratch, an edge, a dent, scatters light away and shows up dark against the bright background. It is quick to set up and suits a wide range of general inspection. The watch-out is specular glare. On a shiny or curved surface, bright field can throw hotspots that blow out detail, which is where diffuse or coaxial light earns its place.

Bright field. Front light returns from a flat surface so it reads bright. A defect scatters light away and reads dark.
Steel hinge under bright field lighting, with a scratch showing as a dark line on the bright metal
Example. A scratch on a steel hinge shows dark against the bright, flat metal.

Best for General surface and print inspection on reasonably flat, matte parts.

Watch out Hotspots and glare on shiny or curved surfaces.

Dark field

Dark field is bright field turned on its head. The light comes in from a low, grazing angle, almost parallel to the surface. A flat area reflects it away from the camera and stays dark. Only features that stand up or cut into the surface, engraving, embossing, edges, surface scratches, catch the light and scatter it back into the lens. They appear bright against a near-black background. It is the go-to for reading engraved or embossed marks and for finding the surface defects a flat front light washes out.

Dark field. Grazing light reflects away from the camera. Only raised or cut features scatter light back.
Metal card bracket under dark field lighting, with embossed lettering and holes bright against a black background
Example. Grazing light picks out the embossed lettering on a metal bracket.

Best for Engraved, embossed and laser-marked codes, scratches, edges and surface texture.

Watch out Needs the feature to have relief, with little use on flat, featureless surfaces. Curved surfaces are also more complex.

Backlighting

Backlighting puts the light behind the part with the camera in front. The part blocks the light and appears as a crisp dark silhouette on a bright background. It throws away all surface detail and gives you the one thing silhouettes do better than anything, clean high-contrast outlines. That makes it the first choice for dimensional measurement and gauging. It is equally strong for outline and shape, for holes and gaps and for simple presence checks. In particularly high-precision metrology systems, a collimated backlight can give even better results.

Backlighting. The part blocks the light and reads as a dark silhouette on a bright background.
Terminal block in dark silhouette on a bright backlight, showing a sharp outline
Example. A terminal block in silhouette, with a crisp outline ready for measurement.

Best for Measurement and gauging, outlines and shape, holes, gaps and presence checks.

Watch out Shows the outline only, with no surface or top-face detail.

Coaxial, on-axis

Coaxial light uses a beam splitter to send light straight down the optical axis of the lens. It strikes a flat surface head on and reflects straight back. Because the light is perpendicular, it lights flat specular surfaces evenly with none of the hotspots a ring or bar would create. Features that sit at any other angle go dark. It is made for flat, mirror-like parts, wafers, circuit boards, polished or plated metal and glass, where you need even illumination and want etched or engraved marks to stand out.

Coaxial. A beam splitter sends light down the lens axis onto a flat surface and straight back.
Three coins under coaxial light, their flat faces lit evenly so the embossed detail stands out
Example. Coins under coaxial light, the flat metal lit evenly with no hotspot.

Best for Flat specular parts, wafers, circuit boards, polished or plated metal, etched marks.

Watch out Flat parts only. Any height or tilt reflects away and reads dark.

Ring light

A ring of LEDs that mounts around the lens and lights the part from the front, roughly along the camera axis. It is the most common light in machine vision for good reason. It is compact, simple and even enough for a great many jobs on reasonably flat parts close to the camera. The watch-out is the same shiny-surface problem as bright field. A ring can leave a distinctive circular reflection. When glare is the enemy, a diffused or dome light is the better answer.

Ring light. Even frontal light close to the lens axis, mounted around it.
Clearview coffee label under a ring light, evenly lit from the front
Example. A Clearview label and barcode lit evenly from the front by a ring light.

Best for General-purpose frontal lighting, reasonably flat parts near the lens, quick set-ups.

Watch out Ring-shaped reflections and glare on shiny surfaces.

Bar light

A bar is a straight line of LEDs. Its strength is flexibility. Angle one in low for a dark field effect, aim it square for even front light, or pair two or four around the part to balance shadows. Bars scale to large fields of view. They are the standard choice for line scan, where a bright, even line of light is exactly what the single row of sensor pixels needs.

Bar light. Directional light, angled to taste and often paired. The standard choice for line scan.
Barcode label on a cardboard carton, lit by a bar light
Example. A bar light lighting a barcode label on a carton.

Best for Large areas, adjustable-angle lighting, paired arrays and line scan.

Watch out A single bar lights unevenly and usually wants pairing or careful angling.

Dome

A dome light, sometimes called a cloudy day illuminator, bounces LED light off the inside of a hemisphere so it reaches the part softly from every direction at once. That near-shadowless, glare-free wash is the answer to the hardest surfaces in vision, shiny, curved, uneven or crinkled, where any direct light would hotspot. Think of reading a code off a curved foil pack or a dented can.

Dome. Light bounces off the inside of a hemisphere to reach the part from every direction.
Shiny can lid under a dome light, the printed date code readable with no glare
Example. The date code on a shiny can lid, read cleanly with no glare.

Best for Shiny, curved, uneven or reflective surfaces, plus codes on cans, foils and domed caps.

Watch out Bulky and needs space over the part. Lower intensity than direct light, which can limit line speed.

Structured light

The others light a part so a 2D camera can see it better. Structured light does a different job. It measures shape. A projector casts a known pattern, often a laser line or a set of fringes, onto the part. A camera viewing from a different angle sees that pattern deform over the surface. From the deformation the system reconstructs height and a 3D profile. It is the basis of a lot of 3D inspection, from checking weld beads and glue lines to measuring flatness, volume and warpage.

Structured light. A projected pattern deforms over the part and the camera above it reads the height.
Clearview coffee label with a printed barcode
Example. A Clearview label with a printed barcode.

Best for 3D height and profile, flatness, volume and weld or bead inspection.

Watch out For some 3D jobs time of flight or stereo vision suit better. Very shiny or dark surfaces also challenge the pattern.

When to use each at a glance

TechniqueBest forWatch out
Bright fieldGeneral surface and print inspection on reasonably flat, matte partsGlare and hotspots on shiny or curved surfaces
Dark fieldEngraved, embossed and laser-marked codes, scratches and edgesNeeds surface relief, little use on flat features. Curved surfaces are more complex
BacklightingMeasurement, gauging, outlines, holes and gapsOutline only, no surface detail
CoaxialFlat specular parts, wafers, boards, polished metal, etched marksFlat parts only, any tilt reads dark
Ring lightGeneral frontal lighting, reasonably flat parts near the lensRing reflections and glare on shiny surfaces
Bar lightLarge areas, adjustable angle, pairs and arrays, line scanA single bar lights unevenly, usually wants pairing
DomeShiny, curved or uneven surfaces, codes on cans and foilsBulky, lower intensity, needs space over the part
Structured light3D height and profile, flatness, volume, weld and beadTime of flight or stereo can suit better, shiny surfaces challenge it

How to choose and combine

Most real applications do not use one light. They layer two or three, a backlight for the outline and a front light for the face, or a dome to kill glare with a dark field bar to lift a mark. The choice falls out of the part and the feature, the surface finish, whether you are measuring a shape or reading a mark, the geometry, the working distance and the line speed. The wavelength to use is also worth considering, as different features may show up better or worse under different colours of light.

The fastest route is to start from the feature you need to see and the surface it sits on, then test on your own parts. Our illumination selector tool walks you through a handful of questions and points you at the families worth trying. Our applications engineers are happy to help you prove it. If you want the wider case for taking lighting this seriously, our note on why machine vision lighting is so often wrong goes further.

Explore our illumination range and try the selector tool

Start from your part and your feature. The illumination selector asks a handful of questions and points you at the lighting families worth testing. Browse the full range or talk to our engineers when you want a second opinion.