我正在尝试使用homeBrew在我的Mac上安装tesseract.当我尝试安装时,一切似乎都很好,但是出现以下错误/消息:
I am trying to install tesseract on my mac using homeBrew. When I try installing, everything seems to be good but I get the following error/message:
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函数时,出现以下错误:
When I try running a tesseract function, I get the following error:
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的命令是:
I have image magick installed and the command I used to install tesseract was:
brew install tesseract有人可以告诉我如何使tesseract工作吗?谢谢!
Can anyone please tell me what I can do to get tesseract working? Thank you!
编辑 当我运行brew link leptonica时,出现以下错误:
EDIT When I run brew link leptonica, I get the following error:
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月,不再提供任何可选的安装标志
Now, as of September 2019, there are no longer any optional install flags available
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的单独的库.
Therefore, to get all of the languages installed, you need to now install a separate library called tesseract-lang.
更新的安装:
brew install tesseract brew install tesseract-lang希望这会有所帮助.
旧,以防万一:
现在,从2019年1月开始,只要您首先安装了xquartz,,Tesseract就可以通过自制软件正常安装了.然后,您可以执行以下操作:brew install tesseract --with-all-languages --with-serial-num-pack --with-training-tools
Now, as of January 2019, Tesseract installs fine via homebrew, as long as you have xquartz installed first, brew cask install xquartz. Then you can do the following: brew install tesseract --with-all-languages --with-serial-num-pack --with-training-tools
更多推荐
tesseract安装mac os
发布评论