A step-by-step selection guide covering sensor size, focal length, field of view, resolution, distortion and mounts.
In most machine vision systems, the lens affects image quality, measurement accuracy and detection stability more than the camera does. A poorly matched lens causes vignetting, soft edges, unstable measurements and unreliable AI results — no amount of software fixes bad optics.
This guide walks through lens selection in the order an engineer should attack it. You can also send us your parameters and we'll run the calculation for you.
The lens image circle must fully cover the camera sensor. If it doesn't, you get dark corners, vignetting and degraded edge resolution. Always match the lens format to the largest sensor you will use — a 1.1″ lens works fine on a 1/1.8″ camera, but not the other way around.
| Sensor Format | Diagonal (approx.) | Typical Use |
|---|---|---|
| 1/3″ | 6.0mm | Compact systems, embedded vision |
| 1/2″ | 8.0mm | Entry-level industrial vision |
| 1/1.8″ | 9.0mm | Modern 5–12MP industrial cameras |
| 2/3″ | 11.0mm | Standard factory automation |
| 1″ | 16.0mm | High-resolution inspection |
| 1.1″ / 1.2″ | 17.5–18.7mm | 20–45MP high-end cameras |
Field of view (FOV) is the area you need to image; working distance (WD) is the space between lens front and object. Together with the sensor size they determine focal length:
Example: a 1″ sensor (12.8mm wide) must image a 100mm-wide inspection area from a 400mm working distance: 12.8 × 400 ÷ 100 = 51mm → choose a 50mm lens.
Practical tips:
The lens must resolve detail at the sensor's pixel pitch. The rule is simple: lens MP rating ≥ camera MP rating. A 20MP camera behind a 5MP lens wastes the sensor — images look soft and low-contrast.
Distortion moves features from where they appear to where they actually are. For general viewing, 1% is tolerable. For anything that measures geometry — gauging, feature positioning, geometry-based AI inspection — target under 0.1%, or use a telecentric lens (under 0.05%) for true metrology. Software distortion correction helps, but a documented, stable, low-distortion optical design is always the better foundation.
If your system measures dimensions, a telecentric lens eliminates perspective error: magnification stays constant as the part moves within the telecentric range, and the vision system behaves like a measuring instrument. This is the standard for non-contact gauging, thread/bore inspection and high-accuracy defect classification.
| Mount | Flange Distance | Typical Sensors | Notes |
|---|---|---|---|
| C-Mount | 17.526mm | up to ~1.1″ | Industrial standard, most rugged |
| CS-Mount | 12.526mm | small sensors | C lens + 5mm ring works; CS lens on C camera does not focus |
| M12 / S-Mount | variable | board cameras | Compact embedded systems |
| F-Mount / M42 / M58 / M72 | varies | large & line scan | Large image circles, line scan cameras |
Smaller apertures (higher F-numbers) increase depth of field — useful for 3D parts and height variation — but reduce light and eventually soften the image through diffraction at small pixel pitches. For fixed installations, always choose a lens with locking focus and iris rings so vibration can't drift your settings.
Send your camera model, FOV and working distance — an engineer will reply with a matched lens recommendation within 24 hours.