Why lighting matters more than the camera
A vision system can only judge what appears in the image. If a scratch, a missing hole or a misprinted code does not show clear contrast against its background, no camera resolution or software tool will find it reliably. Lighting creates that contrast.
The goal is not to make the part look good to a person. It is to make the feature you care about stand out and suppress everything else. That usually means choosing the light by the feature, the surface finish and the geometry, then choosing the camera and lens to match.
Lighting is also the cheapest part of the system to get right early and the most expensive to fix late. A station designed around the wrong light may need a new mount, a new enclosure and new tooling to correct, so test lighting on real parts before the mechanical design is finished.
Backlight
A backlight sits behind the part and shines toward the camera. The part appears as a dark silhouette on a bright field. This gives very high-contrast edges for measuring outlines, checking for holes and gauging dimensions.
Backlights show shape, not surface. They will not reveal a scratch or a color difference. For precise measurement, a collimated or telecentric setup reduces edge blur from light wrapping around the part.
Backlighting works well for flat parts, gaskets, stampings and anything that can be presented over a lit surface. It is harder on a conveyor where the part sits on an opaque belt, so the handling method may need to change to make room for it.
Ring lights and bright field
A ring light mounts around the lens and lights the part from close to the camera axis. It is simple and works well on matte surfaces for general presence checks, reading labels and locating features.
On shiny or curved parts, a ring light produces bright reflections that hide detail. If you see hot spots in the image, the light is reflecting directly into the lens. Changing the angle, adding a diffuser or moving to a dome usually helps.
Bar lights and spotlights mounted at an angle are close relatives. Two or four bar lights around the part give more control over direction and are easy to adjust during testing.
Dome and diffuse lighting
A dome light floods the part with even light from many directions, which suppresses glare and texture. It is a common choice for shiny, curved or crinkled surfaces such as foil, polished metal, molded plastics and packaging.
Diffuse on-axis lighting is a related option for flat reflective surfaces. It sends light down the camera axis through a beam splitter, so flat areas appear bright and scratches, dents or etched marks appear dark.
Low-angle and dark-field lighting
Low-angle lighting, often called dark-field lighting, shines across the surface at a shallow angle. Flat areas reflect the light away from the camera and appear dark. Raised or recessed features, scratches, embossing and particles catch the light and appear bright.
This is a strong choice for surface defects, engraved or stamped characters and edge chips. It is sensitive to part height and tilt, so the part must be presented consistently.
Direction matters. A scratch running parallel to the light may be nearly invisible, while the same scratch across the light stands out. Lights from several directions, or several images taken with different lights switched on, help when defects can run in any direction.
Structured light and 3D
Structured light projects a known pattern, such as a line or a grid, onto the part. A camera views the pattern from an angle, and the distortion reveals height. Laser line profilers and pattern-projection 3D sensors work on this principle.
Use 3D when the defect or position is a matter of height or shape: bead profiles, warping, gaps and flush, missing components on a populated assembly, or the orientation of parts in a bin for robot picking. Very dark, shiny or transparent surfaces can be difficult for 3D sensors, so test with real parts.
Combining 2D and 3D is common: a 3D sensor confirms height or position, and a 2D camera with suitable lighting checks surface features and reads codes.
Color, wavelength and filters
The color of the light changes how features appear. A red feature looks bright under red light and dark under blue or green. Choosing the light wavelength to maximize contrast between the feature and the background is one of the simplest ways to improve an image.
- Monochrome cameras with colored light often give better contrast than color cameras
- Infrared light can see through some inks and reduce variation from surface color
- Ultraviolet light makes fluorescent inks, adhesives and coatings visible
- Bandpass filters on the lens block ambient light at other wavelengths
- Polarizers reduce glare on some glossy surfaces
Enclosures and ambient light
Overhead lights, sunlight through a dock door and a nearby welding arc all change the image. A shroud or enclosure around the inspection point keeps ambient light out and keeps the scene stable from shift to shift. Strobing the light at high intensity for a short exposure also reduces the influence of ambient light and freezes motion on moving lines.
Plan for maintenance too. Lights dim with age, lenses collect dust and coolant mist, and mounts get bumped. Rigid mounts, protective windows and a periodic check against a reference part keep results consistent.
Do not forget safety and comfort. Bright strobes and some wavelengths can be uncomfortable or hazardous to people nearby, which is another reason to enclose the inspection point.
Ready to start
The fastest way to choose lighting is to test it on real parts, which is why we recommend a feasibility test before quoting a vision inspection project. See also vision inspection vs manual inspection and our AI vision page. Send samples of good parts and each defect type through the quote form, and we will run a lighting study.

