lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.34k stars 664 forks source link

Library works fine with small json but with jsons upto 4 kb we are not able to decode data back from qrcode. #224

Open punitaojha opened 3 years ago

punitaojha commented 3 years ago

Here is a google colab link https://colab.research.google.com/drive/1SToqOjzAyHPtJVeUSJMxnDbPcFUHXtvj?authuser=5#scrollTo=whr2DrzrMGT5

you will see that when we uncomment small json with only two keys we get right results, otherwise with big json either we get some numbers in byte string which cannot be decoded back or empty array.

Vasiliy566 commented 3 years ago

i had same @punitaojha 1 I tried to code with qrcode.make() and decodes with qrtools.QR, so it was about 0.05% QR codes with long = 200 that was' not detected 2 I changed qrtools.QR reader to pyzbar.pyzbar.decode - so that issue closed for me that way https://pypi.org/project/pyzbar/

turicas commented 2 years ago

There's a limit in the QRcode spec where you can store up to ~2.9kB of data (more info).