sudo apt-get install python-qrtools
Created
April 5, 2025 18:11
-
-
Save nenodias/f2d1a82064d48791f10c2e4d53d61061 to your computer and use it in GitHub Desktop.
Python QRCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyqrcode | |
qr = pyqrcode.create("HORN O.K. PLEASE.") | |
qr.png("horn.png", scale=6) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
from pyzbar.pyzbar import decode | |
data = decode(Image.open('horn.png')) | |
print(data[0].data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pyqrcode | |
pypng | |
pyzbar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment