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