Ebook: Understanding the Shop Floor — now on Gumroad
Industrial technology, indexed.
Industrial automation · manufacturing · OT — updated 2026-09-23

Machine vision lighting and lenses: the variables that decide inspection

A factory-floor guide to field of view, working distance, contrast, light geometry, exposure, and the validation discipline behind reliable vision.

Many machine-vision projects start with a camera specification and fail because the image never makes the defect visible. Resolution and a clever model cannot recover contrast that lighting erased, motion blur that exposure introduced, or variation that the fixture allowed. Treat optics and illumination as part of the inspection design.

Define the measurement

Write the pass/fail question in physical terms: presence, position, surface defect, character, dimension, color, or assembly relationship. Define the smallest feature that must be separated, the allowable error, the line speed, and the range of part presentation. These choices determine sensor resolution, field of view, lens distortion, and exposure time.

Working distance, focal length, and sensor size determine what the camera sees. A wide field of view may fit the whole part but leave too few pixels on the defect. A narrow lens may resolve the feature but become sensitive to part placement. Fixing the object mechanically is often more robust than adding software correction for a moving part.

Make the defect visible

Use light direction and geometry to create contrast. Backlighting silhouettes a profile. Low-angle dark-field light reveals edges and surface relief. Diffuse dome light reduces glare on curved reflective parts. Coaxial light can make a flat reflective surface uniform. Polarizers can reduce specular reflections, but they also remove useful signal if used without a test.

Control ambient light, reflections, exposure, gain, and white balance. For moving parts, prefer enough illumination to shorten exposure rather than relying on blur correction. Store representative good and bad images from every relevant product and environmental condition.

Validate the whole cell

Test focus, lighting, lens, camera position, fixture repeatability, trigger timing, and downstream reject timing as one system. Establish a golden sample set, then test borderline parts and intentional nuisance conditions. Measure false rejects and missed defects separately; a single accuracy number hides the cost of each failure.

Log image quality and inspection results with part and recipe context. When the lighting drifts or a lens is disturbed, the system should tell maintenance before the line produces a quiet stream of bad decisions. The machine-vision factory basics guide covers the wider project map.

For a compact overview of the connected systems around inspection, Understanding the Shop Floor is a practical companion ebook.

Cite this page: Machine vision lighting and lenses: the variables that decide inspection, Shopfloor, 2026-09-23. https://shopfloor.space/articles/machine-vision-lighting-lens-guide/

Related