summaryrefslogtreecommitdiff
diff options
authorLukas Waymann <lukas.waymann@canonical.com>2020-11-16 15:12:41 +0800
committerLukas Waymann <lukas.waymann@canonical.com>2020-11-25 18:22:12 +0800
commit10a3c02ebc745d9a74c1d4ccfdd39d2962653b80 (patch)
tree46f7ea2f9e57563d49f664d3055315bc1deaac8a
parent22dda6a1fa8d68d0466b5cfc87b96e0c5ed36180 (diff)
camera/roundtrip-qrcode_*: reduce the size of QR codes
Reduce the size of QR codes that camera/roundtrip-qrcode_* tests display to make them fit on the relatively small screens we have in the certification lab.
-rwxr-xr-xbin/roundtrip_qr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/roundtrip_qr.py b/bin/roundtrip_qr.py
index c3494e2..4ca0691 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):
@@ -72,7 +72,7 @@ def display_code(qr, tty):
# 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):