pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in your PATH. See README file for more information.
执行的代码:
from PIL import Image
import pytesseract
image = Image.open("C:\\Users\\\huaixiao\\\Desktop\\\多线程爬虫\\day2\\7364.jpg")
result = pytesseract.image_to_string(image)
print(result)
一直提示我未安装tesseract, 但是已经安装, 且已经修改环境变量
修改pytesseract的源码解决
tesseract_cmd = 'E:\\Program Files\\Tesseract-OCR\\tesseract.exe'