赞
踩
我希望使用Tesseract将大量图像文件转换为文本.
我查看了他们的文档,但不知道这与PHP有什么关系以及我的php脚本将如何与tesseract ocr交互.我已经看到其他问题表明php exec()可能就是这样.
$img = myimage.png;
$text = exec($img,'tesseract');
我已经下载并安装了tesseract.
使用安装了最新版xampp的Windows 7.
我有初学者对PHP的中级知识.
我错过了什么知识?
更新我现在让它在powershell和cmd中使用
tesseract.exe D:\Documents\Web_Development\Sandbox\php\images\23.png D:\Documents\Web_Development\Sandbox\php\images\23
但是当我尝试通过这样的exec运行它时:
exec('tesseract.exe D:\Documents\Web_Development\Sandbox\images\23.png D:\Documents\Web_Development\Sandbox\images\23');
?>
我从Windows中弹出一个说明tesseract.exe已停止工作的弹出窗口.以下是错误详细信息,如果它们对任何人都有意义.
Problem signature:
Problem Event Name: BEX
Application Name: tesseract.exe
Application Version: 0.0.0.0
Application Timestamp: 4ca507b3
Fault Module Name: MSVCR90.dll
Fault Module Version: 9.0.30729.4926
Fault Module Timestamp: 4a1743c1
Exception Offset: 0002f93e
Exception Code: c0000417
Exception Data: 00000000
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 1033
Additional Information 1: e958
Additional Information 2: e95831f9d00a16a326250da660e931c5
Additional Information 3: 040a
Additional Information 4: 040a259d27c5ccf749ee18722d5fbec0
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。