【问题标题】:Tesseract script error正方体脚本错误
【发布时间】:2012-03-08 13:55:14
【问题描述】:

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");

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

有人对此有想法吗?

提前谢谢你

【问题讨论】:

    标签: php ocr tesseract


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2013-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-13
      • 1970-01-01
      • 2019-02-08
      • 2013-06-13
      相关资源
      最近更新 更多