One Wonder a Day

Why Do QR Codes Have Three Large Squares?

The three large squares in the corners of a QR code do not contain the message. They tell a scanner where the message is.

Traditional barcodes were usually read by moving a scanner across them in one direction. When Masahiro Hara and his team at the Japanese company Denso Wave developed the QR code in 1994, they wanted factory workers to scan automobile parts quickly from almost any angle.

The three large squares became position detection patterns. Because each occupies a different corner, software can identify the code's location, size, and orientation, even when it appears tilted or upside down. A fourth large square would make orientation less obvious because every corner would look alike.

The team selected the pattern inside each square after studying printed materials to find a sequence of black and white areas that rarely appeared elsewhere. This reduced the chance that a scanner would mistake ordinary text or graphics for part of the code.

Smaller patterns help correct distortion, while error correction allows many codes to remain readable despite dirt or damage.

Those three squares are therefore not decoration. They are landmarks that let a camera find its way around the code before reading anything stored inside it.

Source: QR Code Development Story, Denso Wave - Two Dimensional Symbols for Automatic Identification, Hiroko Kato and colleagues

Namaqua chameleon near Swakopmund, Namibia

Namaqua chameleon near Swakopmund, Namibia

Source: Yathin S Krishnappa

Receive tomorrow's wonder!

Daily emails are not live yet but coming soon.