![]() So I tried the code above with both pyqrcode and qrcode, but both fail at the second line saying AttributeError: 'module' object has no attribute 'Decoder'. The thing I find strange about the example code above however, is that it only imports qrcode (and not pyqrcode though) Since I think qrcode refers to this library which can only generate qr-code images it kind of confused me. So I simply installed it using sudo pip install pyqrcode. PyQRCode ( website here) which supposedly can decode qr codes from images by simply providing a path like this: import sys, qrcode I've found a couple libraries which claim to do this: ![]() I've got a jpg file with a QR-code which I want to decode using Python. ![]() TL DR: I need a way to decode a QR-code from an image file using (preferable pure) Python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |