I made a fake QR-code generator, but I want to convert it into a working text to QR-code generator. For this I need to know how QR codes work.
This is all the information I can find:
- A QR code contains position indicators, format information converted into monochrome blocks, data converted into monochrome blocks.
- A higher version of a QR code means a bigger size.
- There are 4 "error correction levels" (L, M, Q, and H). L has the lowest error correction capability but can contain more data.
- It is also possible to set a mode, like numeric or alphanumeric. The alphanumeric mode indicator (probably for URLs and text) is "0010".
- The QR code also contains a character count indicator. If the QR code is "hello", 5 characters need to be indicated in binary (000000101).
- The version information is stored near two position indicators.
- The format information is also stored near position indicators.
Where can I find more information about where and how to put information in a QR-code?
Line (11, 11)-(46, 46), 15, BF:
Line (10, 10)-(47, 47), 1, B
' white square with blue border Line (12, 12)-(19, 19), 0, B:
Line (14, 14)-(17, 17), 0, BF
' square 1 y
= 26:
Line (12 + y
, 12)-(19 + y
, 19), 0, B:
Line (14 + y
, 14)-(17 + y
, 17), 0, BF
' square 2x
= 26:
Line (12, 12 + x
)-(19, 19 + x
), 0, B:
Line (14, 14 + x
)-(17, 17 + x
), 0, BF
' square 3
' Here some random fake data