I get "Tesseract engine has not been initialized", I am using OCR in a c# class library. Normally I get the the path with e.g. Server.MapPath(@"\App_Data\". My folder lies directly under :http://pasteboard.co/qp2zK6CSl.png
I tried @"OCR\", @"\OCR\" and @"OCR" nothing worked out.
SKSasi Kumar Sekar Syncfusion Team January 26, 2017 07:39 AM UTC
Thank you for contacting Syncfusion support,
We have created the simple sample to OCR the PDF document. The “Tesseract engine has not been initialized” exception may throw when the referring the Tessdata and TesseractBinaries folder incorrectly. We have referred mentioned folder correctly in the below sample.
Please try the above sample and refer the folders correctly in your side and let us know your feedback.
Sasi Kumar S.
PEPeterJanuary 26, 2017 08:20 AM UTC
This example you gave me is from a asp.net server example ,not a class library which I use and need
SKSasi Kumar Sekar Syncfusion Team January 27, 2017 10:03 AM UTC
Thank you for your update,
We have thrown the “Tesseract engine is not initialized” exception only if the given path location is missed “liblept168.dll” and “SyncfusionTesseract.dll” assemblies. So kindly provide the physical folder location to perform the OCR, in order to avoid the exception.
Please try our solution and let us know your result.
Sasi Kumar S.
IFIoan FlaviuFebruary 20, 2017 01:44 PM UTC
Im using VB NET (2010) and try to OCR pdf document, in win form app.
But when i run the code i always get the error "Tesseract engine has not been initialized"
Using processor As New OCRProcessor("TesseractBinaries\") < What path i need to give here ? >
Dim lDoc As New PdfLoadedDocument("H:\Documentos_Flaviu\Teste\APA.pdf")