xcode iPhone SDK 的名片阅读器或 OCR 库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4560587/
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
Business card reader or OCR Library for iPhone SDK
提问by Apekshit
I want to develop a Business card reader or OCR Library (Open Source) for iPhone.
我想为 iPhone 开发名片阅读器或 OCR 库(开源)。
I saw reference for www.code.google.com/p/tesseract-ocr/ but i don't know how to use it. I also download zip file http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gzbut don't know how to use it into my project.
我看到了 www.code.google.com/p/tesseract-ocr/ 的参考,但我不知道如何使用它。我也下载了 zip 文件http://tesseract-ocr.googlecode.com/files/tesseract-3.00.tar.gz但不知道如何在我的项目中使用它。
Can anyone give me suggestion for this or any example will be very useful.
任何人都可以给我建议,或者任何例子都会非常有用。
Thanks in Advance.
提前致谢。
采纳答案by Leo Gomes
EXC_BAD_ACCESS:
EXC_BAD_ACCESS:
He's never instantiating the 'tess' variable. Simply add [self startTesseract];
to the viewDidLoad()
method in OCRDemoViewController and it will work like a charm.
他从不实例化 'tess' 变量。只需添加[self startTesseract];
到viewDidLoad()
OCRDemoViewController 中的方法,它就会像魅力一样工作。