Created
June 2, 2021 15:33
-
-
Save emaia/baa8e6b328c60f718d643e963ec63396 to your computer and use it in GitHub Desktop.
Decodificar QR Code a partir de arquivos de imagens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo apt install python-qrtools | |
import qrtools | |
import glob | |
images = sorted(glob.glob('./images/*.png')) | |
qr = qrtools.QR() | |
for image in images: | |
qr.decode(image) | |
print qr.data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment