-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hello,
This QR code appears to be wrongfully decoded by qrtools:

It contains the url "https://qrwm.org/Q34189?pk_campaign=transdev&pk_kwd=Q209101", but qrtools wrongfully decodes it as the text "41" :
import qrtools
qr = qrtools.QR()
qr.decode("test.png")
print(qr.data)
print(qr.data_type)
print(qr.data_to_string())
returns
41
text
b'\xef\xbb\xbf41'
Context: I have generated ~500 similar QR codes through https://qrwm.org for being printed and displayed on bus stops and so I made a small script using qrtools and a regex to check if everything is ok. This is the only one that returns an error. At first I thought I did something wrong with this particular QR code, but if I scan it with my phone or an online decoder like https://zxing.org/, it returns the URL, so I think the problem is with this library.
Metadata
Metadata
Assignees
Labels
No labels