QRCode Decoder
1) Extract the Video Frames from the Video File.
2) Loop – Till All Frames are Processed
2.1) Find the QRCode Version The version basically just represents the
physical size of the QR code. Count the number of pixels (or modules) across
the QR code, subtract 17, and divide by 4.
2.2) QRCode Format - very QR code stores two identical copies of the
format marker, but we only need one of them. The format marker is 15 bits
long: 5 bits of format information, and 10 bits for error correction. The first 5
bits of the format marker hold the error correction level (2 bits) and the data
mask (3 bits).
2.3) The data section consists of header data chunks. Technically QR
codes are allowed to have several of these chunks, but most QR codes just
have one big chunk that holds all the data, so it won’t matter. The header has
an encoding type and a length (the number of data bytes). The encoding type
is always 4 bits, but the length is stored in 8-10 bits depending on the encoding
type.
2.4) Read the data section. Read the entire section od data bits which
we encode in Hex Code words.
2.5) Loop the Data
a) Extract the file name (delimited as $ symbol)
b) Extract Data length
c) Extract data into 8 blocks
d) Save the extracted data 8 Block data into the file
e) Continue till all the data blocks are processed and Saved
2.6) Concate the data as one single block of data (As we are reading from
a series of Video Frames)
2.7) Continue to Step 2
6) Stop the Scanner
7) Validate the Data
8) Diplay the decoded data
9) Stop