unicharset_extractor:找不到命令

问题描述 投票:0回答:2

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

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

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

命令:

unicharset_extractor eng.micrtest.exp.box

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

我有使用以下软件版本

操作系统: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 命令吗?

提前致谢。

terminal ocr tesseract osx-elcapitan micr
2个回答
15
投票

问题是“Unicharset_extractor”没有安装在你的系统中。所以请安装tesseract训练工具

安装培训工具

brew 安装 --with-training-tools tesseract

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

卸载 TESSERACT

brew uninstall tesseract

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

安装培训工具需要更多时间,因此您永远不会同时关闭终端。

请在执行上述命令之前安装 Homebrew。


1
投票

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

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

© www.soinside.com 2019 - 2024. All rights reserved.