Compiled by: Decker Ayers Github: https://github.com/ayersdecker/PiQRScan-Py
sudo apt-get update
sudo apt-get install python-qrtools
[sudo] pip install pypng
[sudo] pip install zbar
[sudo] pip install pillow
Import Statment
from qrtools import QR
import os
my_QR = QR(data = u"Example")
my_QR.encode()
Command to move the QR code to the desktop
os.system("sudo mv " + my_QR.filename + " ~/Desktop")
Import Statment
from qrtools import QR
my_QR = QR(filename = "home/user/Desktop/qr.png")
Decodes the QR code and returns True if successful
my_QR.decode()
Prints the data
print (my_QR.data)