Python Openalpr目录错误

Python Openalpr目录错误,python,linux,openalpr,Python,Linux,Openalpr,我尝试了用openalpr库编写python代码来识别车牌号。当我尝试获取车牌号时,我得到了以下错误 Warning: You are running an unsupported version of Tesseract. Expecting at least 3.03, your version is: 3.02.02 Error opening data file /usr/local/share/tessdata/lus.traineddata Please make sure the

我尝试了用openalpr库编写python代码来识别车牌号。当我尝试获取车牌号时,我得到了以下错误

Warning: You are running an unsupported version of Tesseract.
Expecting at least 3.03, your version is: 3.02.02
Error opening data file /usr/local/share/tessdata/lus.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
Failed loading language 'lus'
Tesseract couldn't load any languages!
这是我的代码,我从


如何解决这个错误

您只需要更新tesseract,它就可以工作了。我花了2个小时来完成这项工作,但我的脚本工作正常

更新tesseract安装。从以下链接下载Tesseract 3.04

wget -o tesseract https://github.com/tesseract-ocr/tesseract/archive/3.04.zip
./configure
make 
sudo make install
sudo ldconfig
使用以下命令测试版本:

tesseract --version
tesseract --version