Transferring data through a sequence of QR codes using a fountain code.
This tool enables file transfers by generating multiple QR codes using the Luby Transform Code thanks to anrosent/Lt-code. This fountain code allows the receiver to scan the QR codes in any order while minimizing the amount of data required to retrieve the complete file.
git clone git@github.com:dridk/qrfontain
cd qrfontain
python -m virtualenv venv
pip install -e .
You can stream data to QR Codes using a generator of PIL Images:
import qrfontain
with open("big.txt", "rb") as file:
for image in qrfontain.data_to_qrcode(file):
# Display image
# show(image)
You can decode PIL images as follow :
import qrfontain
with open("output.txt", "wb") as file:
# Get QR Code images
# images = Generator..
data = qrfontain.data_from_qrcode(images)
file.write(data)There is a short hand to create a video with a sample of qrcode generated :
import qrfontain
qrfontain.create_video("big.txt", "big.webm")qrfontain --input big.txt --output big.webm
I made a GUI to extract animated QR codes from your desktop.
Install Pyside6 pip install pyside6 and run python gui_receiver.py
