用PHP进行图像识别 [英] Image recognition with PHP
问题描述
我想知道是否有任何写PHP脚本的方法可以读取图像并在其中查找特定元素.例如,图像将包含一个名称列表,并且对于每个名称,将有一个框,其中将显示特定字符.我希望能够获取所有名称,并检查存在该特定字符的名称.
I was wondering if there's any way of writing a PHP script that can read an image and look for specific elements in it. For example, the image will contain a list of names and for each name there will be a box where a specific character will be present. I want to be able to get all the names and to check for which names that specific character is present.
谢谢.
推荐答案
您应该尝试使用已创建的OCR类,如下所示:
You should try to use an OCR class already made, like this one:
http://www. phpclasses.org/package/2874-PHP-Recognize-text-objects-in-graphical-images.html
我从未使用过它,但我认为它可以为您提供帮助.
I've never used it but I think it could help you.
这篇关于用PHP进行图像识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!