Skip to main content
[email protected] 24/7 Support
Menu

Barcode module width and scan reliability

posted by mikitaboy1 1 month ago 361 views 0 comments

After a card failed to scan on two scanner apps but worked on a third, I looked into what determines barcode scan reliability. The answer is more technical than I expected.

What module width is

A PDF417 barcode is constructed from narrow and wide bars and spaces. The narrowest element is called the X-dimension or module width. The ratio between narrow and wide elements encodes the data. If the module width is too small, scanner cameras cannot resolve the individual elements clearly enough to decode them — the image of the barcode is effectively below the resolution limit of the camera.

What too-small module width looks like

Under phone camera zoom, a barcode with insufficient module width appears as a solid dark rectangle with barely visible internal pattern. A barcode with adequate module width shows clearly distinguishable vertical elements when zoomed in. If your barcode looks like a grey-black rectangle with faint lines rather than clear bar-space alternation, it is likely printed below the minimum X-dimension for reliable scanning.

Why some apps work and others don't

Different scanner apps use different decode algorithms with different tolerance for low-contrast or narrow-module barcodes. High-tolerance apps (like Cognex) can decode barcodes that simpler apps reject. But if a barcode fails on high-tolerance apps, it will fail everywhere. Venue scanners typically use mid-range tolerance algorithms — a barcode that only works on the most forgiving app is not reliable enough for venue use.

If your card has a borderline barcode, the solution is a replacement from the vendor with better print settings. Barcodes cannot be fixed after printing.

Module width calibration requires the printer to be set correctly for the barcode standard in use — PDF417 on IDs uses specific density settings that determine scan reliability across different scanner hardware. Cards where the barcode passes on one scanner app but fails on another typically have module widths at the edge of acceptable tolerance. A replacement card with correctly calibrated barcode dimensions will scan consistently rather than intermittently.

9

No comments yet. Be the first to comment!

Please login to comment on this thread.