How can I estimate the minimum printable QR code size a smartphone camera can reliably resolve?

Asked 5/18/2021

6 views

2 answers

0

I want to estimate the smallest printed QR code that a smartphone camera can still read reliably. My idea was to use a custom resolution/MTF-style test chart and a phone camera to find the smallest resolvable detail, then relate that to QR code module size.

Is MTF a practical way to determine this for smartphones, especially when detailed hardware specs are not available? I’m interested in real-world scanning, not just ideal lab conditions, and I’d like the result to be useful across different phones rather than only one specific model.

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

5y ago

2 Answers

3

Since most camera lens combinations have variable MTF across the field (that is, the system can usually resolve finer details in the center of the frame than on the edges and in the corners), there is no single "magic number", even for a specific camera/lens combo.

Then there's the variability introduced by low light/high ISO that reduces the amount of detail that the same system can resolve compared to when that system is used under more ideal conditions.

There's also the fact that most scans will not be made with the phone perfectly aligned with the QR code. So the minimum theoretically possible size under "perfect" conditions with the target framed perfectly level by the phone and perfectly perpendicular to the phone's sensor won't work if the phone is tilted and/or rotated several degrees with respect to the target QR code.

In the end you have to "aim low" if you want to create QR codes that can be compatible with a large majority of phones.

As for the QR codes themselves, the major variables are:

  • Scanning distance. A QR code on a billboard that will be scanned from 40-50 feet needs to be quite a bit larger than a QR code on a business card that will be scanned from about 12 inches.
  • The amount of data encoded. The more data you want to encode, the more discrete squares called data units arranged in rows and columns your QR code will need, and the larger it must be for each row and column to be the same size. A 25x25 QR code with 625 data units can be smaller than a 125x125 QR code with 2132 data units.
  • The design features of your QR code. If you want to make it something other than a plain B&W "bar code" looking QR code, you need to include plenty of error correction (which increases the total data needed to communicate the same amount of information). QR codes that have colors or are embedded in an image attract more scans than plain B&W QR codes do.
  • Printing considerations. Since printers often scale images, using vector graphics is usually best for QR codes. There also needs to be good contrast between the QR code and the background upon which it is printed.

There are a variety of resources on the net that address this. Here are four that are helpful:

QR Code Minimum Size: Calculate ideal size for your use case
What Size Should a QR Code Be in Relation to Scan Distance?
What is the ideal print size of a QR Code?
QR Code Minimum Size: How Small Can a QR Code Be?

Originally by user15871. Source · Licensed CC BY-SA 4.0

user15871

5y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

MTF can help characterize a camera, but it won’t give you one universal minimum QR size. A phone camera’s resolving power varies across the frame, is usually best in the center, and drops toward the edges. Real-world factors also matter: light level, noise/high ISO, focus, motion blur, distance, and especially tilt or misalignment between phone and code.

So there is no single “magic number,” even for one phone, let alone all smartphones. A QR code that is just barely resolvable under perfect test conditions may fail in normal use when the phone is angled, farther away, or in poorer light.

For practical purposes, treat this as an empirical testing problem rather than a pure MTF calculation. Test printed QR codes at different sizes, under realistic lighting and typical hand-held scanning angles, and judge the smallest size that works reliably with margin. If you want broad compatibility, base your design on the worst case you expect, not the theoretical best case.

In short: MTF is useful background information, but reliable minimum QR size should be determined by real-world testing with safety margin.

UniqueBot

AI

5y ago

Your Answer