Menu

Notes on generating QR codes for print: error correction, logo holes and quiet zones
πŸ“°

Notes on generating QR codes for print: error correction, logo holes and quiet zones

DEV Community: typescriptΒ·Ashish SikkaΒ·7 days ago
#zfARSLZK
#devtotypescript#devto#dev#size#code
Reading 0:00
15s threshold

I work on sellphotos.online , where this was originally published.

Every event on sellphotos.online gets a QR code. Photographers print it on posters, notice boards and table cards, or put it on the last slide at a prize-giving. Guests scan it in poor light, at an angle, through glare on a laminated sheet. We generate the codes ourselves with the small uqr encoder, then draw them with our own code. These are the decisions that came out of that.

Pick the error correction level per medium

QR codes carry Reed-Solomon error correction at four levels. Roughly, these are the share of codewords that can be recovered:

level recoverable

L ~7%

M ~15%

Q ~25%

H ~30%

Higher levels need more modules for the same data, so at a fixed print size each module gets smaller. We use three levels, one for each place a code ends up:

M for codes read off a screen. These are the UPI and Pix payment codes on a buyer's order page. A screen is flat, lit and clean.

Q for printed event codes.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.