diff options
| -rwxr-xr-x | bin/roundtrip_qr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/roundtrip_qr.py b/bin/roundtrip_qr.py index 3c1b98a..4cb6592 100755 --- a/bin/roundtrip_qr.py +++ b/bin/roundtrip_qr.py @@ -54,7 +54,7 @@ def capture_webcam(name): def generate_data(): - return ''.join(random.choice(string.ascii_letters) for i in range(20)) + return ''.join(random.choice(string.ascii_letters) for i in range(10)) def generate_qr_code(data): @@ -66,7 +66,7 @@ def display_code(qr): # clear the tty so the qr is always printed at the top of the sceen term.write(str.encode('\033c')) # print the qr code - term.write(qr.terminal(quiet_zone=5).encode()) + term.write(qr.terminal(quiet_zone=1).encode()) def decode_image(filename): |
