我正在尝试使用 https://uk.mathworks.com/help/matlab/matlab_external/run-external-commands-scripts-and-programs.html 从 matlab 运行 tesseract 3.04|
第2行和第3行的错误是什么意思?
1 !tesseract im.tif imTif
2 >> tesseract: /usr/local/MATLAB/R2016b/bin/glnxa64/libtiff.so.5: no version information available (required by /usr/lib/liblept.so.5)
3 >> tesseract: symbol lookup error: tesseract: undefined symbol: _ZN9tesseract19TessBoxTextRendererC1EPKc
Tesseract 在 Linux 终端中运行正常,但我能够在一系列 MATLAB 函数中调用该函数。
谢谢
最佳答案
临时解决方案:
使用以下命令从终端运行 Matlab:
LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6"matlab
关于linux - 从 MATLAB 将 tesseract-ocr 作为外部命令运行时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41681071/