Memory usage of Tesseract

1,047 views
Skip to first unread message

Stane

unread,
May 23, 2012, 3:28:55 AM5/23/12
to tesseract-ocr
Hi,

I want to run Tesseract on a mobile device and therefore its important
for me to use as less memory as possible.

When i run Tesseract 3.01 with eng it uses about 8MB on
initialisation, eng.traineddata has a size of about 3mb
when i run it with japanese, it uses around 55MB with a
jpn.traineddata 25MB
Tesseract 3.02 has similar values.

How much is your tesseract taking in terms of memory?
Can someone confirm my values?

Either the .traineddata are somehow packed or tesseract loads the
fiels twice.

Any ideas?

Stane

unread,
May 26, 2012, 9:54:24 PM5/26/12
to tesseract-ocr
Some more info.

I'm using tesseract on an iOS device with the CKJ traineddata sets
which are very large
so the memory thing is an real issue for me.

Another thing I notice is that not all memory is freed after calling
End()

So f.e. if i init tesseract 3.02 with jpn.traineddata(30MB) it take
53MB of memory
and after calling End() just 25MB are freed, the rest is dead memory.

Am i doing something wrong? Is this memory usage behavior normal for
tesseract?

Reply all
Reply to author
Forward
0 new messages