Linking Leptonica statically

42 views
Skip to first unread message

Max Pole

unread,
Sep 29, 2015, 3:23:16 PM9/29/15
to tesseract-ocr
Hello crews,

I'm looking for a possibility to link Leptonica statically with Tesseract in order to reduce memory usage. At the time being, Leptonica counts 2481 functions but Tesseract uses only 163 of them. In other words, only 6,6% of Leptonica is actually used. The rest is dead code!

This could be a potential issue on devices with limited memory where each MB counts.

Is there a possibility to achieve that with the current Tesseract 3.04.00 and Leptonica 1.72? If yes, what command line option will do that?

Thank you in advance!
Best regards
Max
Reply all
Reply to author
Forward
0 new messages