charlesw / tesseract

A .Net wrapper for tesseract-ocr
Apache License 2.0
2.3k stars 743 forks source link

CROSS PLATFORM COMPATIBILITY? #624

Open FaizaNasir-FalonITcons opened 1 year ago

FaizaNasir-FalonITcons commented 1 year ago

Does this version of Tesseract OCR resolve the following issues

In Tesseract most of the work is done with a C++ library. Interoperability is not good with .Net and .Net Core it offers poor cross-platform compatibility, including with Azure. It requires us to choose the bit-version of our application, meaning that we may only deploy to either 32-bit or 64-bit targets. Visual C++ runtimes are required for running Tesseract.

I need to use Tesseract OCR with .NET 7 and Azure deployment shall be there.

SunshineSpring666 commented 1 year ago

Hi, everyone. Tesseract is great. I would like to make Tesseract OCR run on cross-platform .NET MAUI on Android/iOS/Windows.

But I haven't found how to specify the proper path to load tessdata when initializing TesseractEngine. The following sample code in the documentation doesn't work in MAUI projects: new TesseractEngine(@"./tessdata", "eng", EngineMode.Default)

MAUI cross-platform support disscussion here Are there any way to make it compatible with such cross-platform projects? Thanks a lot.