Fancy QR Codes via Genetic Algorithms
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
LICENSE.md
README.md
qrga.py

README.md

QRGA

This project uses genetic algorithms to create QR codes which look like desired target images (e.g., company / product logo).

Target Mask Output

Target Mask Output

Target Mask Output

Target Mask Output

Target Mask Output

Target Mask Output

Prerequisites

This project uses the zbarimg and qrencode tools (i.e., the zbar-tools and qrencode packages in Ubuntu). Additionally, the following are imported by the Python3 script:

import argparse
import math
import subprocess
import os
import time
import warnings
import imageio
import numpy
from skimage import transform
import dask
from dask.diagnostics import ProgressBar
import threading
import tkinter
from PIL import Image, ImageTk

This might help:

pip install argparse imageio numpy dask distributed psutil scikit-image tkinter

Running

Example runline:

python qrga.py --target crow.png --mask crow-mask.png --output crow-qr.png --data 'http://www.aaronvose.net' --gui

Authors

License

This project is licensed under the GPLv3 License - see the LICENSE.md file for details