AFAIR: there were always problem with windows tesseract debug build (MSVC).
Release version works fine, but debug failed. So it would be great if
somebody experienced with windows debugging have a look at this.

Zdenko


ne 23. 6. 2019 o 20:29 _ Flaviu <[email protected]> napĂ­sal(a):

> Ok, good idea, I am working right now on a simple testing app that prove
> the issue. I will come back as soon as I can.
>
> On Thursday, June 20, 2019 at 2:02:12 PM UTC+3, _ Flaviu wrote:
>>
>> I am using tesseract 4 on a VC++ (MFC) app, to read text from images (A4
>> sizes). I noticed that while I using this app on several PCs (Win10 64 bit,
>> *GB RAM), the RAM occupied by my app (that use tesseract) is increasing on
>> and on. If I read 14 images, my app eat 470 MB, and if I didn't close the
>> app and read again all these 14 images, the RAM eaten by my app is
>> increasing until ~800MB, and if continue to read the same images, the RAM
>> is increasing on an on. Why is this happen ?
>>
>> Here is the code that I am using for tesseract:
>>
>> BOOL CMyClass::GetTextFromImage()
>> {
>> PIX* pix = NULL;
>> tesseract::TessBaseAPI* pTess = new tesseract::TessBaseAPI;
>>
>> do
>> {
>> if (pTess->Init(...))
>> {
>> m_sError.Format(_T("OCRTesseract: Could not initialize tesseract."));
>> break;
>> }
>> // setup
>> // read image
>> PIX* pix = pixRead(m_sFileName);
>> if (! pix)
>> {
>> break;
>> }
>> // recognize
>> pTess->SetImage(pix);
>> }
>> while (FALSE);
>>
>> // cleanup
>> // pTess->Clear();
>> // pTess->End();
>> delete pTess;
>> pTess = NULL;
>> pixDestroy(&pix);
>>
>> return TRUE;
>> }
>>
>>
>> Is there anything wrong here ? Why is increasing RAM while I am using
>> tesseract ?
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/e338cc87-e7c3-4bb0-bd94-632185e25652%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/e338cc87-e7c3-4bb0-bd94-632185e25652%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8x6ffkFkrBDTTFDTPRxqYi2EyqoP06mUZ8__A5%3Dm4R8xQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to