Syncfusion.PDF.OCR.Net.Core not working on linux Ubuntu

Hello,

I get this error: 

Exception has been thrown by the target of an invocation.

inner error: Failed to find library "liblept1753.so" for platform x64.

I try change my code, but nothing works:

using (OCRProcessor processor = new OCRProcessor(@"Tesseractbinaries\Linux"))

using (OCRProcessor processor = new OCRProcessor(@"Tesseractbinaries/Linux"))

using (OCRProcessor processor = new OCRProcessor(@"Tesseractbinaries/Linux/"))

File exists there, yes: 

myapp/Tesseractbinaries/Linux/x64/liblept1753.so

I think, SyncFusion is creating a bad-formed path on linux environment, is there a fix or something like it?

thanks

Syncfusion.PDF.OCR.Net.Core version 20.2.0.43



1 Reply

GK Gowthamraj Kumar Syncfusion Team August 16, 2022 01:55 PM UTC

Hi Erick,


The reported exception may occurs due to missing or mismatch assemblies of the Tesseract binaries and Tesseract data from OCR processor. Please make sure the path of the Tesseract binaries and Tesseract data are provided properly in your sample location and let us know the result. Please make sure the mentioned prerequisites are available in the machine where the conversion take place.

UG: https://help.syncfusion.com/file-formats/pdf/working-with-ocr/dot-net-core#prerequisites-for-linux   

Troubleshooting : https://help.syncfusion.com/file-formats/pdf/working-with-ocr/dot-net-core#troubleshooting   


We request you to try this below tesseract binaries on your end and let us know the result.
Linux: https://www.syncfusion.com/downloads/support/directtrac/general/ze/LinuxTesseractBinaries1939777891

However, kindly please provide the more details about your issue such as exception details, Linux environment details to check the issue in our end. So, that it will be helpful for us to analyze and assist you further on this.


Regards,

Gowthamraj K


Loader.
Up arrow icon