Php Tesseract脚本错误
Tesseract可以通过putty使用以下命令行“/usr/bin/Tesseract image.tif文件”正常工作,但在php脚本中无法工作:Php Tesseract脚本错误,php,ocr,tesseract,Php,Ocr,Tesseract,Tesseract可以通过putty使用以下命令行“/usr/bin/Tesseract image.tif文件”正常工作,但在php脚本中无法工作: exec("/usr/local/bin/convert image.jpg image.tif"); exec("/usr/bin/tesseract image.tif file "); $f=fopen("file","r"); 我只有imagemagick转换的image.tif:/ 有人对此有想法吗 提前感谢可能识别所需的时间比脚本传
exec("/usr/local/bin/convert image.jpg image.tif");
exec("/usr/bin/tesseract image.tif file ");
$f=fopen("file","r");
我只有imagemagick转换的image.tif:/
有人对此有想法吗
提前感谢可能识别所需的时间比脚本传递到下一行所需的时间要长。 + Tesseract会自动添加一个txt扩展名,因此在本例中,识别的文本将位于file.txt中