Open sharifulgeo opened 1 year ago
Why it is returning empty string?
Good question.
If I use reader.decode(your_image, pure_barcode=True)
, then it does work correctly, outputting…
BarCode(raw='https://ldtax.gov.bd/ldtax-holdings/individual-rashid-print-offline/M2ZRY085bkljUkc4a3c1K3JrNlFwUT09',
parsed='https://ldtax.gov.bd/ldtax-holdings/individual-rashid-print-offline/M2ZRY085bkljUkc4a3c1K3JrNlFwUT09',
path='/tmp/235306398-552ee662-2fd3-4cb2-b7a4-0feb00ff50f1.png',
format='QR_CODE', type='URI', points=[])
I wonder if this is a regression in ZXing? What is your reader.zxing_version
? I'm using the latest, 3.5.1
.
I note that the ZXing online decoder (https://zxing.org/w/decode.jspx) also fails to correctly decode this QR code.
I wonder if this is a regression in ZXing? What is your reader.zxing_version? I'm using the latest, 3.5.1.
I note that the ZXing online decoder (https://zxing.org/w/decode.jspx) also fails to correctly decode this QR code.
I've also tested with ZXing 3.4.1, and get the same results. Hmmm.
I've been using --pure-barcode
in all the tests, ever since d583ab0afaed8b6be50e847ddc0daee9f6dba860.
Bug Reports
I am using zxing module of python to decode QR images like attached below. But it returns empty string.
I am using code like below-
from zxing import BarCodeReader
fpath = r"14767.png"
reader = BarCodeReader()
qrcode = reader.decode(fpath)
print(qrcode.raw)
Why it is returning empty string?