Glossary
Interleaving
Interleaving is the reordering of QR code data so that consecutive codewords come from different error-correction blocks. It spreads localised physical damage across multiple blocks, so no single block exceeds its correction capacity.
Why it matters in the real world
Damage to a printed code is almost never randomly distributed. It is a scratch, a fold, a coffee ring, a torn corner — contiguous. Without interleaving, a contiguous blot would destroy one block entirely and be unrecoverable, even though the code as a whole had plenty of spare correction capacity.
With interleaving, that same blot takes a few codewords from each of several blocks, and every block stays within its correction limit.
The practical consequence
A thin scratch across an entire code is often recoverable. A solid blot covering the same total area is more dangerous, because it concentrates damage per block after de-interleaving. And damage over the finder patterns is worst of all — those are not data and cannot be corrected at all.
Related
- Reed–Solomon coding — Reed–Solomon is the error-correcting code that lets a damaged QR code still decode. It adds redundant codewords so that a decoder can reconstruct the…
- Codeword — A codeword is one 8-bit byte in a QR code's data stream. Capacity tables are ultimately expressed in codewords: a version-1 code holds 26 of them, split…
- Finder pattern — The three large concentric squares in the corners of a QR code are finder patterns. A scanner locates them first to work out where the code is, how big it…