使用tesseract-ocr

时间:2019-02-21 11:20:44

标签: tesseract

在过去两个月中,我一直在使用Tesseract 4.0.0。我使用亚历山大·波兹德尼亚科夫(Alexander Pozdnyakov)的ppa进行安装。

"sudo add-apt-repository ppa:alex-p/tesseract-ocr" 

但是今天,当我尝试在tesseract上运行任何内容时,我都会出错

"tesseract: symbol lookup error: tesseract: undefined symbol:_ZN9tesseract19TessLSTMBOXRendererC1EPKc ".

我推荐了this link,但并没有解决我的问题。我的操作系统是Ubuntu 16.04。我尝试重新安装Tesseract 4,并重新安装了依赖项,但这似乎无济于事。甚至在跑步

tesseract --version

给出相同的错误。 Tesseract 3运行正常。我今天确实运行了内置软件更新程序,但是我不知道会发生什么。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

我认为您需要正确地重新安装它。

您需要先使用以下cmd自动删除tesseract:

sudo apt-get autoremove tesseract-ocr

现在,安装所需的软件包:

sudo add-apt-repository ppa:alex-p/tesseract-ocr

最后,安装tesseract:

sudo apt-get install tesseract-ocr

或者在自动删除后,只需通过以下链接进行git clone:

git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
./autogen.sh
./configure
make
sudo make install
sudo ldconfig