Skip to content

Instantly share code, notes, and snippets.

@cmattoon
Created March 18, 2015 01:31
Show Gist options
  • Save cmattoon/f7a2c5a4c5265827f58d to your computer and use it in GitHub Desktop.
Save cmattoon/f7a2c5a4c5265827f58d to your computer and use it in GitHub Desktop.
Decode a QR code
#!/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