Python 调用 Tesseract 识别验证码

    import subprocess
    
    subprocess.call(["tesseract", "captcha.jpg", "captcha"])
    outputFile = open("captcha.txt", 'r')
    print(outputFile.read())
    outputFile.close()
    

    参考:《Python网络数据采集》

    validate