NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
728 stars 176 forks source link

Swiss Bill QR Code #71

Open acikota opened 4 years ago

acikota commented 4 years ago

Dear authors, all,

Compliments on the nice tool, which usually works perfectly well, however, I am unsucessfully trying to read a QR code from a Swiss Bill, e.g.

qr6

The code I am using is very simple:

from pyzbar.pyzbar import decode
from pyzbar.pyzbar import ZBarSymbol

image = Image.open('qr6.png').convert('RGB')
print(decode(image, symbols=[ZBarSymbol.QRCODE]))

I receive no error message. The QR code is not begin recognized.

I tried to read a number of similar QR code examples, also unsuccessfully, however, I can read them using my mobile phone QR Code Reader. I would very appreciate if you could investigate what the problem is. My suspicion is that the QR code is too large, and perhaps I need to change some parameters, e.g. in the wrapper.py?

Thank you!