Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from pyzbar.pyzbar import decode
from PIL import Image
img = Image.open('qrcode.png')
result = decode(img)
for i in result:
print(i.data.decode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment