gpt4 book ai didi

macos - tesseract 安装 mac os

转载 作者:行者123 更新时间:2023-12-04 20:11:08 25 4
gpt4 key购买 nike

我正在尝试使用 homeBrew 在我的 Mac 上安装 tesseract。当我尝试安装时,一切似乎都很好,但我收到以下错误/消息:

Warning: Could not link leptonica. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link leptonica'

当我尝试运行 tesseract 函数时,出现以下错误:
Tesseract Open Source OCR Engine v3.02.02 with Leptonica
Error in pixReadStreamPng: function not present
Error in pixReadStream: png: no pix returned
Error in pixRead: pix not read
Unsupported image type.

我安装了 image magick,我用来安装 tesseract 的命令是:
brew install tesseract

谁能告诉我我能做些什么来让tesseract工作?谢谢!

编辑
当我运行 brew link leptonica 时,出现以下错误:
Could not symlink file: /usr/local/Cellar/leptonica/1.69/bin/yuvtest
Target /usr/local/bin/yuvtest already exists. You may need to delete it.

最佳答案

现在,截至 2019 年 9 月,不再有任何可选的安装标志可用

brew options tesseract

一无所获。但,
brew info tesseract

产生以下关键信息:
This formula contains only the "eng", "osd", and "snum" language data files.
If you need all the other supported languages, `brew install tesseract-lang`.

因此,要安装所有语言,您现在需要安装一个名为 tesseract-lang 的单独库。 .

更新安装:
brew install tesseract
brew install tesseract-lang

希望这可以帮助。

旧的,以防万一这很有用:

现在,截至 2019 年 1 月,只要您先安装了 xquartz,Tesseract 就可以通过 Homebrew 软件正常安装, brew cask install xquartz .然后您可以执行以下操作: brew install tesseract --with-all-languages --with-serial-num-pack --with-training-tools

关于macos - tesseract 安装 mac os,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17140753/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com