Issue 538 in tesseract-ocr: FEATURE REQUEST: Partial compilation of Tesseract based on features required

6 views
Skip to first unread message

tesser...@googlecode.com

unread,
Aug 26, 2011, 6:27:58 AM8/26/11
to tesserac...@googlegroups.com
Status: New
Owner: ----

New issue 538 by alexjiro...@gmail.com: FEATURE REQUEST: Partial
compilation of Tesseract based on features required
http://code.google.com/p/tesseract-ocr/issues/detail?id=538

Hi there,

I use tesseract on android. Although it is great and it works the library
itself takes up a lot of space ~6-7 Mbs. It is not a problem on a desktop
but on a mobile device that's a massive issue.

So I was wondering if some extra flags features flags can be added to the
build files so that only needed components are compiled and put into
library?

For example: If I don't use API for cube, it only takes up space in the
library. So if a flag BUILD_CUBE, for example, can be added, then if it is
set to 0 this API is not built. Do this for all different sub parts of the
library, except for the core of course.

Of course by default everything is enabled so that the others don't see
change in the behaviour when building. But this will make the library a lot
more lightweight and a lot more manageable on the mobile devices.


tesser...@googlecode.com

unread,
May 13, 2015, 9:38:43 AM5/13/15
to tesserac...@googlegroups.com
Updates:
Status: Started

Comment #1 on issue 538 by joregan: FEATURE REQUEST: Partial compilation of
Tesseract based on features required
https://code.google.com/p/tesseract-ocr/issues/detail?id=538

Ray committed some Android specific changes yesterday that remove a lot of
non-essential pieces.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

tesser...@googlecode.com

unread,
Jul 24, 2015, 6:47:18 AM7/24/15
to tesserac...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 538 by zde...@gmail.com: FEATURE REQUEST: Partial
compilation of Tesseract based on features required
https://code.google.com/p/tesseract-ocr/issues/detail?id=538

To skip cube (--disable-cube) is implemented in tesseract gihub code[1] -
but side effect is that pdf rendering will not work with it, because
pdfrenderer uses one function from cube for (utf conversion).
Also there are other experimental options that can help you:
--disable-graphics
--enable-visibility
+ stripping final library
In my quick test I was able to decrease size of libtesseract.so.3.0.4 from
5.6M to 2.5M with this (experimental) options

[1]
https://github.com/tesseract-ocr/tesseract/commit/41478fd5a1f713f56ec51134d2598700b7f1463c
Reply all
Reply to author
Forward
0 new messages