ios 在ios上从图像中获取文本(图像处理)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4538608/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 18:23:06  来源:igfitidea点击:

Getting text from image on ios (image processing)

iosobjective-cimageimage-processingocr

提问by Vikram.exe

I am thinking of making an application that requires extracting TEXT from an image. I haven't done any thing similar and I don't want to implement the whole stuff on my own. Is there any known library or open source code (supported for ios, objective-C) which can help me in extracting the text from the image. A basic source code will also do (I will try to modify it as per my need).

我正在考虑制作一个需要从图像中提取文本的应用程序。我没有做过任何类似的事情,我不想自己实现整个东西。是否有任何已知的库或开源代码(支持 ios、objective-C)可以帮助我从图像中提取文本。一个基本的源代码也可以(我会根据我的需要尝试修改它)。

Kindly let me know if some one has any idea on this.

如果有人对此有任何想法,请告诉我。

Thanks, Vikram

谢谢,维克拉姆

采纳答案by prairiedogg

One of the main open source libraries used to do OCR on iOS is a google-sponsored open source project called tesseract.

用于在 iOS 上进行 OCR 的主要开源库之一是谷歌赞助的开源项目,名为tesseract

Here is some info on compiling tesseract for use in iOS apps:

以下是有关编译 tesseract 以在 iOS 应用程序中使用的一些信息:

tesseract

超立方体

The same guy has a nice sample project on github demonstrating how a simple client might use the compiled library:

同一个人在 github 上有一个很好的示例项目,演示了一个简单的客户端如何使用编译后的库:

Pocket-OCR

袖珍OCR