在图像中搜索指定的文本 [英] Searching an image for specified text

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

问题描述

我想我会在这里问非常愚蠢的问题。在我目前的项目中,我想提供搜索功能。我有一个很大的图像教程,里面有很多关于主题的信息,我想在图像中搜索特征。假设使用类似Apple的类型,它将显示Apple在图像中出现了多少次,并在点击图像后滚动并转到发生Apple的位置。

I think I am going to ask very stupid Question here. In my current project i want to give search feature. I have an big image tutorial with lot of information about on a topic and i want to search feature in the image. Suppose use type like "Apple" it will show the Apple occurred how many times in the image and after clicking on of that the image scroll and go to the position where "Apple" is occurred.

感谢您阅读我的愚蠢问题,但如果有可能请告诉我并提供一些示例代码?

Thanks for reading my stupid question but if it is possible let me know and put some sample code??

推荐答案

以下是我将采取的方法的概述:

Here is a broad overview of the approach I would take:


  1. 查找C / C ++基于OCR的库

  2. 让它在iPhone上编译

  3. 创建用于将图像提供给OCR库的UI

  4. 存储OCR的输出,包括找到的单词及其在图像中的位置。

  5. 创建一个允许用户输入搜索结构的用户界面。

  6. 搜索匹配的OCR输出并突出显示图像上匹配的位置。

  1. Find a C/C++ based OCR library
  2. Get it to compile on the iPhone
  3. Create a UI to feed images to the OCR library
  4. Store output of OCR, including words found and their location in the image.
  5. Create a UI to allow users to enter a search.
  6. Search OCR output for matches and highlight the location of matches on the image.

我想第2步将是最困难的。 Tesseract 可能有效,它基于C ++,但我不知道它有什么依赖。

I imagine step 2 is going to be the most difficult. Tesseract may work, it is C++ based but I don't know what dependencies it has.

更新:GitHub上有人发布了演示iPhone应用 Tesseract。

UPDATE: Someone on GitHub has posted a demo iPhone App that uses Tesseract.

这篇关于在图像中搜索指定的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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