# cat blog >> /dev/brain 2> /proc/mind
cat blog >> /dev/brain 2> /proc/mind
# cat mission_06.py from PIL import Image import qrtools n = 25 m = 3 fn = 'mission_06.png' matrix = [255 for i in range(n * n)] with open('mission_06.data') as f: data = f.read().splitlines() for line in data: line = line[1:-1].split(', ') i = int(line[0]) j = int(line[1]) matrix[(i*n) + j] = 0 image = Image.new('L', (n, n)) image.putdata(matrix) image.save(fn) img = Image.open(fn) img = img.rotate(-90) img = img.resize((n * m, n * m), Image.ANTIALIAS) img.save(fn) qr = qrtools.QR(filename = fn) if qr.decode(): print qr.data # python mission_06.py Mirrored QR? Seriously?!
cat mission_06.py
python mission_06.py
Post a Comment
No comments:
Post a Comment