Esempio n. 1
0
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
Esempio n. 2
0
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)
Esempio n. 3
0
 def decodeQR(self, img):
     qr = QR(filename='QRCode1.png')
     qr.decode()
     print qr.data
Esempio n. 4
0
def home():
    qr = QR(filename="./static/qrcode.png")
    qr.decode()
    print(qr.data)
    print(qr.data_type)
    print(qr.data_to_string())
Esempio n. 5
0
from qrtools.qrtools import QR

qr = QR()
file = qr.decode("challenges.hackvent.hacking-lab.com.png")
print(file.data)