Machine Vision Lighting for Automated Visual Inspection

Automated visual inspection depends on more than the camera and image-processing software. The lighting determines which defects, edges, markings and surface variations are visible in the captured image.

The right machine vision lighting creates controlled contrast between the feature being inspected and its surroundings. Depending on the application, this can mean changing the illumination angle, selecting a different lighting geometry or using a specific wavelength such as white, blue or infrared.

Improving contrast with the right lighting setup is often more reliable than trying to recover a weak feature later through image processing.

This guide explains how to select lighting for automated visual inspection, including surface defect detection, component inspection, printed feature inspection and dimensional measurement.

Machine Vision Lighting for Automated Visual Inspection

Why is Lighting Important in Automated Visual Inspection?

Lighting is one of the main factors determining whether an automated visual inspection system can detect a feature consistently.

A camera can only analyse the information present in the image. If a scratch blends into the surrounding surface, a printed character lacks contrast or a reflective component produces strong glare, image processing alone may not solve the problem.

Machine vision lighting is used to control how the object appears to the camera. Depending on the setup, the same component can look very different under different illumination conditions.

The right lighting can:

  • increase contrast between a defect and the surrounding material;
  • highlight scratches, edges or surface irregularities;
  • reduce unwanted reflections;
  • create more uniform illumination;
  • separate printed features from the background;
  • improve consistency between captured images.

The objective is not always to produce the most natural-looking image. The goal is to make the inspection feature as clear and repeatable as possible.

What Else Should You Consider When Selecting Machine Vision Lighting?

Choosing the right lighting type is only one part of the inspection setup. Contrast, camera sensitivity, working distance and the physical installation also influence the final image quality.

Key factors to consider include:

  • Contrast: the feature being inspected should be clearly separated from the surrounding material or background.
  • Camera sensitivity: the camera sensor should have sufficient response at the selected wavelength.
  • Working distance and beam angle: these determine how much of the inspection area is covered and how concentrated the light is.
  • Mounting position and available space: the mechanical layout affects which lighting geometries are practical.

These factors should be evaluated together rather than treating the light as an isolated component.

What Can Automated Visual Inspection Defect?

Automated visual inspection can be used to identify visible differences between an expected product condition and the image captured by a machine vision camera.

Typical inspection tasks include:

  • scratches and surface damage;
  • dents and deformation;
  • contamination;
  • missing components;
  • assembly errors;
  • product presence or absence;
  • printed characters and markings;
  • edges and dimensional features;
  • incorrect positioning;
  • surface irregularities.

The correct illumination method depends on what needs to become visible.

A flat reflective surface, for example, can require a very different lighting setup from a larger object being inspected across a wide field of view.

How Does Machine Vision Lighting Improve Surface Defect Detection

Machine vision lighting improves surface defect detection by creating a clear image difference between the normal surface and the defect being inspected.


Scratches, dents and texture variations reflect light differently from an undamaged surface. Changing the lighting angle can therefore make these features easier to detect.


For general surface inspection, a directional spot light is a flexible starting point.


The VA-SL-90x80-W white industrial LED spot is suitable for applications including surface defect inspection, printed character inspection, PCB component inspection and object recognition.


Its interchangeable 30°, 60° and 90° optics allow the beam to be adapted to different working distances and fields of view.


View VA-SL-90x80-W

Adjusting the Light Angle for Reflective Surfaces

Reflective objects require more careful positioning because direct reflections can saturate parts of the image and hide the inspection feature.

In these cases, the illumination angle can be adjusted so that unwanted reflections are directed away from the camera.

This is why lighting should always be evaluated using the actual material whenever possible.

Which Light Color is Best for Machine Vision Inspection?

The best light colour for machine vision inspection depends on the material, surface, camera sensitivity and feature that needs to be detected.

White light is a practical starting point for many inspection tasks, but a specific wavelength can sometimes create stronger contrast.

White Lighting for General Visual Inspection

White machine vision lighting is suitable when visible contrast already provides enough separation between the feature and the surrounding area.

Typical applications include:

  • general surface inspection;
  • component presence;
  • assembly verification;
  • printed feature inspection;
  • object recognition.

The VA-SL white spot light provides a flexible option where beam angle and working distance need to be adapted to the application.

Blue Lighting for Increased Contrast

Blue illumination can be useful when shorter visible wavelengths create better separation between certain materials or surface features.


The VA-SL-90x80-B470 blue LED spot provides a dedicated blue-light option within the same spot-light format.


The important question is not simply which colour the object is. The selected wavelength should create stronger contrast around the feature being inspected.


View VA-SL-90x80-B470

Infrared Lighting for Difficult Inspection Tasks

Infrared illumination can be useful when visible light does not create enough separation between materials or features.


The VA-SL infrared spot light provides an option for applications where IR illumination is preferred.


The camera and lens must also support the selected wavelength, so lighting, sensor sensitivity and optics should be evaluated together.


View VA-SL IR Spot Light

How Do You Choose the Best Wavelength for Defect Detection?

The best wavelength for defect detection is determined by testing the actual object and comparing how the inspection feature appears under different illumination.

Material behaviour is not always obvious from visible appearance alone. A wavelength that produces only limited contrast to the human eye may create a much clearer difference in the camera image.

Wavelength selection should also consider the spectral sensitivity of the camera sensor. A wavelength may create strong material contrast, but if the camera has limited sensitivity in that range, the resulting image may still be weak or noisy.

For feasibility testing, the VA-SL-90x80-MW Multi Wave Spot Light allows different wavelengths to be evaluated using one test light.

Depending on the version, wavelengths are available across UV, visible, NIR and SWIR ranges.

A practical wavelength testing process:

1
Define the defect or feature that needs to be detected.
2
Capture a reference image using white illumination.
3
Test alternative visible wavelengths.
4
Evaluate NIR, UV or SWIR where relevant.
5
Compare contrast around the inspection feature.
6
Check whether the camera and lens provide sufficient response at the selected wavelength.
7
Validate the result using both good and defective samples.

The purpose is to identify which wavelength creates the most reliable separation before selecting production lighting.

View VA-SL-90x80-MW
VA-SL-90x80-MW Multi Wave Spot Light for machine vision wavelength testing

Multi-wavelength illumination for feasibility testing across UV, visible, NIR and SWIR ranges.

When Should You Use Ring Lighting for Machine Vision Inspection?

Ring lighting is useful when the inspection requires illumination around the camera's viewing direction.

Because the LEDs are arranged around the imaging axis, a ring light can provide more even illumination across compact components.

The VA-RLVA-110-70-W diffused ring light uses white illumination with diffusion and is available with a polarizer.

Typical applications include:

  • small component inspection;
  • printed feature inspection;
  • surface inspection;
  • positioning and recognition;
  • applications where strong one-sided shadows are undesirable.

For reflective surfaces, the mounting angle and reflection behaviour still need to be considered.

When Should You Use Coaxial Lighting for Surface Inspection?

Coaxial lighting is useful for inspecting flat surfaces and features where the illumination needs to follow the camera's optical direction.

Instead of illuminating the object from the side, coaxial illumination introduces light along the imaging axis.

The VA-SLC-8MM-W-24V-HP coaxial LED spot is designed for use with telecentric lenses with an 8 mm coaxial input.

Typical applications include:

  • surface inspection;
  • feature recognition;
  • dimensional measurement;
  • flat component inspection;
  • telecentric imaging systems.

This makes coaxial illumination especially relevant where measurement and inspection are performed in the same imaging setup.

When Should You Use Bar Lighting for Automated Inspection?

Bar lighting is useful when the inspection area is too large for a compact spot or ring light.

Long bar lights can provide controlled illumination across conveyors, larger objects and wider machine vision fields of view.

The VA-BLL high-brightness industrial bar light series is available in 500, 1000, 1500, 2000 and 2500 mm lengths.

Typical applications include:

  • conveyor inspection;
  • parcel and logistics inspection;
  • barcode reading tunnels;
  • object detection;
  • robotic pick-and-place;
  • large surface inspection.

Large-area inspection involves additional lighting considerations, so this topic can be covered separately in a dedicated guide to machine vision lighting for conveyor and large-area inspection.

Spot vs Ring vs Coaxial vs Bar Lighting

The correct machine vision lighting geometry depends on the object, field of view and feature that needs to be detected.

Inspection requirement Lighting approach
General surface inspection Spot light
Larger working distance Spot light
Small components Ring light
Reduced directional shadows Diffused ring light
Flat surface inspection Coaxial light
Telecentric measurement Coaxial light
Large inspection area Bar light
Conveyor inspection Bar light
Wavelength testing Multi-wavelength spot

This table should be used as a starting point. Surface shape, reflectivity, working distance and camera position can all affect the optimum setup.

White vs Blue vs Infrared Machine Vision Lighting

Wavelength selection adds another level of control to an automated inspection system.

Wavelength Typical role
White General-purpose visible inspection
Blue Increasing contrast for selected visible features
Infrared Creating contrast beyond normal visible appearance
Multi-wavelength Comparing different wavelengths during development
UV / NIR / SWIR Specialised testing where material response requires another spectral range

The selected wavelength should be based on the resulting camera image rather than object colour alone.

How to Choose Machine Vision Lighting for Automated Visual Inspection

Choosing machine vision lighting for automated visual inspection starts with the inspection requirement and works backwards toward the illumination geometry and wavelength.

1. Define What Needs to Be Detected

Be specific about the inspection target.

Instead of simply defining the task as “inspect the component,” determine whether the system needs to detect a scratch, missing part, print error, edge, dimensional feature or surface variation.

2. Evaluate the Material and Surface

Determine whether the object is matte, reflective, textured, flat, curved or made from several materials.

Surface behaviour strongly affects the required lighting direction.

3. Determine the Field of View

The illuminated area must match the area captured by the camera.

Compact inspection areas may suit ring or coaxial lighting, while larger areas can require spot or bar lighting.

4. Choose the Lighting Geometry

Use the inspection requirement as the starting point:

  • Spot → flexible directional illumination
  • Ring → more even illumination around the camera
  • Coaxial → flat surfaces and precision imaging
  • Bar → wide or large-area illumination

5. Evaluate the Wavelength

Start with white light where appropriate and compare other wavelengths if the inspection feature does not produce enough contrast.

Multi-wavelength testing can help identify which part of the spectrum provides the clearest separation.

6. Check Camera and Lens Compatibility

Confirm that the camera sensor and lens can effectively capture the selected wavelength. Sensor sensitivity and lens transmission can vary significantly between visible, infrared and other spectral ranges. 

7. Test the Complete Imaging Setup

Lighting should be tested together with the intended camera, lens, working distance and actual samples.

Testing both acceptable and defective samples helps confirm whether the setup provides enough separation under realistic conditions.

Need Help Selecting the Right Machine Vision Lighting?

Share your inspection requirements with our team, including the object, defect or feature, field of view and working distance.

We can help determine which lighting geometry and wavelength are most suitable for your application.

Discuss Your Application

Machine Vision Lighting for Automated Inspection

Machine vision lighting should be selected according to the feature that needs to become visible in the image.

Spot lights provide flexible directional illumination, ring lights support compact inspections, coaxial lights are useful for flat-surface and telecentric applications, and bar lights extend illumination across larger areas.

Wavelength selection can further improve contrast where white light is not sufficient.

Explore the complete range of machine vision lighting for industrial imaging and automated inspection applications.

Frequently Asked Questions

The best lighting depends on the feature, surface, field of view and working distance. Spot, ring, coaxial and bar lighting each create different illumination conditions.

The best lighting is the setup that creates the clearest repeatable contrast between the defect and the surrounding surface. Directional spot lighting is often a useful starting point.

Lighting determines how the object and inspection features appear to the camera. Controlled illumination can increase contrast, reduce unwanted reflections and improve image consistency.

Blue light can be considered when a shorter visible wavelength produces better contrast for the feature being inspected.

Infrared lighting can be useful when visible illumination does not create enough separation between features or materials.

Coaxial lighting is used when illumination needs to follow the imaging axis, especially for flat surfaces, feature recognition and dimensional measurement.

A spot light provides directional illumination from one position, while a ring light surrounds the camera's viewing direction and can provide more even illumination around compact objects.

The best wavelength is selected by comparing how the inspection feature appears under different wavelengths and choosing the one that creates the strongest repeatable contrast.