【发布时间】:2014-03-31 23:22:22
【问题描述】:
我在 Windows 7 上安装了 tesseract v3.01。我在环境变量中添加了 tesseract 路径。在 cmd 窗口中输入以下命令后,我获得了正确的输出:“tesseract test.tif test”。
当我尝试使用以下脚本在 php 中获得相同的结果时,我得到一个空数组并且没有生成文件:
<?php
try {
exec("tesseract.exe test.tif test", $msg);
var_export($msg);
} catch (Exception $e) {
echo $e;
}
?>
有什么线索吗?
提前致谢!
【问题讨论】: