尝试在 Tesseract 上安装阿拉伯语数据时出现错误

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

我正在尝试通过以下命令使用终端在 Tesseract 上安装阿拉伯数据。我已经安装了自制程序

brew install tesseract-ocr-[ara]

但我不断收到此错误。 有什么想法吗?

Error: No available formula with the name "tesseract-ocr-[ara]" 
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

它建议我做一个更深的克隆,因为我只做了一个浅层克隆,所以我这样做了,但它仍然给了我同样的结果。

homebrew tesseract arabic
3个回答
2
投票

brew info tesseract
说:

tesseract: stable 4.1.0 (bottled), HEAD
OCR (Optical Character Recognition) engine
https://github.com/tesseract-ocr/
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tesseract.rb
==> Dependencies
Build: autoconf, autoconf-archive, automake, libtool, pkg-config
Required: leptonica, libtiff
==> Options
--HEAD
    Install HEAD version
==> Caveats
This formula contains only the "eng", "osd", and "snum" language data files.
If you need all the other supported languages, `brew install tesseract-lang`.

这表明您需要运行

brew install tesseract-lang


0
投票

brew install tesseract-ara
正如@jonchang 所指出的,可能会安装快速训练的数据。

对于任何语言支持,您可以下载训练数据(bestfast)并将其放在

/opt/homebrew/Cellar/tesseract/5.3.4_1
中。您可以通过运行
brew info tesseract
来获取路径。


0
投票

尝试运行:

brew install tesseract-lang

它安装其他语言的 tesseract

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