图像OCR的Android [英] Image OCR Android
问题描述
我的工作中,我不得不从图像进行OCR Android应用程序。例如,如果我有建筑绘图,用户点击图像(如厨房或停车场),在一个特定的区域,之后单击希望在用户单击的位置名称/号码。这个数字将在该位置present。
I am working on an android application in which I have to perform OCR from an Image. For example if I have drawing of building, user clicks on a particular area on the image (like Kitchen or Parking lot), after that click I want the location name/number where the user have clicked. This number will be present in that location.
给定的图像中,如果我点击百家讲坛部分,那么该应用程序必须检测我所点击位置的区域,给我的名字(即百家讲坛)作进一步查询。
in the given image if i click on Lecture Room part then the application must detect the area where I have clicked and give me the name (i.e. Lecture Room) for further queries..
请帮助我。我已经测试了许多应用程序,但其中大部分检测的话没有图纸的图像。
Please help me out. I have tested many applications but most of them detects words not the drawing images.
修改
它就像HTML图像马平
Edit It is just like HTML Image Maping
推荐答案
我说,你需要在工作,你是如何提炼你的问题,如果应用程序的目标是要读取任何图像文件,并提取所有的从它的文本,以使其搜索,你已经有了相当多的项目在你前面。
I'd say that you need to work on how you have abstracted your problem, if the goal of the application is to read any image file and extract all the text from it in order to make it searchable, you've got quite a project ahead of you.
不过,如果你的目标是使地图点击数量有限的,我会说,你应该创建的每个图像中所有已知位置的表,然后保存用户单击的位置坐标。在已知位置和present相应的房间给用户的表这样,你可以查找坐标。一个房间可以例如通过其西北角和东南角的坐标来定义。确定是否一个坐标是这些边界内是微不足道的。
However, if your goal is to make a finite number of maps clickable, I'd say that you should create a table of all the known locations in each image and then save the coordinate where the user clicked. That way you can look up that coordinate in your table of known locations and present the corresponding room to the user. A room could for instance be defined by the coordinates of its northwest corner and its southeast corner. Determining whether or not a coordinate is within those boundaries is trivial.
如果您的应用程序确实需要OCR你是一个麻烦的世界我害怕。
If your application really requires OCR you are in a world of trouble I'm afraid.
编辑:小错误编辑了
这篇关于图像OCR的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!