无法识别Pytesseract。我已经尝试了在线文档中记录的所有修复,包括将tesseract OCR添加到我的Path变量中,将pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'命令路径整合到我的脚本中,卸载并重新安装pytesseract和tesseract。
发布于 2020-03-06 18:38:44
在第23行vpnbookpassword = pytesseract.image_to_string(pwdi)中,您提到了pytesseract.image_to_string,但是您导入的是image_to_string from pytesseract import image_to_string,而不是pytesseract,因此它找不到pytesseract。所以把它写成vpnbookpassword = image_to_string(pwdi)就可以解决这个问题了
https://stackoverflow.com/questions/60556661
复制相似问题