Fixed-mount barcode scanner testing barcode resolution and depth of field

Barcode Scanner Resolution and Depth of Field: A Practical Guide

A barcode scanner can support the correct symbology and still fail in the real application. One of the most common reasons is a mismatch between the smallest barcode feature, the camera resolution, the field of view and the required reading distance.

This guide explains barcode scanner resolution, module size and depth of field in practical terms. It is intended for OEM engineers, system integrators and buyers selecting a barcode scan engine or fixed-mount barcode scanner.

What does barcode resolution mean?

In barcode specifications, resolution normally refers to the narrowest bar in a 1D barcode or the smallest square module in a 2D code that a scanner is designed to resolve. This feature is often expressed in millimeters or mils. One mil equals one thousandth of an inch, or 0.0254 mm.

For example, a 5 mil feature is approximately 0.127 mm wide, while a 10 mil feature is approximately 0.254 mm. A lower mil value means a smaller and denser code. Small modules occupy fewer image pixels, so they generally require finer optics, an appropriate reading distance and more controlled presentation.

Why the minimum mil rating is not enough

A scanner data sheet may list a minimum resolution, but that figure should not be treated as a promise that every code of that size can be read at every distance. The result also depends on:

  • Barcode symbology and total physical size
  • Print quality, contrast and quiet zones
  • Reading distance and lens focus
  • Field of view and sensor pixel count
  • Motion, exposure time and illumination
  • Surface curvature, glare and viewing angle
  • Decode settings and image processing

A clean laboratory label can decode more easily than a code printed at the same nominal size on a glossy package, curved vial or worn warehouse label. Always evaluate the complete application rather than comparing one specification line.

Depth of field vs reading distance

Reading distance is the space between the scanner and the barcode at a particular test point. Depth of field is the usable distance range over which the scanner can maintain reliable decoding for a defined code.

A scanner might read a large 20 mil code over a wide range but read a small 5 mil code only within a narrower focus zone. For this reason, depth-of-field tables usually specify both the barcode type and module size. A range measured with one test code should not be applied automatically to a different label.

Field of view creates a resolution trade-off

Field of view is the physical area visible to the scanner at a given distance. Increasing reading distance usually increases the visible area. That helps when barcode position varies, but it also means the same barcode occupies fewer pixels in the captured image.

This creates an important design trade-off: a wide field can cover more possible label positions, while a narrow field provides more pixels for a small code. The correct setup must cover the required position tolerance without making the smallest barcode too small in the image.

When a single reader cannot provide both wide coverage and fine resolution, consider controlling label placement, changing the mounting distance, selecting different optics or using more than one reader.

How to estimate the real requirement

1. Measure the smallest barcode feature

Do not estimate from the outer label dimensions. Obtain the barcode specification or measure the narrowest 1D bar or 2D module. Record the actual production range because printers, media and artwork scaling can change the result.

2. Record the complete barcode size

Two codes with the same module size can have very different overall dimensions. Data content, error correction and symbology affect the number of modules. The entire symbol, including quiet zones, must fit inside the field of view.

3. Define the near and far positions

Measure the closest and farthest possible barcode surfaces, not only the nominal mounting distance. Include package-height variation, assembly tolerances, vibration and operator movement. In a kiosk, also consider how far users can hold a phone or ticket from the window.

4. Include angle, motion and ambient light

A code viewed at an angle appears compressed in one direction. Motion can blur small features, while direct sunlight or reflections can reduce contrast. Record the worst credible conditions so testing represents the installation.

Practical sample-testing method

Before approving a scanner, create a test matrix using real production samples. Include the smallest, largest, best and worst labels. If labels come from several printers or suppliers, test each source.

  1. Mount the scanner with the intended bracket and protective window.
  2. Test the nearest, nominal and farthest barcode positions.
  3. Repeat at the expected horizontal and vertical position limits.
  4. Test every expected orientation and surface angle.
  5. Run moving samples at the maximum operating speed.
  6. Test normal, low and high ambient-light conditions.
  7. Record first-read rate, decode time and all no-read samples.

A successful test should be repeatable. A scanner that reads a difficult sample once after several attempts may not deliver a stable production process.

Common causes of small-barcode no-reads

  • Insufficient pixels per module: the barcode is too small within the selected field of view.
  • Outside the focus range: the label is closer or farther than the usable depth of field for that module size.
  • Poor printing: bars spread, modules merge, edges become uneven or contrast is low.
  • Motion blur: exposure is too long for the product or scanner movement.
  • Glare: glossy packaging or a protective window reflects illumination into the reader.
  • Perspective distortion: the barcode angle makes modules too narrow in the captured image.
  • Incorrect configuration: the symbology is disabled or decode settings are unsuitable for the target code.

What to send a scanner supplier

A useful application request includes more than the words “small barcode.” Send the following information:

  • Barcode symbology, module size and overall dimensions
  • Clear photos and physical samples where possible
  • Near, nominal and far reading distances
  • Required field of view or label-position tolerance
  • Maximum movement speed and trigger method
  • Surface material, curvature and expected lighting
  • Available mounting space and interface requirements
  • Target first-read rate and acceptable decode time

This information allows the supplier to recommend optics and hardware around a measurable task instead of relying on a generic model comparison.

Frequently asked questions

Is a higher-megapixel scanner always better?

No. Sensor resolution matters, but lens quality, focus, illumination, processing and the selected field of view also determine performance. The best scanner is the one validated against the real code and installation geometry.

Does a smaller minimum mil number mean a longer reading range?

Not necessarily. Fine-code capability and long-range capability are different optical requirements. A scanner may resolve a small code only at a short, controlled distance while reading a larger code much farther away.

Can software compensate for insufficient optical resolution?

Image processing can improve decoding within limits, but it cannot reliably recover barcode detail that was never captured. Correct optics, distance, focus and lighting come first.

Should we test printed samples or images on a screen?

Use the actual medium. A phone screen, paper label, etched metal mark and glossy package have different contrast and reflection behavior. Test the exact presentation used in production.

Choose the scanner around the real barcode

Reliable barcode reading comes from matching module size, field of view, depth of field, motion and lighting to the actual workflow. Define these requirements early and validate representative samples before the mechanical design is frozen.

Explore TechBarcode OEM scan engines and fixed-mount readers, or send our team your barcode samples and integration requirements for a model recommendation.

Back to blog