Sicos1977 / TesseractOCR

A .net library to work with Google's Tesseract
161 stars 20 forks source link

TesseractOCR.Pix.Image.LoadFromFile : never finishing on release .... #39

Closed xNiux closed 1 year ago

xNiux commented 1 year ago

I have a very strange bug with function TesseractOCR.Pix.Image.LoadFromFile :

=> VERSION :

Have you any idea ?

Sicos1977 commented 1 year ago

Euh I have no idea, can you turn on logging and see what that reports?

xNiux commented 1 year ago

Hum ... Ok, but ... How do that ? And where I could be found the log file ?

xNiux commented 1 year ago

Ok, I add this command line

var logger = !string.IsNullOrWhiteSpace("reports.log") ? new TesseractOCR.Loggers.Stream(File.OpenWrite("reports.log")) : new TesseractOCR.Loggers.Console();

But the report file stay empty ... Is that any command or other code ?

xNiux commented 1 year ago

And ... I tried to used another Tesseract nuget Package (Named Tesseract from Charles Weld), and I have exactly the same result !

xNiux commented 1 year ago

Ok, it missing leptonica and tesseract dll. .. Just copy folder x86 and x64 from Packages/tesseractOCR to project root and add it to compilation in "always copy"