Created
March 18, 2015 01:31
-
-
Save cmattoon/f7a2c5a4c5265827f58d to your computer and use it in GitHub Desktop.
Decode a QR code
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
#!/usr/bin/env python | |
""" | |
Decodes a QR code image. | |
Usage: ./decode.py /path/to/image | |
""" | |
import qrtools, sys | |
qr = qrtools.QR() | |
qr.decode(sys.argv[1]) | |
print("Message is: %s" % (qr.data)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment