바코드 및 데이터 캡처 광학 장치

머신 비전에서의 바코드 판독: OCR, 문서 스캔 및 생체 인식용 렌즈 가이드

코드, 문자, 페이지, 얼굴을 판독하기 위한 픽셀 커버리지, 피사계 심도, 왜곡 제어: 이는 디코딩 소프트웨어가 의존하는 광학적 여유 범위입니다.

By Max Henkart, Commonlands · Updated July 2026 · 10 min read

A board-level Commonlands M12 camera reads 1D barcodes and Data Matrix codes on a conveyor

Barcode reads, OCR, document scans, and biometric captures all fail for the same reason before software ever runs: the optics did not deliver enough pixels, sharp focus, or clean geometry on the feature that matters. The feature differs by task: the narrowest bar for 1D codes, the module for 2D codes, character x-height for OCR, the iris diameter for biometrics. Fix the sampling requirement first, using the decoder vendor's spec and your own read-rate testing. Then verify depth of field, distortion, and illumination against the real working distance.

데이터 캡처 과정에서 광학 시스템이 읽기 기능에 제공하는 요소

가장 작은 특징의 픽셀 커버리지

The decoder needs a minimum number of pixels across the narrowest element: the X dimension (narrowest bar or space) for 1D barcodes, the module for 2D Data Matrix and QR codes, character x-height for OCR, iris diameter for biometrics. Under-sampling that feature is one of the most common causes of read failures in new installations.

Contrast transfer at the feature's spatial frequency

Even with enough pixels, poor MTF at the feature's spatial frequency softens edges, so a megapixel rating alone does not qualify a lens. Check MTF at the sensor plane against your read-rate requirement rather than a fixed percentage.

Depth of field across the working-distance range

Conveyor sag, stacked labels, curved packaging, and stand-off variation all create a working-distance range the lens must hold focus across. A circle of confusion of about 1 pixel at the sensor is a geometric proxy, not a measured limit: usable depth of field depends on the lens's through-focus MTF. Use the depth of field calculator to estimate it, the depth of field guide for the derivation, and ask Commonlands for a measured table when fixture tolerance is tight.

사용 가능한 화각 전반에 걸쳐 제어된 왜곡

Distortion deforms bars, modules, characters, and geometry near the frame edges. Barrel (negative) or pincushion (positive) displacement is largest there. Near the center, most decoders and matchers tolerate it. A low-distortion lens cuts that risk and the correction burden that otherwise falls on software.

작업에 맞춘 조명 및 노출

At line speed, long exposure smears features across pixels: a 250mm/s conveyor during a 2ms exposure creates 0.5mm of blur, enough to erase a 0.3mm bar. For biometric and document capture the constraint shifts to illumination uniformity and, for iris, a specific NIR wavelength. Size exposure and illumination to the aperture and the feature.

A Commonlands M12 lens images a Data Matrix code etched into a metal part
저각도 조명은 도트핀 마킹을 선명하게 드러내어 부품 마킹을 직접 판독할 수 있게 해줍니다.

1D 바코드, 2D 데이터 매트릭스 및 QR 코드, 그리고 직접 부품 마킹 코드의 차이점

Different code types make different demands on the optics and illumination, and sorting them out before selecting a lens avoids the mismatched designs Commonlands most often sees in support.

1차원 바코드 (Code 128, GS1-128, Code 39, ITF-14)

One-dimensional barcodes encode data along a single axis, so the lens only has to resolve along the reading axis. Blur perpendicular to the bars is tolerable. The driving parameter is the X dimension, the narrowest bar width, which runs from 0.25mm on small labels to 1mm or more on pallet codes.

2D 데이터 매트릭스 및 QR 코드

Two-dimensional codes store data in both axes, so every module must resolve in both directions. That raises the bar on MTF uniformity across the full field, makes edge distortion a real failure mode, and requires uniform focus across the whole code. QR alignment markers tolerate perspective and rotation a little better than Data Matrix.

직접 부품 마킹(DPM) 코드

DPM codes are laser-etched, dot-peened, or chemically etched into metal, so contrast comes from surface texture, not ink. That contrast is much lower than on a printed label. MTF at the module frequency has to stay high without an aperture so small that diffraction eats the contrast, and the illumination (angled, dark-field, or coaxial with a polarizer) has to make shallow features visible at all.

일반적인 고장 양상의 비교

고장 증상 추정되는 광학적 원인 가장 먼저 확인해야 할 사항 가능성 높은 해결 방법
이미지 가장자리 부근에서만 디코딩에 실패합니다 왜곡 또는 축외 수차 사용 중인 시야 범위에서의 왜곡 사양 및 가장자리 MTF 왜곡이 적은 렌즈를 사용하고, 코드가 사용 가능한 이미지 서클 내에 있도록 하십시오.
라인 속도에서는 디코딩에 실패하지만 정적 테스트에서는 통과합니다 장시간 노출로 인한 모션 블러 노광 시간 대 컨베이어 속도 (mm/s) 노출 시간을 줄이거나, 더 밝은 조명이나 스트로브 조명을 추가하십시오.
다양한 거리에서 디코딩에 실패합니다 피사계 심도가 너무 얕음 조리개 설정 대 센서에서의 1픽셀 CoC 허용치 회절 한계 이내로 조리개를 조이고, 이를 보정하기 위해 조명을 늘리십시오.
작은 코드나 문자에 대한 간헐적인 오류 픽셀 커버리지가 최소 기준치 미만입니다. 가장 좁은 막대, 모듈 또는 문자 높이에 걸친 픽셀 수 시야각을 줄이거나, 초점 거리를 더 길게 설정하거나, 카메라를 피사체에 더 가까이 가져가세요
디코딩 실패는 반짝이는 라벨이나 금속 DPM에서만 발생합니다. 반사광으로 인해 명암비가 흐려짐 조명 각도와 정반사 기하학 확산 조명이나 각도 조명으로 전환하고, LED 광원에 맞춰진 대역통과 필터를 추가하십시오.

바코드 판독을 위한 초점 거리와 작업 거리를 정하는 방법

EFL = (WD × 센서 크기) / FOV EFL = 유효 초점 거리 (mm) | WD = 작동 거리 (mm) | 센서 크기와 시야각(FOV)은 mm 단위이며, 동일한 축 기준

This is exact for rectilinear projection (Hecht, Optics, 5th ed., §5.2), not a thin-lens approximation. For distortion-corrected values at wide fields, use the field of view calculator.

실제 예시: 포장 라인에서 라벨 판독

A 1/2.3" sensor (6.17mm × 4.55mm active area) reading a 60mm-wide label at 400mm needs an EFL near 400 × 6.17 / 60 = 41.1mm. With 4000 pixels across the 6.17mm width, each pixel covers 60 / 4000 = 0.015mm in the scene, so a 0.25mm X-dimension bar spans 0.25 / 0.015 = 16.7 pixels. Compare that against your decoder vendor's minimum sampling spec.

M12 lenses are typically usable from about 50mm to infinity uncorrected. C-mount lenses run from about 100mm to infinity, both varying by model. For close-range reading on small electronics, check each model's minimum object distance, measured from the front of the lens to the object. Not every datasheet publishes it. See the minimum detectable size guide for how pixel coverage and field of view interact at close range.

OCR 및 문자 인식용 렌즈 선정

화소 밀도와 20픽셀 규칙

A practical threshold is at least 20 pixels across the x-height of the smallest character, the height of a lowercase x. For the all-caps alphanumerics common on industrial labels, x-height equals full character height. For mixed case, it is roughly half. Below about 10 pixels of x-height, accuracy collapses for most engine and font combinations.

To check a design, multiply the sensor pixel count in the relevant axis by x-height as a fraction of the scene dimension and compare to 20. A 1920-pixel axis over an 80mm scene with 4mm x-height gives 1920 × (4/80) = 96 pixels, well clear; at 0.8mm x-height it drops to 19, which is marginal. The fix is a longer focal length or a higher-resolution sensor, not a different engine.

Focal length and mount

Longer focal lengths earn their place when the camera cannot move closer and a shorter lens would render characters too small: license plates, overhead text, serial numbers at a fixed robot stand-off. Where geometry allows, moving closer with a shorter lens is usually better, since depth of field shrinks and vibration sensitivity grows with focal length.

M12 fits most compact OCR, and a low-distortion M12 such as the CIL052 gives -0.1% rectilinear distortion with the system built around its fixed F-number. C-mount wins when depth-of-field control matters, when the sensor exceeds the M12 image circle (typically above 1/1.8 inch, up to 2/3 inch for the largest-coverage designs such as the CIL064), or when it needs a longer focal length.

문서 스캔을 위한 렌즈 선택

Document scanning is a flat, static imaging problem. The lens must cover the full page at the working distance, resolve enough pixels for the detail required, and keep page geometry accurate enough that straight edges stay straight. A low-distortion fixed-focal lens is the right default. Telecentric optics are not needed here, and they are not a current Commonlands product.

Distortion and rolling shutter

Barrel or pincushion distortion is worst at the corners, exactly where a document's edges sit. Downstream requirements set the tolerance: tighter needs for dimensional accuracy, OCR bounding-box registration, or multi-page alignment call for lower distortion. The CIL052 reaches -0.1% rectilinear distortion for embedded page geometry, with comparable low-distortion C-mount options available. Rolling shutter is usually fine because the scene is static. Steady light avoids banding from pulsed sources.

얼굴 및 홍채 생체 인식 캡처를 위한 렌즈

Iris imaging: NIR illumination on a small feature

The human iris is roughly 11-12mm across, and standards-oriented capture commonly targets on the order of 100 to 200 pixels across that diameter, because recognition depends on fine radial and furrow detail. Hitting that at a workable distance usually means a longer focal length or shorter working distance than face capture, since the iris fills a small fraction of the frame.

Iris also depends on illumination near 850nm, matched to the lens and sensor path: it reveals texture that visible light captures inconsistently and is far less sensitive to ambient lighting and eye color. That needs the standard NIR stack, no IR-cut filter in the path, a bandpass filter matched to the illuminator, and a lens that transmits 850nm. See 850nm vs 940nm for the tradeoff and NIR imaging in machine vision for the full stack.

Face recognition: even illumination and low distortion

Face recognition covers a larger feature, so pixel-coverage pressure is lower, but even illumination and low distortion dominate. A single off-axis source throws shadows that shift with subject position, and barrel or pincushion warps facial geometry (interpupillary distance, jaw width, feature spacing) near the edges where off-center subjects sit. Many systems add 850nm NIR so capture stays consistent day and night, which again needs an NIR-transmitting lens and matched bandpass filter.

범위 설명

Commonlands does not publish or validate biometric matching-accuracy figures; those depend on the algorithm, enrollment quality, and population statistics, not the lens. This section covers the optical and illumination requirements the lens and filter stack must satisfy. Verify accuracy claims with the biometric software vendor.

데이터 수집 애플리케이션을 위한 Commonlands 렌즈 예시

6mm 2/3인치 렌즈

6mm C-마운트 렌즈 2/3인치 5MP

$249.00

CIL530-F1.8-CMANIR — 5 in stock

.STP 파일 다운로드상품 보기
8mm C 마운트 렌즈 Kowa Computar 2/3"

8mm C-마운트 렌즈 2/3인치 12MP

$149.00

CIL531-F2.8-CMANIR — 50 in stock

.STP 파일 다운로드상품 보기
16mm C-마운트 렌즈 코와 컴퓨타르 루시드 비전 에드먼드 옵틱스

16mm C-마운트 렌즈 2/3인치 12MP

$149.00

CIL533-F2.0-CMANIR — 14 in stock

.STP 파일 다운로드상품 보기
25mm C 마운트 렌즈 아마존

25mm C-마운트 렌즈 2/3인치 12MP

$149.00

CIL534-F2.0-CMANIR — 17 in stock

.STP 파일 다운로드상품 보기

품질 검사를 위한 머신 비전 렌즈 둘러보기

바코드 판독, OCR 및 문서 스캔에 최적화된 렌즈

과제 추천 렌즈 마운트와 EFL 왜 적합한가 링크
라인에서 1D 및 2D 라벨 판독 CIL064 large format M12, 6mm The 11mm image circle covers sensors up to 2/3", including 1/1.6" parts such as the IMX676, so pixel density on the code comes from sensor resolution across a wide 86° field. F/2.9 fixed, rated for 6MP at 3µm pitch. View CIL064
근거리 DPM 및 소형 코드 CIL052 저왜곡 M12, 5.2mm 근접 촬영 거리에서 짧은 EFL을 사용하면 작고 조밀한 코드에 높은 픽셀 밀도를 구현할 수 있으며, -0.1%의 직선 왜곡 덕분에 모듈이 프레임 가장자리에 가까워져도 판독이 가능합니다. F/3.4 고정 조리개, 최대 1/1.8" 센서 지원. CIL052 보기
OCR 및 문서 스캔 CIL532 C-mount C-마운트, 12mm +0.05% distortion across an 11.1mm image circle suits full-page geometry, and the F/2.0-F/16 adjustable iris trades aperture for depth of field on curved labels or uneven documents. Up to 2/3" sensors at 12MP. View CIL532
An overhead Commonlands M12 camera images a printed page for document scanning and OCR
플랫 필드 조명 방식이라 해도 화면 구석구석까지 글자가 선명하게 표현됩니다.

자주 묻는 질문

머신 비전 분야의 OCR 작업에는 어떤 렌즈를 사용해야 할까요?

Start with a fixed focal length lens sized to put at least 20 pixels across the x-height of the smallest character. A low-distortion M12 lens such as the CIL052 works well at moderate working distances for embedded OCR and label reading. When the camera must stay back, a longer focal length preserves character size on the sensor. C-mount is preferred when an adjustable iris is needed for depth-of-field control, or when the sensor is larger than the M12 lens's image circle covers, typically above 1/1.8 inch.

머신 비전에서 문서 스캔을 할 때 어떤 렌즈를 사용해야 할까요?

Start with document size, working distance, and sensor size, then calculate the focal length so the full page fills the sensor field at that working distance. Choose a low-distortion fixed focal lens matched to those numbers rather than the widest lens that technically fits. For embedded setups, a low-distortion M12 lens such as the CIL052 is practical. For bench or archival scanning, where aperture control and larger sensors matter, a C-mount lens gives more control.

홍채 인식에는 어떤 렌즈가 필요한가요?

Iris recognition needs an NIR-transmitting lens paired with roughly 850nm illumination and a matching bandpass filter, sized to put enough pixels across the iris diameter (commonly cited targets run from about 100 to 200 pixels across the iris for standards-grade capture). The lens and filter stack must pass 850nm efficiently. A standard visible-only IR-cut path blocks the wavelength the sensor needs. See the Commonlands NIR imaging guide for the full filter and illumination stack.

1D 바코드와 데이터 매트릭스 코드를 읽는 데 있어 어떤 차이가 있나요?

1D barcodes encode data in bars along one axis and can be decoded from a single scan line, tolerating blur in the perpendicular direction. The driving parameter is the X dimension, the narrowest bar width. Data Matrix and QR codes encode data in both axes, so every module must be resolvable in two directions, which raises requirements on MTF uniformity, distortion, and focus quality across the full field the code occupies.

얼굴 인식 카메라의 광학 시스템에는 무엇이 필요한가요?

얼굴 인식에는 촬영 영역 전체에 걸쳐 균일한 조명이 필요하며, 프레임 가장자리 근처에서 얼굴 형태가 왜곡되지 않도록 왜곡이 적어야 하고, 사용되는 매칭 알고리즘에 맞춰 동공 간 거리나 얼굴 너비에 걸쳐 충분한 픽셀이 확보되어야 합니다. 많은 출입 통제 및 신원 확인 시스템은 주변 가시광선 조명에 관계없이 일관된 촬영이 가능하도록 약 850nm 파장의 근적외선(NIR) 조명을 추가하는데, 이를 위해서는 해당 파장을 투과하는 렌즈와 필터 경로가 필요합니다.

데이터 수집 용도에 맞는 렌즈를 선택하는 데 도움이 필요하신가요?

코드 유형, 문자 크기, 문서 기하학적 구조 또는 생체 인식 방식을 작업 거리, 센서 및 라인 속도와 함께 설명해 주십시오. Commonlands 엔지니어링 팀은 귀사가 하드웨어를 확정하기 전에 픽셀 커버리지, 피사계 심도, 왜곡 및 조명 요구 사항을 검토해 드릴 수 있습니다.