Skip to content

Blog · Hardware

C-mount lens selection for machine vision: working distance, field of view and defect size.

Updated July 2026 · 7 min read · Adente Vision Engineering Team

Choosing a C-mount lens starts with three numbers: the working distance from lens to part, the field of view you must cover, and the smallest defect you must resolve. Those set the focal length and tell you whether a 12 MP sensor has the pixels to see the flaw before the AI looks at all.

What is a C-mount, and why does it keep lens choice open?

C-mount is a standard threaded lens interface widely used in machine vision, so a camera with a C-mount accepts lenses from many optics makers rather than locking you to one supplier's parts. That standardisation is the practical value: you size the optics to the job and thread on the lens that matches, and if the task changes you swap the lens without changing the camera or the mount.

Keeping that choice open matters because the lens, not the AI, sets the smallest defect the system can ever see. If the optics do not put the flaw on enough sharp pixels, no model can recover it downstream. Adente Vision is an edge-AI visual inspection unit built by ADENTE Advanced Engineering Technologies, part of the Aden Group, sold through automation system integrators, and its camera pairs an up-to-12-MP sensor with a C-mount so the lens can be matched to the part instead of the part being forced to fit a fixed lens.

How do working distance and field of view set the focal length?

Three quantities are linked by general imaging physics: the working distance from the lens to the part, the field of view the sensor sees at that distance, and the focal length of the lens. As a first-order relation, the field of view is roughly the sensor dimension multiplied by the working distance, divided by the focal length. Fix any two and the third follows.

That relation is how a lens gets chosen in practice. You usually know your working distance, because the cell geometry sets how far the camera can sit from the part, and you know the field of view, because the part and its position tolerance decide how much area you must capture. From those two the focal length falls out. A wider field of view at the same distance needs a shorter focal length; more standoff at the same field of view needs a longer one. The table below shows the direction each choice pulls, as general optics rather than a spec for any one lens.

Focal length (C-mount)Effect on field of viewEffect on working distance
Shorter (wide)Wider field of view, more edge distortionCan sit closer to the part
Longer (tele)Narrower field of view, more detail per featureNeeds more standoff from the part
Fixed field of view, more standoffRequires a longer focal lengthMore room between lens and cell
Fixed field of view, less standoffRequires a shorter focal lengthTighter packaging near the part

How do sensor pixels and defect size set the resolution limit?

Once the field of view is fixed, resolution decides the smallest feature you can resolve. As general imaging physics, the pixel footprint on the part is the field of view divided by the number of pixels across it. Spread a 12 MP sensor over a small field and each pixel covers a tiny patch, so a fine defect lands on several pixels and is separable. Spread the same sensor over a large field and each pixel covers more millimetres, so the same defect may fall on a single pixel or less and vanish into the background.

The working rule is that a defect needs to span more than one pixel to be reliably detected, because a feature riding on a single pixel is easy to confuse with sensor noise. So the sizing question is concrete: take your field of view, divide by the sensor's pixel count to get the footprint per pixel, and check that your smallest defect covers enough pixels with margin. If it does not, you narrow the field of view, add pixels, or accept a smaller inspected area per capture. Matching an up-to-12-MP sensor to a well-chosen field of view is what gives the AI a sharp, defect-sized signal to work from.

Why is lighting often the real bottleneck, not the lens?

A lens can only pass contrast that the lighting creates. A scratch, a dent or a fine edge becomes visible because light strikes it and returns differently than the surrounding surface, and if the lighting does not produce that difference, a perfectly sized lens and a 12 MP sensor still record a flat, featureless patch. This is why experienced integrators treat lighting as a first-class part of the optical design, not an afterthought bolted on once the lens is chosen.

The practical order is to solve lighting and optics together. Pick the lighting geometry that makes your defect show up, diffuse for matte and curved surfaces, low-angle directional for scratches and embossing, coaxial for flat specular parts, then choose the lens and field of view that put that contrast on enough pixels. The unit keeps lighting colour and angle configurable and offers an on-device preview during aiming, so the lens and the light can be tuned together against a real part before the model is trained. For freezing that part while it moves under the lens, see the companion post on global-shutter sensors, and a well-chosen field of view then needs only about 20 good images to train.

This post is a spoke of the pillar guide on AI visual inspection.

Frequently asked questions

Not sure which C-mount lens your part needs?

Tell us your working distance, your field of view and your smallest defect, and we help match the lens and confirm the sensor has the resolution before quoting. See how Adente Vision pairs an up-to-12-MP C-mount sensor with configurable lighting.