Traceback (most recent call last): File "D:\py\lib\site-packages\pytesseract\pytesseract.py", line 255, in run_tesseract proc = subprocess.Popen(cmd_args, **subprocess_args()) File "D:\Python37\lib\subprocess.py", line 800, in init restore_signals, start_new_session) File "D:\Python37\lib\subprocess.py", line 1207, in _execute_child startupinfo) FileNotFoundError: [WinError 2] 系统找不到指定的文件。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\pythonProject\test3.py", line 21, in <module> subtitle_text = pytesseract.image_to_string(subtitle_region, config=config) File "D:\py\lib\site-packages\pytesseract\pytesseract.py", line 427, in image_to_string }output_type File "D:\py\lib\site-packages\pytesseract\pytesseract.py", line 426, in <lambda> Output.STRING: lambda: run_and_get_output(*args), File "D:\py\lib\site-packages\pytesseract\pytesseract.py", line 288, in run_and_get_output run_tesseract(**kwargs) File "D:\py\lib\site-packages\pytesseract\pytesseract.py", line 260, in run_tesseract raise TesseractNotFoundError() pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your PATH. See README file for more information.刚刚你修改后报这个错误
时间: 2023-08-07 16:02:31 浏览: 301
ant-learn-python-concurrent-main.zip
这个错误提示是说找不到安装的 OCR 引擎 Tesseract 或者 Tesseract 没有在你的环境变量 PATH 中。为了解决这个问题,你需要安装 Tesseract 并将其添加到 PATH 中。你可以从以下链接下载 Tesseract:https://github.com/UB-Mannheim/tesseract/wiki。安装完成后,将 Tesseract 的安装路径添加到 PATH 中即可。
阅读全文