Re:Show HN: I open sourced the QR designer from my failed st...
by tyingq on Tuesday May 30, 2023 @07:22PM
(#36132514)
I assume there's a bit more to it, but QR codes inherently support a "mask" that tells the scanner parts of the image to ignore. So you could do at least some of that with the mask. It's not real flexible, so there's perhaps other tricks also.
[ Parent
| on HN ]
Re:Show HN: I open sourced the QR designer from my failed st...
by bmicraft on Tuesday May 30, 2023 @10:43PM
(#36133890)
I was under the assumption that the mask was just a short static pattern XORd over the data?
Re:Show HN: I open sourced the QR designer from my failed st...
by CalebJohn on Wednesday May 31, 2023 @02:13AM
(#36135084)
It is, the QR code spec details a few specific masks that are available. The one which produces the best QR code is chosen (best in this case means most clear/easiest for a scanner to read. So, no large blocks of white or black).
Wikipedia has a pretty good visual of this. https://en.m.wikipedia.org/wiki/QR_code#Encoding