Article sections
How to choose industrial lighting: methods and examplesDefine the defect before choosing lightingHow do you choose a light pulse for a moving line?Which variables should remain constant during a lighting test?Frequently asked questionsHow to choose industrial lighting: methods and examples
In industrial image processing projects, lighting is often treated as an auxiliary camera accessory. Yet illuminating the same part from different angles changes the information carried by the image. A scratch that goes unnoticed with an ordinary ring light may become distinct under low-angle lighting; however, the same setup may then overemphasize dirt on the surface.
Good lighting is less about making the image attractive than separating the required feature from the background.
Which lighting method works for which defect?
The right starting question for industrial lighting selection is not 'how many watts of LED?' but 'why will this defect look different from the background?' Light strikes the surface at a particular angle; the surface's slope, roughness, coating, and reflective behavior change how much light returns to the camera. The same scratch can therefore be very distinct at one angle and almost invisible at another.
| Lighting | Typical application | Points to consider |
|---|---|---|
| Low-angle / dark-field | Scratches, protrusions, engraving, surface texture | Sensitive to defect orientation; testing from different angles may be needed |
| Reflected / bright-field | Matte surfaces, printing, and general appearance | Localized glare can occur on shiny surfaces |
| Diffuse dome | Shiny, curved parts with variable reflections | May suppress some fine raised features or scratches |
| Axial / coaxial | Uniform appearance on flat, reflective surfaces | Contrast may be lost as surface slope changes |
| Backlighting | Contours, outside diameter, holes, gaps, and silhouettes | Does not show top-surface texture |
| Bar or directional light | Localized contrast control on large surfaces | May create directional shadows and hotspots |
This comparison is a starting point; there is no automatic ranking of superiority among the methods. For example, dome lighting may simplify general inspection while hiding the surface scratch being sought. Comparing several lighting geometries on samples may therefore be more valuable than an initial camera upgrade. Technical comparison: KEYENCE lighting selection guide; Basler lighting guide.
First observe how the surface responds to light
Rough and matte surfaces can scatter light in many directions. On shiny metal, glass, or polished plastic surfaces, the direction of reflection can become much more dominant. Even a millimeter-scale change in surface inclination may suddenly make the camera see a dark or bright region.
Do not choose lighting based on a single static photograph. Rotate the part through small angles; raise and lower the light; place sound and defective samples side by side. Observe under which conditions the defect we are looking for stands out most consistently.
Bright-field, dark-field, backlight, and diffuse lighting methods
Bright-field lighting returns light from the surface in a way the camera can see. Flat regions may appear bright, while some scratches or depressions appear darker. Dark-field lighting directs light at a lower angle; while the normal surface reflects little light toward the camera, edges or surface irregularities may become visible.
Backlighting can show a part's outline, holes, or presence/absence with high contrast. However, it provides very little information about a fine scratch on the side facing the camera. Diffuse/dome lighting can reduce harsh reflections on shiny and curved surfaces, but may also lower the contrast of some defects. [7]
When choosing a solution, our only question should not be 'which image is brighter?' The real test should be which setup produces a more consistent, measurable difference between images of defective and sound parts.
Why should scratch direction and light direction be tested together?
Surface scratches do not always run in the same direction. Light from one direction may emphasize the reflection difference created by the scratch edges; at another lighting position parallel to the scratch, the same defect may become less distinct. This behavior depends on the surface's microscopic geometry. A 'good angle' found on a single sample may therefore not produce reliable results for every defect orientation.
For defects with variable orientation, consider lighting from different angles, activating multiple lights sequentially, or rotating the part for imaging. However, each additional image adds exposure time, data load, and integration complexity; the decision must account for the total cycle time.
How should a lighting experiment be documented?
Imaging the same defective sample under six lighting arrangements and choosing the best frame is not sufficient. For each arrangement, measure spurious contrast on sound parts, the saturation proportion, the signal in the darkest region, and defect visibility at different orientations. The following table is an example experiment plan:
| Arrangement | Feature to check | Potential risk |
|---|---|---|
| Single low-angle bar | Directional scratch contrast | Missing a defect oriented in another direction |
| Bars activated sequentially from two directions | Reduced orientation dependence | Two exposures and synchronization |
| Diffuse dome | Glare and overall uniformity | Flattening of scratch contrast |
| Coaxial | Brightness consistency on flat surfaces | Loss in sloped regions |
| Cross-polarization | Suppression of certain reflections | Light loss, limited effect on metal |
For each experiment, it is important to record the light angle, camera gain and exposure, aperture, working distance, and sample identity. This keeps the result from depending solely on visual preference; another engineer can reproduce the setup.
Light spread matters as much as its angle
A narrow-angle light can emphasize small surface changes. Broad, diffuse light can soften shadows and glare. However, overly diffuse light may also conceal a surface slope that needs to be detected. A part's geometry can cause the same light source to produce different results in different regions.
When building a prototype, record not only the lighting type but also its position, angle, distance from the part, diffuser, and power. A good prototype includes a reproducible setup description rather than a note saying 'the lighting looked good.'
How do you plan strobe lighting for short exposures?
When we shorten exposure to reduce motion blur on a conveyor, the sensor collects less light. Lighting power and the use of a strobe (short light pulse) can be decisive here. A correctly synchronized short light pulse can help freeze a moving part more sharply. However, pulse timing, duration, and the light source's thermal limits must be verified. [8]
Looking only at camera parameters is not enough. The instant the sensor detects the part, camera triggering, light activation, and image transfer must be evaluated on the same timeline. A shift of a few hundred microseconds can make a significant difference in fine-defect inspection.
How do you calculate the light pulse when using a strobe?
Short, high-power light pulses can be used to reduce motion blur. However, the camera exposure time and the light's actual pulse duration do not have to be the same. If ambient light is sufficiently suppressed and electronic timing is appropriate, the strobe can largely determine the time that contributes meaningfully to the image. In this case, the effective illumination window must be considered when evaluating the motion trail.
Example: 400 mm/s line speed and a 50 µs light pulse
0.020 mm ÷ 0.039 mm/pixel ≈ 0.51 pixels
This is only a motion-distance calculation. Sufficient photon collection during the pulse, strobe synchronization with the camera, and the LED driver's peak current and duty cycle limits must be verified separately. Applying a powerful pulse outside the manufacturer's limits may affect LED lifetime and safety.
When deciding to 'increase brightness' for a strobe, examine LED wavelength, the camera's QE curve, driver delay, pulse repeatability, and thermal management together. In particular, if ambient light remains continuously on, the remainder of the exposure can add an unwanted motion trail to the image.
How can ambient light be controlled?
A setup that works well in the laboratory may struggle in the factory in the afternoon. Overhead lighting switching on and off, sunlight changing with window position, welding light, reflective work clothing, or flickering LEDs inside the machine can affect the image.
Where possible, controlling illumination inside a protected enclosure, physically screening external light, and using fixed camera settings are very helpful. Variables you cannot control must be clearly identified and included in the test plan.
How can the lighting arrangement remain stable in production?
A good image obtained on the first day may differ from one obtained six months later. Light output may change with temperature and aging; the diffuser may become dirty; protective glass may become scratched; LED driver settings may be altered. Mechanical vibration in front of the camera may also shift the lighting angle.
An appropriate optical design must therefore make lighting settings traceable not only on the drawing but also in production. Periodic brightness and contrast measurements using a reference surface or control sample make it easier to distinguish image processing errors from physical changes. No single maintenance interval is correct for every facility; it is determined by environmental conditions and the rate of change.
Define the defect before choosing lighting
For surface inspection, 'more light' is usually an incomplete requirement. Is the feature we seek an edge, a surface scratch, a raised feature, printing, or a difference within a translucent material? As the answer changes, so does the appropriate lighting geometry. The decision should start with an arrangement that makes the defect reflect light differently from sound material. Therefore, describe not the light first, but the physical feature that must be distinguished.
| Inspection target | Lighting to try as a starting point | Expected effect / point to consider |
|---|---|---|
| Outer contour, hole, position | Backlighting | High-contrast silhouette; light angle matters in precision measurement. |
| Fine scratches and raised features | Low-angle dark-field | Light scattered by the defect becomes visible; results may change with scratch orientation. |
| Shiny, curved metal surface | Diffuse dome | May soften bright spots; may reduce the contrast of small surface marks. |
| Flat, shiny part | Coaxial | Flat regions may be evenly illuminated; orientation and reflection are critical. |
| Printing and labels | Diffuse front lighting | May reduce reflections and keep text contrast stable. |
How should you test a light source's geometry?
Place the part in a fixed fixture. Fix camera gain, exposure, and focus. Image the same good and defective parts while changing light angle, distance, and direction one at a time. Record not just a single good photograph, but the lowest defect contrast obtained at each position. This also reveals how resilient the setup is to small changes.
How do you choose a light pulse for a moving line?
The maximum permitted effective illumination time must be 0.04 / 400 = 0.0001 s = 100 µs. A 50 µs light pulse theoretically corresponds to a 0.02 mm motion trail. In practice, however, full coverage of the light pulse by the exposure, the LED driver's peak current limits, and triggering delays must also be checked.
Why do hotspots occur on shiny surfaces?
On metal and coated surfaces, direct reflection returning to the camera may saturate only a narrow part of the sensor. In that region, all defect information may be lost. The solution is not merely to reduce exposure: changing the light or camera angle, diffusing the light, testing suitable polarization, and controlling ambient light should be considered together.
How do you keep lighting consistent throughout production?
Power supply stability, LED temperature, diffuser contamination, cable connections, and housing vibration affect the measurement result. Lighting controller parameters should be versioned, and the setup checked periodically with a reference part. The monitoring screen should track not only mean image brightness but also defect contrast and the proportion of saturated pixels.
Which variables should remain constant during a lighting test?
When comparing two light sources, camera gain, exposure, white balance, and field of view must remain fixed. Increasing light power in one trial and extending exposure in another makes the methods harder to compare. When changing light position, evaluating the resulting images with the same part, placement, and decision algorithm gives a fairer comparison.
If a defect is highly visible in one trial but every small mark on the sound surface also looks like a defect, the false reject rate may rise. You must therefore evaluate variation in good products as well as defect contrast. Good lighting should distinguish defective parts without making sound parts appear unnecessarily variable.
Frequently asked questions
What lighting can be used for scratches on metal surfaces?
Low-angle dark-field and directional lighting can be tried initially; results may vary with scratch orientation and surface reflectivity.
Is dome lighting always better?
No. While providing a uniform image, it may reduce the contrast of some small surface defects.
Why use a strobe on a moving line?
A short effective illumination time can reduce the trail caused by motion; triggering and driver limits must be considered.
Technical references
The text contains explanations supported by technical references and numerical examples for teaching purposes. The system values in the examples are not measurement results from an actual facility.