unicharset_extractor:找不到命令

时间:2016-03-30 09:32:37

标签: terminal ocr tesseract osx-elcapitan micr

我想使用tesseract创建新的列车数据。请按照以下网站中提到的步骤进行操作。

https://blog.cedric.ws/how-to-train-tesseract-301

我在OS X终端执行Unicharset时出现以下错误。

命令:

unicharset_extractor eng.micrtest.exp.box

错误: -bash:unicharset_extractor:找不到命令

我使用以下软件版本

OS:OSX EI标题10.11.1

tesseract 3.04.01  leptonica-1.72   libjpeg 8d:libpng 1.6.21:libtiff 4.0.6:lib 1.2.5

可以在OSx中执行unchaste_extractor命令吗?

提前致谢。

2 个答案:

答案 0 :(得分:14)

问题是“Unicharset_extractor”未安装在您的系统中。所以请安装tesseract培训工具

安装培训工具

  

brew install --with-training-tools tesseract

如果您已经安装了tesseract,请将其卸载。

UNINSTALL TESSERACT

brew uninstall tesseract

注意:请在安装培训工具时阅读日志,并按照日志中提到的步骤进行操作。

安装培训工具需要一些时间,因此您永远不会在终端安静。

请在上面的命令之前安装Homebrew。

答案 1 :(得分:1)

您需要构建Tesseract培训可执行文件;它们与常规的Tesseract可执行文件分开。

https://github.com/tesseract-ocr/tesseract/wiki/Compiling