作者:尹嫱AileenDawnYin | 来源:互联网 | 2023-05-20 15:35
Iwanttousetesseract-ocrlibwithpython-3.4.Idownloadtesseractwithsudoapt-getinstalltes
I want to use tesseract-ocr lib with python-3.4. I download tesseract with "sudo apt-get install tesseract-ocr" and now i can use it at command line. But i want to use it with python3. But i couldn't find any tutorial for use native tesseract with python3x.
我想在python-3.4中使用tesseract-ocr lib。我用“sudo apt-get install tesseract-ocr”下载tesseract,现在我可以在命令行使用它。但我想用它与python3。但我找不到任何使用python3x本机tesseract的教程。
Actually i tried to use a wrapper like pytesseract. I download from https://code.google.com/p/python-tesseract/wiki/Python3Tesseract and install it with dpkg. I tried to import it but i get a strange error.
实际上我试图使用像pytesseract这样的包装器。我从https://code.google.com/p/python-tesseract/wiki/Python3Tesseract下载并使用dpkg安装它。我试图导入它,但我得到一个奇怪的错误。
The error message is;
"ImportError: /usr/lib/python3/dist-packages/_tesseract.cpython-34m-x86_64-linux-gnu.so: undefined symbol: _Z11GetUTF8TextPN9tesseract11TessBaseAPIE"
错误信息是; “ImportError:/usr/lib/python3/dist-packages/_tesseract.cpython-34m-x86_64-linux-gnu.so:undefined symbol:_Z11GetUTF8TextPN9tesseract11TessBaseAPIE”
I tried tesserPy wrapper for python3x. It is working good for turkish, english but not working for arabic. (I tested tesserpy for just those languages.) You can get tesserpy from that address; https://github.com/blindsightcorp/tesserpy
我试过python3x的tesserPy包装器。它对土耳其语,英语有用,但对阿拉伯语不起作用。 (我为那些语言测试了tesserpy。)你可以从那个地址得到tesserpy; https://github.com/blindsightcorp/tesserpy
and here is my error message while i run tesserpy for arabic language;
这是我运行tesserpy阿拉伯语时的错误信息;
tessdata_manager.SeekToStart(TESSDATA_INTTEMP):Error:Assert failed:in file adaptmatch.cpp, line 511
tessdata_manager.SeekToStart(TESSDATA_INTTEMP):错误:断言失败:在文件adaptmatch.cpp中,第511行
Has anybody see this kind of error message before ?
以前有人看到过这种错误信息吗?
Thanks in advance
提前致谢
1 个解决方案