Skip to content

Instantly share code, notes, and snippets.

@wfng92
Created September 15, 2020 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wfng92/a5e089d78df23d92c0c5e1201379489e to your computer and use it in GitHub Desktop.
Save wfng92/a5e089d78df23d92c0c5e1201379489e to your computer and use it in GitHub Desktop.
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