Finder Pattern: QR Codes Neden Üç Kareye Sahiptir
The 1:1:3:1:1 ratio, detection algorithm, and why three squares in specific corners enable instant orientation from any angle.
The Finder Pattern: Why QR Codes Have Three Squares
The three large squares in every QR code are finder patterns — the most recognisable and critical structural component. Without them, a scanner could not locate, orient, or decode the symbol.
The 1:1:3:1:1 Ratio
Each finder pattern is a 7x7 module structure: a 3x3 dark centre, surrounded by a 1-module white ring, surrounded by a 1-module dark ring. When scanned along any horizontal, vertical, or diagonal line through the centre, the dark-to-light transitions always produce a 1:1:3:1:1 width ratio.
This ratio is the key to detection. No other commonly occurring pattern in nature or printing reliably produces this specific ratio. Scanners check every line scan for this signature, making QR code detection extremely robust.
Why Three Patterns?
Three finder patterns in known relative positions serve multiple purposes:
- Detection: Any single finder pattern confirms a candidate QR code
- Orientation: Three points define a plane, establishing the code's rotation
- Scale: The known distance between finders reveals the module size
- Perspective: With three reference points, the decoder can correct for viewing angle
The three finders are always in the top-left, top-right, and bottom-left corners. The bottom-right corner is deliberately left open for alignment patterns and data.
Detection Algorithm
The scanner processes image rows (and optionally columns) looking for the 1:1:3:1:1 transition pattern. When a candidate is found:
- Cross-check perpendicular to the scan direction
- Cross-check diagonally through the centre
- Verify the module count ratio
- Group nearby detections (the same finder is detected on many scan lines)
- Look for three finders in a valid geometric arrangement (two share a horizontal line, two share a vertical line)
Robustness Features
The finder pattern design handles numerous real-world challenges:
- Rotation: The 1:1:3:1:1 ratio is detected at any angle (0-360 degrees)
- Scale: The ratio is scale-invariant — works from tiny printed codes to billboard-sized ones
- Partial obstruction: Even with one finder partially covered, the remaining two can suffice (with reduced reliability)
- Perspective distortion: Three known points enable affine transformation correction
Micro QR Difference
Micro QR codes have only one finder pattern (top-left corner), which reduces size but limits the detection and orientation capabilities compared to standard QR codes.
Key Takeaways
- The 1:1:3:1:1 ratio is a unique, scale-invariant detection signature
- Three finder patterns enable rotation, scale, and perspective determination
- The bottom-right corner is intentionally left without a finder
- Detection works across any angle and at virtually any scale
- Micro QR codes reduce to a single finder pattern