2021-08-05 12:12:07 -04:00
|
|
|
try:
|
|
|
|
import qrio
|
|
|
|
except:
|
|
|
|
print("SKIP")
|
|
|
|
raise SystemExit
|
|
|
|
|
|
|
|
loc = __file__.rsplit("/", 1)[0]
|
2022-08-12 09:34:33 -04:00
|
|
|
with open(f"{loc}/data/qr.pgm", "rb") as f:
|
2021-08-05 12:12:07 -04:00
|
|
|
content = f.read()[-320 * 240 :]
|
|
|
|
|
|
|
|
decoder = qrio.QRDecoder(320, 240)
|
|
|
|
for r in decoder.decode(content):
|
|
|
|
print(r)
|