Skip to main content

02 / 04   Camera & sensor

Application note

Specifying the Camera Sensor for Inspection

Match sensor resolution and size to the smallest feature and the full inspection area.

Sensor specification connects the inspection area to the detail that must appear in the image. Usable pixel count determines spatial sampling, while active sensor dimensions and pixel pitch determine the required lens magnification. Optical contrast, noise, and calibration also influence performance, so sampling and measurement accuracy remain separate requirements.

Inspection field

The required field of view includes the part and its full range of positions. For each axis:

FOVi=(Li+2ui)(1+oi),i∈{x,y}FOV_i=(L_i+2u_i)(1+o_i),\qquad i\in\{x,y\}

LiL_i is maximum part extent in mm, and uiu_i is the one-sided allowance for symmetric ±ui\pm u_i position variation. The dimensionless overscan fraction oio_i enlarges the total envelope. Thus, oi=0.10o_i=0.10 adds 10% overall. An 80 × 50 mm part with ±2\pm2 mm variation on each axis and 10% overscan requires a 92.4 × 59.4 mm field.

The required field includes the full part-position envelope plus a separately defined overscan margin.

View diagram at full size

For asymmetric position variation, 2ui2u_i is replaced by the full minimum-to-maximum excursion. Trigger variation, fixture tolerance, geometric correction, and processing borders may require additional coverage. Assigning each contribution explicitly avoids counting the same allowance twice.

Feature sampling

A preliminary sampling target follows from the feature width and the chosen number of pixels across it:

PSStarget=skPSS_{\mathrm{target}}=\frac{s}{k} Nx≥⌈FOVxPSStarget,x⌉,Ny≥⌈FOVyPSStarget,y⌉N_x\geq\left\lceil\frac{FOV_x}{PSS_{\mathrm{target},x}}\right\rceil, \qquad N_y\geq\left\lceil\frac{FOV_y}{PSS_{\mathrm{target},y}}\right\rceil

ss is feature width in mm, kk is the selected pixel span, and PSSPSS is object-space sampling in mm/pixel. NxN_x and NyN_y are usable pixel counts along the corresponding axes. The ceiling operation rounds each requirement upward to an integer.

For a 0.30 mm feature spanning five pixels, the target is 0.060 mm/pixel. Covering the example field at this sampling requires at least 1,540 × 990 usable pixels.

A feature spans different numbers of pixels as object-space sampling changes; finer sampling alone does not establish optical contrast.

View diagram at full size

Three pixels across a favorable high-contrast feature can serve as an initial detection target; discrimination may require five or more. These empirical starting values depend on orientation, contrast, blur, noise, and the algorithm. Nyquist sampling concerns spatial frequency and does not establish a universal pixel count across an arbitrary defect.

Sensor performance

The sensor’s aspect ratio affects field coverage. With one common magnification, the limiting axis sets actual sampling; the other axis may capture a larger field than required. The candidate lens and sensor therefore need a combined coverage calculation.

Quantum efficiency at the illumination wavelength, read noise, and usable saturation determine the available signal range. Analog-to-digital converter bit depth describes digitization and does not by itself establish usable dynamic range. Shutter timing affects moving scenes and pulsed illumination, especially when sensor rows have different exposure windows.

Representative images at the intended exposure and field positions provide the basis for assessing feature visibility and measurement behavior. Sustained image delivery also needs confirmation in the selected camera mode.

Try the calculation

FOV & sampling calculator

Turn the part envelope and a preliminary sampling target into minimum image dimensions.

Change the example values to update the results. Use the units shown for each field.

±2 mm adds 4 mm to the horizontal envelope.

Total increase per dimension: 10% multiplies each dimension by 1.10.

An application-dependent starting point; verify contrast and repeatability.

Required FOV, width × height
92.4 × 59.4 mm
Maximum target pixel size
0.06 mm/pixel
Minimum image, width × height
1,540 × 990 pixels
Formula & assumptions

FOV = (part size + 2 × position uncertainty) × (1 + overscan/100). Sampling = feature size ÷ pixels per feature. Minimum pixels = round up(FOV ÷ sampling).

Calculate both axes and include the margins required by the application. Pixel counts describe sampling; optical contrast, motion, noise and the algorithm determine whether the feature can be used reliably.

From estimate to application

Define the camera requirements for your inspection.

Connect your sampling estimate to contrast, motion, sensor performance, and the inspection decision. Bring your part dimensions and smallest feature to an application review.

Review your camera requirements