通过putty命令行"/usr/bin/tesseract image.tif file“,Tesseract工作得很好,但它不能在php脚本中工作:
exec("/usr/local/bin/convert image.jpg image.tif");
exec("/usr/bin/tesseract image.tif file ");
$f=fopen("file","r");我只有imagemagick转换的image.tif :/
有人对此有什么想法吗?
提前谢谢你
发布于 2012-03-08 22:18:23
可能识别花费的时间比脚本传递到下一行所需的时间更长。+
Tesseract会自动添加一个txt扩展名,因此在本例中,识别出的文本应该是file.txt格式的。
https://stackoverflow.com/questions/9618702
复制相似问题