Tesseract OCR In monotouch

2019-08-03 07:41发布

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

2条回答
看我几分像从前
2楼-- · 2019-08-03 08:08

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

查看更多
相关推荐>>
3楼-- · 2019-08-03 08:12

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.

查看更多
登录 后发表回答