Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 将tesseract ocr作为来自MATLAB的外部命令运行时出错_Linux_Matlab_Ocr_Tesseract_Ubuntu 16.04 - Fatal编程技术网

Linux 将tesseract ocr作为来自MATLAB的外部命令运行时出错

Linux 将tesseract ocr作为来自MATLAB的外部命令运行时出错,linux,matlab,ocr,tesseract,ubuntu-16.04,Linux,Matlab,Ocr,Tesseract,Ubuntu 16.04,我正在尝试使用以下命令从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:

我正在尝试使用以下命令从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

看起来可能是路径问题?您可能希望尝试指定到tesseract的完整路径?检查哪些系统路径可用于MATLAB可能也很有启发性:@DMR,我已经像上面链接中建议的那样将tesseract添加到系统包中。