dlbeer / quirc

QR decoder library
Other
892 stars 286 forks source link

How to get detected codewords before error correction? #84

Open prnvjb opened 4 years ago

prnvjb commented 4 years ago

Hi, I'm working on code-words error correction algorithm as part of my thesis. I need to show a demo but didn't find any good pure python qrcode reader and my understanding with C is limited. I just want to quickly know how to get detected code words. Can somebody point me in this library to get detected codewords, preferably as an array, before feeding them for error correction. Thanks!

dlbeer commented 4 years ago

On Wed, Jul 29, 2020 at 11:50:38AM -0700, prnvjb wrote:

Hi, I'm working on message code-words error correction algorithm as part of my thesis. I need to show a demo but didn't find any good pure python qrcode reader and my understanding with C is limited. I just want to quickly know how to get message code words. Can somebody point me in this library to get message codewords, preferably as an array, before feeding them for error correction.

You can use quirc_extract() to read out the individual grid cells. Is that what you want?

If you want to go a bit further, look at the source for quirc_decode() and read_data() in decode.c.

Cheers, Daniel

-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B