Can ocropus interface with Java?

709 views
Skip to first unread message

zhi

unread,
Jun 16, 2009, 8:37:05 PM6/16/09
to ocropus
Is it possible to somehow for java to interface with Ocropus? I spent
last couple days doing research on OCR lib and found out that ocropus
is the best among all the open source ocr lib, but now the problem is
I need somehow be able to interface with ocropus from my java web
application? Does anyone have any experience on this or some
suggestions?

Thanks

oneey...@googlemail.com

unread,
Jun 17, 2009, 2:51:37 AM6/17/09
to ocropus
If you have simple needs you could just invoke the ocropus executable
from Java. This is what I do from Ruby and it's fine, especially on
Unix where processes are cheap.

Otherwise I would look at use JNA (maybe via JNAerator) to wrap the
native API.

Good luck

Duncan McGregor

Thomas Breuel

unread,
Jun 17, 2009, 3:07:34 AM6/17/09
to ocr...@googlegroups.com
The usual way of invoking OCRopus is as a command line sub-process.  That's really easy from Java.

If you really need to call specific OCRopus functions programmatically, the SWIG bindings we're developing should let you do that.  As they develop, they are available at mercurial.iupr.org

Tom

zhi

unread,
Jun 17, 2009, 10:04:12 AM6/17/09
to ocropus
thanks guys, invoking the ocropus executable from Java should be good
enough for my project~

On Jun 17, 3:07 am, Thomas Breuel <tmb...@gmail.com> wrote:
> The usual way of invoking OCRopus is as a command line sub-process.  That's
> really easy from Java.
>
> If you really need to call specific OCRopus functions programmatically, the
> SWIG bindings we're developing should let you do that.  As they develop,
> they are available at mercurial.iupr.org
>
> Tom
>
Reply all
Reply to author
Forward
0 new messages