我正在尝试通过以下命令使用终端在 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.
它建议我做一个更深的克隆,因为我只做了一个浅层克隆,所以我这样做了,但它仍然给了我同样的结果。
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
。
尝试运行:
brew install tesseract-lang
它安装其他语言的 tesseract