Tesseract OCR In monotouch

2019-08-03 08:09发布

问题:

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