Lighting creates the signal
For inspection, measurement and code reading, contrast between feature and background is the signal. Light geometry (backlight, bright-field, dark-field, dome) matters more than LED wattage.
Knowledge base · Optics & lighting
Insufficient detail or changing contrast causes unstable inspection, extra rejects and manual checks. Use this decision guide to determine field of view, working distance, lens and lighting geometry together before selecting components.

Knowledge
The camera sensor only sees what the lighting creates and the lens delivers. More megapixels will not recover contrast that never reached the sensor. A sharp lens will not fix a field of view that does not fit the machine.
For inspection, measurement and code reading, contrast between feature and background is the signal. Light geometry (backlight, bright-field, dark-field, dome) matters more than LED wattage.
Focal length, working distance and sensor format set FOV, magnification and how much light reaches each pixel. Stop down for depth of field and you need more light to compensate.
If the lens sees 200 mm but the light only covers 150 mm evenly, the edges fail even when the centre looks fine in the lab.
Selection
Copy this table into the project record. Enter measured values and identify unknowns before choosing a focal length or light. Test the shortlisted lens and lighting together and retain the settings and sample images.
| Parameter | Inputs to record | Decision or test |
|---|---|---|
| FOV | Required width and height in mm, position margin and allowed rotation: … | Check both sensor axes and confirm that illumination covers the complete inspection area. |
| Working distance | Available distance, lens reference plane, product-height range and clearance: … | Verify focus at height extremes and leave space for light, filters, connectors and cleaning. |
| Smallest feature | Smallest defect or code element in mm, provisional pixel requirement and active sensor size: … | Calculate mm/pixel, then confirm contrast and sharpness at the centre and corners. |
| Surface | Material, finish, colour, curvature, oil or film variation and known defects: … | Compare light angles and wavelength on the same identified samples; check glare and valid-product variation. |
| Motion and trigger | Maximum speed, allowed blur, trigger interval and shutter mode: … | Exposure limit = allowed displacement ÷ speed. Test signal within that time using continuous or supported pulsed light. |
There is no universal working-distance-to-field-of-view ratio. Determine the field of view and available installation space, then check the lens calculation for the actual sensor size. Allow space for lighting, connectors, focus adjustment and cleaning. Use the lens manufacturer’s defined distance reference. More detail:resolution, FOV and working distance.
Practical example · Machine builders
Consider an illustrative inspection of a brushed aluminium housing with local glossy streaks. The task is to detect a shallow scratch and read a laser-marked batch code within a short exposure. These two features may need different light directions. The example describes a test approach, not measured installation results.
We start from samples and the allowed working distance and FOV in the frame. For scratches on metal we often try dark-field or low-angle bar lighting. If the etch needs flatter illumination, we add a second geometry or a dome. Only when the image works on the real part do we lock focal length and product family.
Keep reading:inspection lighting·code reading & DPM.
Field reality
Set separate acceptance limits for missed defects, false rejects and timing. Validate samples not used to adjust the light, including position and height extremes. Record which conditions fail and whether the cause is focus, contrast, motion or presentation. Recheck after restoring the configuration.
The bracket is welded, working distance is fixed at 80 mm, and only then someone asks for a lens that covers a 120 mm FOV on a large sensor. The short lens that hits the FOV may vignette or distort; the longer sharp lens does not fit. Redesigning the frame then costs more than selecting the lens with the mechanical space from the start.
A white ring light is ordered with the camera because it is the default accessory. On glossy or machined metal it creates hotspots that saturate the sensor. Defects and DPM codes disappear into the reflection. Dark-field, dome or carefully angled bars belong in the first trial, not a software threshold on a burned image.
Closing the aperture can increase depth of field but reduces light at the sensor and may introduce diffraction. A longer exposure can then produce motion blur. Compare illumination intensity, pulsed operation, presentation control and optical alternatives against the required image detail. Validate the chosen combination at the expected speed and height range.
Definition pages
Use these pages for the definitions. Come back here when you want to select hardware or understand what fails in practice.

Send samples and the completed decision sheet. Budget lens, light, controller, filters and mounting together with trial and validation hours × rate. Include cleaning access and replacement settings in maintenance. Compare the result with measured inspection and intervention costs rather than assuming that more expensive optics automatically reduce rejects.