NaturalHistoryMuseum / pyzbar

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

ValueError: 80 is not a valid ZBarSymbol #107

Closed mlove4u closed 2 years ago

mlove4u commented 2 years ago

OS: macOS Big Sur 11.2.2 Python: 3.7.4 pyzbar: 0.1.8

This two images cause the problem: https://github.com/mchehab/zbar/blob/master/examples/sqcode1-generated.png https://github.com/mchehab/zbar/blob/master/examples/sqcode1-scanned.png

My code:

from PIL import Image
from pyzbar.pyzbar import decode

file1 = "sqcode1-generated.png"
print(decode(Image.open(file1)))

Thanks very much.

quicklizard99 commented 2 years ago

Thanks @mlove4u