QR encoder Day 2, relationship between size of Message and size of code.

code available at https://github.com/grimley517/QREncoder

Key question - What is the relationship between the size of the message and the size of the QR code?

My mind is active mow, the size of the message should determine the size of the QR code.

For testing purposes we can assume that section 7d is correct - 7089 characters of numeric data, or 4296 characters of alphanumeric data should result in a Version 40 code.  And 7090 characters, or 4297 characters should result in a value error.


Step 2 - Working out the message type

Before we can work out the qr code size, we need to work out the message type.  This allows us t


Tests for message recognition.

New initialiser for qr code - note removal of size argument.
This data is recorded in table 1 - there are two options for this - either the table can be encoded directly as a dictionary or list, or it can be made into a function.  Although it is tempting to put this into a function the memory required to store it in a list makes it attractive just to type it in.

But thats for tommorrow.

Comments

Popular Posts