mac下安装tesseract-ocr

来源:互联网 发布:java 二叉树翻转 编辑:程序博客网 时间:2024/05/18 02:22

执行命令
1. ./configure
2. make
3. sudo make install
4. 安装语言包
解压tesseract-ocr-3.01.eng.tar.gz到/usr/local/share/tesseract就可以了。
遇到的问题
leptonica library missing
If get this error message when you run ./configure and your leptonica header files are located in /usr/local/include (e.g. you installed leptonica to /usr/local) than run:
LIBLEPT_HEADERSDIR=/usr/local/include ./configure
or:
CPPFLAGS=”-I/usr/local/include” LDFLAGS=”-L/usr/local/lib” ./configure

继续试试看吧。。。
哎哟,,还是第二个命令有效,终于过了,不容易啊。

0 0