Hello,
I want to change an PDF to OCR.
I do it in the following way:
var appPath = Environment.CurrentDirectory + "\\OCR\\Tesseract binaries\\";
var dataPath = Environment.CurrentDirectory + "\\OCR\\tessdata\\";
using (OCRProcessor processor = new OCRProcessor(appPath))
{
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(_geladenesDokument);
processor.Settings.TesseractVersion = TesseractVersion.Version4_0;
processor.Settings.Language = "deu";
processor.PerformOCR(loadedDocument, dataPath);
loadedDocument.Save(_geladenesDokument);
loadedDocument.Close(true);
}
I ever get the error "Tesseract engine has not been initialized"
I have an OCR folder with the following information, which I got from the downloaded OCR setup from the SyncFusion Donwload site.
Folder OCR/Tesseract binaries:
leptonica-1.80.0.dll
libSyncfusionTesseract.dll
Folder Tessdate:
deu.traineddata
I use WPF/ Net 4.8, I compile as x64. (The
Tesseract libraries are also x64).
Do I miss anything ?
Thanks and regards
Uwe