halkar / Tesseract.Xamarin

Tesseract OCR wrapper for Xamarin
MIT License
121 stars 40 forks source link

Issue with an overload of the G8Tesseract class constructor. #40

Open mvassilev opened 7 years ago

mvassilev commented 7 years ago

Hi halkar, Thank you for the wrapper!

We have a problem with Tesseract not able to init by using the specified constructor - G8Tesseract (string language, NSDictionary configDictionary, NSObject[] configFileNames, string absoluteDataPath, G8OCREngineMode engineMode, bool copyFilesFromResources).

I get an System.InvalidOperationException "Call Init first" due to failure to allocate memory by the 'new …'.

I have provided a failing test case using the mentioned constructor. Could you please point me what am I doing wrong or how to debug this issue?

halkar commented 7 years ago

@mvassilev file path should point to the file in the phone memory and be accessible for the app process.