Mask Pattern
A mask pattern is a black-white inversion pattern applied to the data area of a QR code. Eight patterns are defined, and the most readable one is automatically selected during encoding.
The purpose of masking is to reduce imbalance between black and white modules and prevent accidental formation of patterns resembling finder patterns. Without proper masking, scanners may misidentify the QR code structure.