Machine vision lenses for quality inspection

C-mount and M12 lenses for label, seal, liquid level, and print inspection, chosen by inspection task rather than by a generic category.

The lens determines whether an inspection system can see the defects that matter. Start with the defect, not the camera: minimum feature size sets required resolution, working distance sets focal length, and surface geometry decides whether you need a fixed-aperture M12 lens or a C-mount lens with an adjustable iris. This collection groups our C-mount lenses and M12 lenses by the task they solve, so a station can be specified from a single row.

$19–$349 Inspection lens range
4 Inspection task families
≤0.09% Lowest published distortion
An overhead camera with a C-mount lens and ring light inspecting parts on a conveyor

Label, seal, liquid level, and print inspection each impose different constraints: glare and curved-surface depth of field for labels, contrast and presentation variability for seals, backlighting and calibration for fill level, and registration-grade distortion for print. Work through the shared specification order once, defect size, resolution, working distance, aperture, sensor format, then treat each application on its own terms.

Lenses by inspection task

Pick a lens for the task, not for a generic "quality inspection" category. Each family names its dominant optical constraint.

Label inspection

A high-resolution, glare-control problem on curved or reflective surfaces, and at least four distinct tasks: barcode and Data Matrix reading, OCR and lot code reading, label placement verification, and print-defect inspection. Codes need low distortion and pixels per module; OCR needs tighter contrast uniformity. On curved containers, an adjustable iris recovers depth of field.

Seal inspection

A contrast and presentation problem first, split into contamination detection, seal-width verification, position and continuity, and package-presence checks. Seal-width verification is where distortion matters directly: a single pass/fail width threshold only holds reliably at sub-0.5% distortion. Flexible pouches and blister packs pressure depth of field.

Liquid level and fill inspection

Depends on transparent-container backlighting more than on lens choice. The first optical decision is whether the station passes/fails a threshold or measures fill height. Threshold checks tolerate 0.5% TV distortion and reward low cost per lane; measurement-grade fill needs under 0.2% distortion and more pixel density.

Print and registration inspection

A registration and fine-feature contrast problem. Print-position and registration checks are the strictest distortion case here: a 2% barrel figure on a 200mm zone produces roughly 2mm of apparent position error at the edge, against tolerances often plus or minus 0.5mm. Low distortion is a prerequisite, not an optimization.

Top machine vision lenses for quality inspection

Each pick starts from the optical constraint that governs the task, then names the lowest-cost lens that meets it with sensor-format margin. Confirm image-circle coverage against your sensor diagonal before ordering.

6mm Two Thirds Inch Lens

6mm C-Mount Lens 2/3" 5MP

$249.00

CIL530-F1.8-CMANIR — 5 in stock

Download .STPView Product
8mm C Mount Lens Kowa Computar 2/3"

8mm C-Mount Lens 2/3" 12MP

$149.00

CIL531-F2.8-CMANIR — 5 in stock

Download .STPView Product
16mm C-Mount Lens Kowa Computar Lucid Vision Edmund Optics

16mm C-Mount Lens 2/3" 12MP

$149.00

CIL533-F2.0-CMANIR — 14 in stock

Download .STPView Product
25mm C Mount Lens Amazon

25mm C-Mount Lens 2/3" 12MP

$149.00

CIL534-F2.0-CMANIR — 17 in stock

Download .STPView Product
35mm C-Mount lens Computar

35mm C-Mount Lens 2/3" 12MP

$149.00

CIL535-F2.0-CMANIR — 5 in stock

Download .STPView Product
Lucid Vision Basler C Mount Lens IMX566

50mm C-Mount Lens 2/3" 12MP

$149.00

CIL536-F2.8-CMANIR — 31 in stock

Download .STPView Product
16mm C-Mount Lens 25MP Lucid Vision TRI245S-C

16mm C-Mount Lens 1.2" 25MP

$249.00

CIL553-F2.8-CMANIR — 4 in stock

Download .STPView Product
25mm C Mount lens 25megapixel

25mm C-Mount Lens 1.2" 25MP

$249.00

CIL554-F2.6-CMANIR — 3 in stock

Download .STPView Product

Browse Machine Vision Lenses for Quality Inspection

Lens direction by inspection task

Starting points, not absolutes. A curved-surface label station that also reads a Data Matrix code needs both low distortion and an adjustable iris at once.

Inspection task Primary optical constraint Lens direction Key metric
Barcode / Data Matrix reading Low distortion, adequate pixels per module M12 (compact) or C-mount (iris needed) <0.3% distortion; ≥5 px per module
OCR / lot code reading Contrast uniformity, resolution per stroke M12 or C-mount; tighter resolution budget <0.5% distortion; ≥5 px per stroke
Seal-width verification Distortion consistency across the field C-mount or M12 low-distortion option ≤0.5% distortion
Contamination / continuity check Contrast, spatial resolution, lighting geometry C-mount with adjustable iris preferred Resolve smallest defect feature
Threshold fill pass/fail Contrast on meniscus edge, cost per lane Compact low-distortion M12 ≤0.5% TV distortion
Measurement-grade fill estimation Distortion as systematic position bias C-mount, <0.2% distortion ≤0.2% TV distortion
Print-position / registration Low distortion across full field C-mount for larger sensors <0.3% distortion
Curved or uneven surface (any task) Depth-of-field control over height variation C-mount with adjustable iris DOF > surface excursion

How to specify an inspection lens, in order

Every inspection lens specification starts with the defect, not the focal length and not the sensor. The output of the first step is one number: minimum detectable feature size. A 50 micron scratch on a painted surface and a 500 micron dimensional deviation on a machined part drive completely different specifications downstream. When the defect type is unclear, design to the smallest feature you expect to care about. You can open the aperture or reduce magnification later, but you cannot recover detail that was never captured.

Calculate the required resolution

Once you have a minimum feature size, calculate sensor resolution: 3 to 5 pixels per smallest feature. Three pixels gives marginal detection; five gives reliable detection with enough signal margin for thresholding algorithms. Inspecting a 100mm part, detecting defects down to 50 micron, at 5 pixels per defect: 5 divided by 0.05mm gives 100 pixels per millimeter, so 10,000 pixels along the critical axis. Lens resolution must meet or exceed the sensor's pixel pitch. A 12MP sensor at 1.1" has 3.45 micron pixels; a lens rated for 12MP resolves at that pitch. Pairing a lower-rated lens with a higher-resolution sensor means the optical blur, not the sensor, sets your effective resolution.

Set the working distance, then compute focal length

Working distance is set early by conveyor height, robot reach, enclosure dimensions, and part-loading clearance, not a free variable to pick after browsing a catalog. Once you have working distance and required field of view, focal length follows exactly for rectilinear projection:

EFL = (WD × sensor_width) / FOV_width WD = working distance, sensor_width = sensor dimension across the FOV axis, FOV_width = required field of view

At a 300mm working distance, a required 100mm field of view, and a 14.1mm sensor width (1.1" sensor): EFL = 300 × 14.1 / 100 = 42.3mm, pointing to a 50mm lens. C-mount lenses refocus by moving internal groups on a cam; M12 lenses focus by threading the entire barrel in and out of the holder. Treat working-distance tolerance and refocus behavior as a property of the mount type you have chosen. Verify your own numbers with the field of view calculator or the EFL calculator before ordering.

Choose the right aperture

Aperture trades depth of field against diffraction. For flat parts at a fixed working distance, open the aperture for maximum light throughput and resolution, typically F/2.8 to F/5.6 on many C-mount industrial lenses, MTF permitting. For 3D parts or components with height variation, stop down using the depth of field calculator. Diffraction sets a practical ceiling: above F# of about 2 times the pixel pitch in microns, diffraction softening typically exceeds the gain from stopping down further. For 3.45 micron pixels, that ceiling is roughly F/7; for 25MP sensors with 2.74 micron pixels, closer to F/5.5. M12 lenses typically ship with a fixed aperture, which removes this lever entirely.

Distortion matters for measurement more than pass/fail

Distortion displacement is radial: it scales with a point's distance from the field center, not with total field width. At 0.5% distortion on a 100mm field, a point at the field edge can be displaced by roughly 0.25mm from its true position: noise against a plus or minus 1mm tolerance, a dominant error source against plus or minus 0.1mm. Print registration is the tightest case; seal-width and label-code geometry sit in the middle, where a sub-0.5% spec is usually sufficient; fill-level threshold checks are the most forgiving because the reference mark and meniscus sit in the same frame and a consistent error affects both similarly. See the low distortion lens guide for the difference between TV distortion and rectilinear distortion conventions.

Match the sensor format to the lens

The lens image circle must fully cover your sensor diagonal. A lens rated for 2/3" has an image circle of roughly 11mm; a 1.1" sensor has a diagonal of roughly 17.6mm. Put a 2/3" lens on a 1.1" sensor and you get severe vignetting. Oversizing the lens is the safer direction; undersizing produces vignetting that no amount of software correction recovers. A compact M12 lens is often a fraction of the cost of a comparable C-mount lens: on an eight-lane fill system, the difference between a $19 M12 lens and a $119 C-mount lens is roughly $800 across the station. That advantage only holds if the M12 image circle actually covers the sensor with margin. Full rules are in the sensor size and lens compatibility guide.

Frequently asked questions

What engineers ask most when specifying a lens for an inspection station

How do I choose a lens for machine vision quality inspection?

Start with your smallest defect size and work backward. Calculate the pixels needed to detect it reliably (3 to 5 pixels per defect minimum), which sets your sensor resolution requirement. Working distance is usually fixed by your physical setup, and it determines focal length through the rectilinear focal length equation. Aperture then sets your depth of field. Work through the specifications in this order: defect size, sensor resolution, working distance, focal length, aperture, sensor format.

What machine vision lens should I use for label inspection?

Name the task first: barcode/Data Matrix reading, OCR/lot code reading, label placement verification, or print-defect inspection. Barcode reading needs low distortion and enough pixels per module; OCR needs tighter resolution and contrast uniformity. Most stations choose between a compact M12 lens for flat surfaces and a C-mount lens with an adjustable iris for curved containers with depth-of-field pressure. Telecentric optics are rarely the right answer for label inspection.

What machine vision lens should I use for seal inspection?

Start with the task. Contamination detection inside the seal lane needs contrast and spatial resolution, with lighting geometry usually doing more work than lens choice. Seal-width verification needs low distortion (sub-0.5%) to keep apparent width consistent across the field. Seal-position and continuity checks need field coverage and resolution along the seal length. For most stations, choose a C-mount lens with an adjustable iris when packaging presentation is variable, and a compact M12 lens when the head must stay small and the surface is consistent.

What machine vision lens should I use for liquid level inspection?

Start with the inspection task type. For threshold-based pass/fail fill checks, moderate low distortion around 0.5% TV is typically sufficient and cost per lane matters. The CIL083 8mm M12 at $19 and -0.5% TV distortion handles these checks well on compact and multi-lane systems. For measurement-grade fill estimation where image height maps to physical fill volume, target under 0.2% distortion. The CIL533 16mm C-mount at -0.1% distortion or the CIL553 16mm C-mount at -0.09% distortion are the safer choices when geometric accuracy is a real requirement.

What machine vision lens should I use for print inspection?

Start with the inspection task. Date and lot code reading requires enough pixels per character and low distortion to keep character geometry consistent across the field. OCR and character verification is more demanding because the algorithm must distinguish individual strokes. Print-position and registration checks require low distortion across the full field; a lens with 2% barrel distortion introduces apparent position errors that can exceed registration tolerances. Print-defect detection is primarily a contrast and spatial resolution problem. C-mount with an adjustable iris is the practical default for most fixed-station area-scan applications; M12 works when the head must stay compact on a flat surface.

Do I need a telecentric lens for quality inspection?

Only if you are measuring dimensions where perspective error is unacceptable, such as checking heights or diameters from above. For most surface defect detection, barcode reading, seal checks, and print verification, a standard entocentric C-mount or M12 lens works and costs significantly less. Telecentric lenses require precise working distance control and have a limited field of view. Commonlands does not currently sell telecentric lenses; reserve them for true metrology applications through a specialist vendor.

Can I use an M12 lens for industrial quality inspection?

Yes, for embedded inline inspection where size and cost are the primary constraints and the inspected surface is flat or near-flat. Most M12 lens models cover sensors up to 1/1.8", with select models reaching 1/1.7" to 1/1.6"; the low-distortion CIL052, for example, covers sensors up to 1/1.8". For larger sensors, precision measurement requiring an adjustable aperture, or depth-of-field control on curved or uneven surfaces, C-mount is the better tool: its iris ring makes stopping down for DOF practical when illumination is programmatically controlled.

How does working distance affect inspection lens choice?

Working distance directly determines focal length: EFL = (working distance × sensor width) / field-of-view width. Shorter working distance requires a shorter focal length at a given field of view and sensor size. Longer working distance requires a longer focal length but provides more physical clearance for conveyor hardware, robot arms, or enclosures. Working distance is usually constrained by your physical setup before you ever open a lens catalog.

What aperture should I use for quality inspection?

For flat parts at a fixed working distance, open the aperture for maximum light throughput, MTF permitting; many industrial lenses are aberration-limited wide open and reach peak sharpness one to three stops down. For 3D parts or components with varying heights, stop down to increase depth of field. Diffraction sets a practical ceiling: above F# of about 2 times the pixel pitch in microns, diffraction softening typically exceeds the DOF/resolution gain from stopping down further. For a sensor with 3.45 micron pixels, that ceiling is roughly F/7.

Does barcode or Data Matrix reading need a low distortion lens?

Yes, for most inline barcode and 2D code reading. A lens with significant barrel or pincushion distortion compresses or stretches code module geometry near the image periphery. Decoders read bar-to-space ratios and cell dimensions; when those are skewed by distortion, decode confidence drops and partial reads become more likely near the corners. A lens with 0.3% or less distortion keeps symbol geometry close to nominal across the full field.

What lens resolution do I need for surface inspection?

Match your lens to your sensor's pixel pitch. A 12MP-rated lens like the CIL512 resolves 3.45 micron pixels on a 1.1" sensor. For 25MP sensors with 2.74 micron pixels, use a 25MP-rated lens like the CIL553. If your lens resolution does not match your sensor, you are paying for pixels you cannot use: the optical blur exceeds the pixel pitch before the sensor limit matters.

Need help sizing a lens for an inspection application?

Commonlands engineering can work through defect size, resolution, working distance, and sensor format with you before you commit to hardware. Single-lens samples ship same day.