qrtools
qrtools copied to clipboard
overload the decode function with param of file buff
nowadays the function "decode" only with param of filename, Please consider overload the decode function with the param of raw buff.
@zeroleo12345 use io.BytesIO() from io
ie, saving with PILLOW to the io object
our_image = io.BytesIO()
im.save(our_image, format="PNG")
qr = qrtools.QR()
qr.decode(our_image)
print qr.data