更新时间:2022-11-30 17:01:28
我怀疑一些事情,但不确定.
I suspect a few things, not sure about any though.
首先,也是最明显的,Tesseract 的路径并不完整.它应该是这样的:
First and the most obvious, the path to Tesseract is not complete. It should be something like:
tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\tesseract'
我相信您的路径指向目录/文件夹而不是可执行文件,但只有您可以确认.如果这不正确,请告诉我,我也看到了一些乍一看不正确的内容,但需要更多调查.
I believe your path points to a directory/folder and not an executable, though only you can confirm that. Let me know if this is incorrect, I see something else too that doesn't seem right at first, but needs more investigation.