def read(name): ''' Read a QR code .png file :param name: name of file w/out .png :return: the info/data of the QR code ''' code = QR() code.decode(name + ".png") return code.data
import pyqrcode qr = pyqrcode.create("HORN O.K. PLEASE.") qr.png("horn.png", scale=6) from qrtools.qrtools import QR qr = QR() qr.decode("horn.png") print(qr.data)
def decodeQR(self, img): qr = QR(filename='QRCode1.png') qr.decode() print qr.data
def home(): qr = QR(filename="./static/qrcode.png") qr.decode() print(qr.data) print(qr.data_type) print(qr.data_to_string())
from qrtools.qrtools import QR qr = QR() file = qr.decode("challenges.hackvent.hacking-lab.com.png") print(file.data)