I'm using Tesseract 4.1.1 and Tesseract.Drawing 4.1.1 in c#
I downloaded the language data from
https://github.com/tesseract-ocr/tessdata_fastThe app works and extracts the correct data but I get the following error messages:
ObjectCache(00007FF81981DEC8)::~ObjectCache(): WARNING! LEAK! object 000001D5B1B72440 still has count 1 (id f:\tessdata/eng.traineddatalstm-punc-dawg)
ObjectCache(00007FF81981DEC8)::~ObjectCache(): WARNING! LEAK! object 000001D5B1B71AE0 still has count 1 (id f:\tessdata/eng.traineddatalstm-word-dawg)
ObjectCache(00007FF81981DEC8)::~ObjectCache(): WARNING! LEAK! object 000001D5B1B716C0 still has count 1 (id f:\tessdata/eng.traineddatalstm-number-dawg)Any suggestions on how to not get the leak?
TesseractEngine engine = new TesseractEngine("f:\\tessdata", "eng", EngineMode.LstmOnly);
engine.SetVariable("tessedit_char_whitelist", "0123456789:/");
Bitmap tmpbitmap = capturearea(119, 1651, 200, 35);
Pix bmpinpix = PixConverter.ToPix(tmpbitmap);
using (var page = engine.Process(bmpinpix, PageSegMode.Auto))
{
var text = page.GetText();
Console.WriteLine(text);
}