linux - 从 MATLAB 将 tesseract-ocr 作为外部命令运行时出错

标签 linux matlab ocr tesseract ubuntu-16.04

我正在尝试使用 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/

相关文章:

c++ - 如何为cmake项目设置Eclipse?

MatLab OOP 不改变属性

matlab - MATLAB 中数字的有效格式是什么?

iphone - iPhone上的号码识别可以实时进行吗?

python - 解压的值太多,python,findcontours

regex - 使用 find 和 sed 使用 HTML 标签进行批量查找/替换

python - NodeJS 应用程序无法从 Python shell 获取输入

string - 如何枚举具有唯一数字的字符串单元格?

java - Tess4j - Pdf 到 Tiff 到超正方 - "Warning: Invalid resolution 0 dpi. Using 70 instead."

创建 write() 阻塞的场景