Tesseract OCR In monotouch

江枫思渺然 提交于 2019-12-13 00:22:41

问题


How do I implement the Tesseract OCR in a monotouch application for Iphone?


回答1:


First you need to have the library ported to iOS and available as a static library. That where Vikas' answer (Pocket-PCR) might comes handy (but I have not tried it).

Next you'll need to create C# bindings to the library.

When the API is exports C functions you can use normal .NET pinvokes, i.e. using DllImport attributes.

When an Objective-C API is provided then you can create bindings using the btouch tool. Instructions are available on the MonoTouch web site.

However (and this looks to be the case for Tesseract) it's a bit more complex for C++ libraries. You'll either need to first create a C (or Objective-C) library that export the feature you need and them bind your own API.




回答2:


To build the tesseract library, download the source code and compile apropriately for the iPhone (arm processor). Add the library to the XCode project and build. go this link and try ........

https://github.com/rcarlsen/Pocket-OCR



来源:https://stackoverflow.com/questions/11648250/tesseract-ocr-in-monotouch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!