最近有人成功安装了吗?你是如何做到的?
谢谢。
编辑:奇怪的是,leptonica的brew配方已经开始运行。我遇到了一个相当奇怪的错误,请参考下文。
brew install tesseract
==> Downloading https://bitbucket.org/3togo/python-tesseract/downloads/tesseract
Already downloaded: /Library/Caches/Homebrew/tesseract-3.03-rc1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/tesseract/3.03-rc1
checking for leptonica... yes
checking for pixCreate in -llept... yes
checking leptonica version >= 1.70... configure: error: in `/private/tmp/tesseract- 19Ol/tesseract-3.03':
configure: error: leptonica 1.70 or higher is required
See `config.log' for more details
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
即它已经注册了安装,但仍然无法工作。我会按照指示检查配置文件。
编辑2:
在尝试在Python中导入库时,我遇到了这个问题:
import tesseract
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/python-tesseract_0.8-3.0-py2.7_macosx-10.9- intel.egg/tesseract.py", line 28, in <module>
_tesseract = swig_import_helper()
File "//anaconda/lib/python2.7/site-packages/python-tesseract_0.8-3.0-py2.7_macosx-10.9-intel.egg/tesseract.py", line 24, in swig_import_helper
_mod = imp.load_module('_tesseract', fp, pathname, description)
ImportError: dlopen(//anaconda/lib/python2.7/site-packages/python-tesseract_0.8-3.0- py2.7_macosx-10.9-intel.egg/_tesseract.so, 2): Library not loaded: /usr/local/lib/libtesseract.3.dylib
参考来源://anaconda/lib/python2.7/site-packages/python-tesseract_0.8-3.0-py2.7_macosx-10.9-intel.egg/_tesseract.so
原因:找不到图像
说实话,我对于这些幕后安装完全是个业余爱好者,甚至需要通过谷歌搜索才能做到这一点。如果有人能够提供一些知识,帮我解决这个问题,我将非常感激。我觉得我已经在网上寻找了很多解决方案,但似乎已经无法使用这个库了,而且尝试编写自己的OCR库绝对不是我期待的工作。另外,如果有人知道任何支持良好/安装维护良好的Python OCR库,我会很高兴了解(从我的谷歌搜索中可以看出,Tesseract是目前最为知名的OCR库,所以安装如此棘手真是令人沮丧)
我会很乐意向任何愿意帮助我的勇士提供有关我的系统等更多信息。
谢谢!