【发布时间】:2019-10-04 05:07:48
【问题描述】:
我已经从这个page 安装了 tesseract 64 位。
我还将“C:\Program Files\Tesseract-OCR”添加到系统路径。我转到“系统属性”,然后是“高级”选项卡,然后单击“环境变量...”。然后我将“C:\Program Files\Tesseract-OCR”添加到用户和系统变量的路径中。 在命令提示符下,我输入“cd C:\Program Files\Tesseract-OCR”,然后输入“tesseract”,得到以下信息:
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 notebook 上使用它时,出现以下错误:
TesseractNotFoundError: tesseract is not installed or it's not in your path`enter code here`
【问题讨论】:
-
你能指定你如何在windows系统变量中设置变量。
-
@JayVasant 我按照视频中的说明做了他所做的:youtube.com/watch?v=YM8j9dzuKsk
-
我也面临同样的问题。试试这个 -> github.com/UB-Mannheim/tesseract/wiki
-
当我在 Windows 上使用 pytesseract 时,我总是要告诉它可执行文件在哪里:
pytesseract.pytesseract.tesseract_cmd = 'C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe'
标签: python-3.x jupyter-notebook anaconda tesseract python-tesseract