今天给大家分享一个自动扫描的脚本:

# Qrcode Scanner
# pip install qrtools

from qrtools import Qr
def Scan_Qr(qr_img):
    qr = Qr()
    qr.decode(qr_img)
    print(qr.data)
    return qr.data
    
print("Your Qr Code is: ", Scan_Qr("qr.png"))