Tesseract脚本错误


Tesseract script error

Tesseract使用此命令行"/usr/bin/Tesseract image.tif file"通过putty可以很好地工作,但它不能从php脚本中工作:

exec("/usr/local/bin/convert image.jpg image.tif");
exec("/usr/bin/tesseract image.tif file ");
$f=fopen("file","r");

我只有image.tif由imagemagik:/转换

有人对此有想法吗?

提前感谢

识别可能需要比脚本传递到下一行更多的时间。+

Tesseract会自动添加一个txt扩展名,因此在本例中,识别的文本将在file.txt中