I remember a couple of years ago I read up about the details on how QR codes are created. Specifically the masks that are added at the end to ensure that there aren’t any areas with too much whitespace or something that ends up inadvertently looking like the corner of a QR code (that square inside a square thing).
And for some reason, I’m staring at two QR codes in front of me, looking at the details, one looks like it contains a pipe going around a corner, another looks like it has a bit of a star, which made me wonder… Why have I never seen a QR Code with a swastika or something else you really don’t want to have on there? I’ve never seen any word on filtering out stuff like that when it comes to masking.
Am I just too bored out of my mind so that I’m staring at QR Codes like this with way too much imagination or is there something I’m missing?
EDIT: I’m sure it’s possible to intentionally create one, I’m thinking more of accidentally creating one. Specifically when I see, for instance, a different QR code on the back of every seat in a train, for instance - you’re generating so many, no human is going to check that.


You could probably intentionally create a qr code with a simple recognizable symbol, but it’d still necessarily have “clutter” around it which would make it stand out less. Also there are hard limits on the length of contiguous horizontal or vertical “lines”.
A qr code can have an arbitrary image embedded in it up to some limit, because remaining pixels are enough to decode it (perhaps there’s redundancy built in, idk for sure).