Components · Optics

Industrial Lenses

The lens forms the image the whole system depends on. Focal length sets the field of view, the aperture balances brightness and depth of field, and optical quality decides whether your sensor's resolution is actually used.

Ống kính tạo ra hình ảnh mà toàn bộ hệ thống dựa vào. Tiêu cự quyết định vùng nhìn, khẩu độ cân bằng độ sáng và độ sâu trường ảnh, chất lượng quang học quyết định độ phân giải thực tế.

How it works

Field of view, working distance and magnification

Magnification is the ratio between sensor size and the field of view on the part. For a given sensor, a longer focal length gives a smaller field of view at the same working distance; a shorter focal length gives a wider view but more distortion and perspective error.

The aperture (f-number) controls brightness and depth of field. Closing the aperture increases depth of field but reduces light and, beyond a point, diffraction blurs fine detail — especially on sensors with small pixels.

Standard lenses see objects from a single point, so closer objects appear larger. Telecentric lenses collect only parallel rays: magnification stays constant within their telecentric depth, which is essential for accurate measurement of parts that vary in height.

Field of view (FOV) Sensor Working distance (WD) ≈ focal length Lens · aperture f/N Magnification m = sensor size ÷ FOV

Types

Lens types in detail

Open each type for how it works, where it fits, its limitations and the specifications to check.

01 Fixed focal (FA) lensThe standard machine vision lens with a fixed focal length and lockable focus and iris.

How it works. Available in focal lengths from wide-angle to telephoto. Focus and aperture are set once and locked so vibration cannot change them.

Best for

  • General inspection and code reading
  • Robot guidance
  • Most area-scan applications

Limitations

  • Perspective error when part height varies
  • Distortion increases at short focal lengths

Key specs to check

  • Focal length
  • Sensor format
  • Aperture range
  • Minimum object distance (MOD)
  • Resolution class
02 High-resolution lensFixed focal lenses designed for small pixels and high megapixel sensors.

How it works. Optical design that resolves pixels of around 2–3.5 µm across the full sensor, with low distortion and good corner sharpness.

Best for

  • 20 MP and higher cameras
  • Fine defect detection over a wide field
  • PCB and display inspection

Limitations

  • Higher cost
  • Must match sensor size and pixel pitch

Key specs to check

  • Rated pixel size / resolution
  • Image circle
  • MTF across the field
03 Telecentric lensConstant magnification within its telecentric depth — the lens for precise measurement.

How it works. Object-side telecentric lenses accept only rays parallel to the optical axis, so parts look the same size even if they move up or down slightly. Bi-telecentric designs are also telecentric on the sensor side for even lower error.

Best for

  • Dimensional measurement and gauging
  • Parts with height variation
  • Combination with collimated backlight

Limitations

  • Front lens must be larger than the field of view
  • Fixed working distance and magnification
  • Larger and heavier than standard lenses

Key specs to check

  • Magnification
  • Field of view
  • Working distance
  • Telecentricity (degrees)
  • Distortion
  • Telecentric depth
04 Line-scan lensLarge image circle for long line-scan sensors.

How it works. Designed to cover sensors of 4k, 8k, 16k pixels and more with uniform sharpness and illumination along the whole line.

Best for

  • Web and film inspection
  • Large flat panels
  • Cylindrical parts rotating under the camera

Limitations

  • Larger mounts (M42, M58, M72, F) and adapters

Key specs to check

  • Image circle / max sensor length
  • Magnification range
  • Mount
05 Macro lensFixed magnification at close range for small features.

How it works. Optimized for magnifications around 0.25× to several times, with short working distances and flat field.

Best for

  • Small components and connectors
  • Features smaller than about 20 µm
  • Electronics and medical parts

Limitations

  • Very shallow depth of field
  • Close working distance limits lighting options

Key specs to check

  • Magnification
  • Working distance
  • Numerical aperture / f-number
06 Microscope & zoom lensHigh magnification for microscopic inspection.

How it works. Zoom or fixed high-magnification optics, often with coaxial illumination ports.

Best for

  • Semiconductor and wafer inspection
  • Wire bonding
  • Micro-features

Limitations

  • Very small field of view and depth of field
  • Sensitive to vibration

Key specs to check

  • Magnification range
  • Numerical aperture
  • Coaxial port
07 Liquid lens (electronic focus)Focus changed electronically in milliseconds — no moving parts.

How it works. A liquid or polymer element changes shape under voltage, refocusing the lens for different distances under software control.

Best for

  • Parts or boxes at varying heights
  • Multiple focus planes on one part
  • Code reading in logistics

Limitations

  • Optical quality slightly below the best fixed lenses
  • Needs a compatible controller or camera

Key specs to check

  • Focus range
  • Response time
  • Control interface
08 Special lenses360° and hole-inspection optics, mirror attachments, SWIR and UV lenses.

How it works. Pericentric (360°) lenses view the top and side walls of a part in one image; hole-inspection lenses look inside bores; SWIR and UV lenses are coated and corrected for non-visible wavelengths.

Best for

  • Bottle necks, caps and threads
  • Inside walls of holes
  • SWIR and UV applications

Limitations

  • Specific geometry; usually application-specific design

Key specs to check

  • Viewing angle
  • Wavelength range
  • Working distance
09 Lens accessoriesFilters, polarizers, extension tubes and protective windows.

How it works. Bandpass filters block ambient light; polarizers reduce glare; extension tubes shorten the minimum object distance; protective windows shield the lens in dusty or splashing environments.

Best for

  • Stabilizing results in changing light
  • Close-up imaging with standard lenses
  • Harsh environments

Limitations

  • Extension tubes reduce image quality at large extensions

Key specs to check

  • Filter thread size
  • Wavelength band
  • Tube length

Specifications

Key lens specifications explained

Key lens specifications explained
SpecificationWhat it meansHow to choose
Focal lengthDistance from the lens to the sensor when focused at infinity.Calculate from sensor size, field of view and working distance (see the calculator).
Sensor format / image circleThe largest sensor the lens covers without dark corners.Image circle must be at least the sensor diagonal.
MountMechanical interface: C, CS, M42, M58, M72, F and others.Must match the camera, or use an approved adapter.
Aperture (f-number)Size of the lens opening; higher f-number = smaller opening.Balance brightness, depth of field and diffraction (often f/4–f/8).
ResolutionFinest detail the lens can transfer (lp/mm or rated pixel size).Must match the camera pixel size; see Nyquist in the calculator.
Minimum object distanceClosest distance at which the lens can focus.Check that your working distance is above the MOD.
DistortionDeviation of straight lines in the image, in percent.Keep low for measurement; can be calibrated in software.
Magnification (telecentric/macro)Fixed ratio between image and object size.Choose so the field of view fits the sensor with margin.
Telecentric depthHeight range over which magnification stays constant.Must cover the height variation of your parts.
RuggedizationLocking screws, vibration-resistant designs.Recommended on robots and machines with vibration.

Engineering tools

Calculate before you choose

Quick estimates based on standard formulas. Always confirm with a test on real parts.

Lens & Depth-of-Field Calculator

Estimate magnification, focal length, required lens resolution and depth of field from your sensor, field of view and working distance.

All calculators in the Knowledge hub

Selection guide

Which lens for which task?

Which lens for which task?
RequirementRecommendedWhy / note
General inspection, code readingFixed focal (FA) lensChoose focal length from FOV and WD.
Precise measurement, height variationBi-telecentric lensConstant magnification, low distortion.
20 MP+ camera, small pixelsHigh-resolution lens rated for the pixel sizeOtherwise the extra pixels add no detail.
Webs, long parts, line-scanLine-scan lens with large image circleCheck mount and magnification.
Features below ~20 µmMacro or microscope lensPlan lighting for the short working distance.
Parts at varying distancesLiquid lensSoftware-controlled focus per part.
Side walls, inside holes360° / hole-inspection lensOne image instead of several cameras.
Low light, high speedLens with low f-number (bright)Watch the reduced depth of field.

Selection steps

  1. Fix the field of view (with margin for part position tolerance) and the available working distance.
  2. Select the camera sensor — size and pixel pitch drive the lens choice.
  3. Calculate magnification and focal length; check the minimum object distance.
  4. Check that lens resolution and image circle match the sensor.
  5. Calculate depth of field for the height variation of the part; adjust aperture.
  6. For measurement or height variation, consider a telecentric lens.
  7. Confirm with test images: sharpness in the corners, distortion and brightness.

Examples

Typical application examples

Illustrative setups showing how the components are combined in practice.

Application example

Connector pin position measurement

Challenge
Pins at slightly different heights appeared shifted with a standard lens.
Setup
Bi-telecentric lens with collimated backlight and a 5 MP camera.
Result
Magnification stays constant over the height range, so positions are measured directly in millimetres.

Application example

PCB inspection with a 20 MP camera

Challenge
Corners of the board were blurred, wasting sensor resolution.
Setup
High-resolution lens rated for 2.4 µm pixels, aperture set around f/5.6.
Result
Uniform sharpness across the board and reliable detection of small solder defects.

Application example

Code reading on boxes of different heights

Challenge
Fixed focus could not cover all box sizes.
Setup
Liquid lens with distance-based focus control.
Result
Every box is read in focus without mechanical adjustment.

Common mistakes to avoid

  • Choosing a lens whose image circle is smaller than the sensor — dark corners (vignetting).
  • Pairing a high-megapixel camera with a lens that cannot resolve its pixels.
  • Using very short focal lengths at close range — strong distortion and perspective error.
  • Forgetting the minimum object distance when space is tight.
  • Not locking focus and iris on machines with vibration.
  • Specifying a telecentric lens for a field of view larger than its front lens.

FAQ

Frequently asked questions

What is the difference between C-mount and CS-mount?

Both use the same thread, but the flange distance differs (17.53 mm for C, 12.5 mm for CS). A C-mount lens can be used on a CS-mount camera with a 5 mm spacer; a CS-mount lens cannot focus on a C-mount camera.

Why are telecentric lenses so large?

Because they only collect rays parallel to the axis, the front lens must be at least as large as the field of view.

Which aperture should I use?

Often between f/4 and f/8. Wider apertures give more light but less depth of field; very small apertures add depth but diffraction reduces sharpness, especially with small pixels.

Can I use extension tubes to focus closer?

Yes — they reduce the minimum object distance and increase magnification, but image quality and brightness drop at large extensions. A macro lens is better for permanent close-up work.

How do I know if the lens resolves my camera?

Compare the lens resolution with the sensor's Nyquist frequency (1000 ÷ (2 × pixel size in µm) lp/mm). The calculator on this page shows the value.

🌐 Tiếng Việt