SHARE:
In my experience, most machine vision failures are not caused by cameras or algorithms—they are
caused by lighting. Teams often focus on resolution, AI models, or software tools, but if the image does not clearly
separate “good” from “bad”, no system can reliably detect defects. Lighting is what creates that
separation.
From a practical engineering standpoint, machine vision lighting is not about brightness—it is
about contrast control. The goal is to design illumination so that the feature you want to detect becomes
obvious, while everything else becomes irrelevant. The trade-off is that no single lighting method works for all
applications. Backlighting excels at shape detection, dark field reveals surface defects, and dome lighting
solves reflection problems. In real projects, the best solution often combines multiple lighting strategies
based on material, surface condition, and defect type.
The most effective way to approach lighting is not to start with light types, but to start with the
inspection target. Once you define what needs to be detected, the lighting method becomes much clearer.
Every vision system depends on contrast. If the feature of interest does not stand out from the
background, detection becomes unreliable.
In practice, I always ask: what is the difference between a good part and a bad part, visually?
Lighting should amplify that difference.
Reflection is often the biggest challenge, especially with metal, plastic, or glossy surfaces.
If reflection is uncontrolled, it creates glare that hides defects or creates false signals.
Managing reflection is often more important than increasing brightness.
Lighting angle determines what features are visible.
Low-angle lighting highlights surface defects. Direct lighting emphasizes color and texture.
Backlighting isolates shape.
Understanding geometry is what separates basic setups from robust systems.

from www.edmundoptics.com
Backlighting places the light source behind the object, creating a high-contrast silhouette.
This is one of the most reliable methods for detecting shape, edges, and presence. In my
experience, whenever the inspection task is purely geometric—such as measuring dimensions or detecting missing
parts—backlighting is the first option I consider.
Bright field lighting illuminates the object directly from above or at an angle.
It works well for general surface inspection, color detection, and printed features. However, it is
sensitive to reflection, especially on glossy surfaces.
Dark field lighting uses low-angle illumination so that only scattered light from defects reaches
the camera.
This makes scratches, dents, and surface irregularities stand out clearly. In real projects, this
is one of the most effective techniques for defect detection on metal or polished surfaces.
Dome lighting surrounds the object with diffuse light, minimizing shadows and reflections.
It is especially useful for reflective or curved surfaces where direct lighting would create glare.
Structured lighting projects patterns (such as lines or grids) onto the object.
It is used for 3D measurement, height detection, and surface profiling. While more complex, it
provides information that standard 2D lighting cannot.

from: intelgic.com
The most effective way to select lighting is to start from the inspection goal.
Reflective materials require diffuse lighting to control glare. Dome lighting or indirect
illumination is usually the best starting point.
Transparent objects are difficult because they transmit light rather than reflect it.
Backlighting is often the most effective solution because it captures edges and contours clearly.
Textured surfaces require lighting that enhances contrast without exaggerating noise.
Bright field or angled lighting is typically used, depending on the inspection goal.
Surface defects are best detected with dark field lighting.
Low-angle illumination creates shadows and highlights that make defects visible.
|
Application
|
Recommended
Lighting |
Reason |
|
Shape / contour |
Backlight |
High contrast silhouette |
|
Reflective surface |
Dome |
Eliminates glare |
|
Surface defects |
Dark field |
Highlights irregularities |
|
General inspection |
Bright field |
Balanced illumination |
Lighting cannot be designed in isolation.
The camera determines resolution and sensitivity. The lens defines field of view and distortion.
Lighting defines what is visible.
In real systems, these three elements must be designed together. A good lighting setup can
compensate for limitations in the camera, but a poor lighting setup cannot be fixed with software.
What I often emphasize is this: if the raw image looks unclear to the human eye, it will not be
reliable for the vision system.

from: intelgic.com
Glare is one of the most common issues. It occurs when light reflects directly into the camera. The
solution is usually to change lighting angle or use diffuse lighting.
Shadows can hide important features. Adjusting light position or adding fill lighting can resolve
this.
Low contrast is another frequent problem. In these cases, the lighting type itself must be changed
rather than simply increasing intensity.
In practice, lighting design should always begin with real samples, not theoretical assumptions.
Testing different lighting angles and types is often the fastest way to identify the right solution.
Another important principle is stability. Lighting conditions must remain consistent over time.
Variations in ambient light, positioning, or intensity can affect inspection results.
In more advanced systems, multiple lighting methods may be combined. For example, backlighting for
shape and dark field for defects.
From my perspective, machine vision lighting is the foundation of any reliable inspection system.
Cameras and algorithms only work as well as the images they receive, and those images are defined by lighting.
If I were advising a manufacturer, I would start by clearly defining the inspection target, then
testing lighting methods based on that requirement. In many cases, the solution is not a single light, but a
combination designed to highlight different features.
That is how lighting moves from a basic setup to a true engineering solution.
It depends on the application. Backlighting is best for shape, while dark field is ideal for
surface defects.
Bright field illuminates directly, while dark field uses low angles to highlight defects.
Because it creates the contrast needed for detection.
Use diffuse lighting, adjust angles, or apply dome lighting.
Copyright © 2025 KH AUTOMATION PTE. LTD. All Rights Reserved KH GROUP