使用PHP从图像中读取文本 [英] Read text from an image with PHP

查看:88
本文介绍了使用PHP从图像中读取文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试用PHP从图像中读取一些文本。

I would like to try to read some of text from an image with PHP.

所以,如果我有这样的图像:

So if I have an image like this:

如何将Some text文本提取到字符串中。

How can I extract the text "Some text" into a string.

感谢所有帮助和建议。

推荐答案

您正在寻找的过程因为被称为光学字符识别。

The process you are looking for is called Optical Character Recognition.

http://en.wikipedia.org/ wiki / Optical_character_recognition

有一个名为phpOCR的软件包可以满足您的需求。

There is a package available, called phpOCR, that does exactly what you need.

http://sourceforge.net/projects/phpocr /

这篇关于使用PHP从图像中读取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆