2017-01-16 61 views
0

我試圖用https://uk.mathworks.com/help/matlab/matlab_external/run-external-commands-scripts-and-programs.html錯誤運行從MATLAB

什麼是錯誤的線2和3的含義運行從MATLAB正方體的tesseract 3.04-OCR爲外部命令?

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函數中調用該函數。

由於

+0

它看起來可能是路徑問題?您可能想嘗試指定tesseract的完整路徑?檢查MATLAB可用的系統路徑可能也很明顯:https://www.mathworks.com/help/matlab/matlab_external/run-external-commands-scripts-and-programs.html – DMR

+0

@DMR,我已添加tesseract到系統包,如上面鏈接中所建議的。 – roadRunner

回答

0

臨時解決方案:使用

運行Matlab的從終端:

LD_PRELOAD = 「/ usr/lib中/ x86_64的-Linux的GNU /的libstdC++ so.6」 matlab的