Python 3.x 虽然我安装了tesseract并将其添加到路径中,但它仍然无法工作
我已从此安装了64位tesseract 我还将“C:\Program Files\Tesseract OCR”添加到系统路径。我进入“系统属性”,然后是“高级”选项卡,然后单击“环境变量…”。然后,我将“C:\Program Files\Tesseract OCR”添加到用户和系统变量的路径中。 在命令提示符中,我键入“cd C:\Program Files\Tesseract OCR”,然后键入“Tesseract”,得到了以下信息:Python 3.x 虽然我安装了tesseract并将其添加到路径中,但它仍然无法工作,python-3.x,jupyter-notebook,anaconda,tesseract,python-tesseract,Python 3.x,Jupyter Notebook,Anaconda,Tesseract,Python Tesseract,我已从此安装了64位tesseract 我还将“C:\Program Files\Tesseract OCR”添加到系统路径。我进入“系统属性”,然后是“高级”选项卡,然后单击“环境变量…”。然后,我将“C:\Program Files\Tesseract OCR”添加到用户和系统变量的路径中。 在命令提示符中,我键入“cd C:\Program Files\Tesseract OCR”,然后键入“Tesseract”,得到了以下信息: Usage: tesseract --help | -
Usage:
tesseract --help | --help-extra | --version
tesseract --list-langs
tesseract imagename outputbase [options...] [configfile...]
OCR options:
-l LANG[+LANG] Specify language(s) used for OCR.
NOTE: These options must occur before any configfile.
Single options:
--help Show this help message.
--help-extra Show extra help for advanced users.
--version Show version information.
--list-langs List available languages for tesseract engine.
但是,当我想在anaconda python笔记本上使用它时,我得到以下错误:
TesseractNotFoundError: tesseract is not installed or it's not in your path`enter code here`
据我所知,您已在计算机上成功安装了tesseract。您只是无法在代码中使用它
要在Python代码中使用TESSACT安装在机器上,您应该考虑使用<强> pytSeSertAs/Stult>包。您可以使用软件包管理器安装PyteSeract
进一步阅读能否请您指定如何在windows系统变量中设置变量。@JayVasant我按照本视频中的说明做了他所做的事情:我也面临着同样的问题。尝试此->当我在Windows上使用pytesseract时,我总是必须告诉它可执行文件的位置:
pytesseract.pytesseract.tesseract\u cmd='C:\\Program Files(x86)\\Tesseract OCR\\Tesseract.exe'
我已经安装了它:要求已经满足:c:\users\…\appdata\local\continuum\anaconda3\envs\tensorflow\lib\site软件包中的pytesseract(0.3.0)要求已经满足:c:\users\…\appdata\local\continuum\anaconda3\envs\tensorflow\lib\site软件包中的枕头(来自pytesseract)(5.3.0)