tesseract安装mac os

编程入门 行业动态 更新时间:2024-10-28 20:31:06
本文介绍了tesseract安装mac os的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用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

本文发布于:2023-10-23 12:19:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1520799.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:tesseract   mac   os

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!