I am trying to install tesseract on my mac using homeBrew. When I try to install, everything seems 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'
When I try to run the 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.
I have image magic installed, and the command I used to install tesseract was:
brew install tesseract
Can anyone tell me what I can do to make tesseract work? Thanks!
EDIT When I run the brew leptonica link, 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.
source share