Binding for tesseract
David
d at dav1d.de
Wed Feb 6 04:25:37 PST 2013
Am 06.02.2013 13:16, schrieb Andrea Fontana:
> I need a binding for tesseract. It has a C interface, so it should be
> doable.
>
> Has anyone already done it?
>
> Is there a tutorial on how to create a binding? I've seen bcd.gen but it
> seems old: it won't compile with my dmd version.
>
Translating this file:
http://code.google.com/p/tesseract-ocr/source/browse/trunk/api/capi.h
Into D, wrapped with extern(C) should do it.
I played around with pytesser a while ago:
http://code.google.com/p/pytesser/source/browse/trunk/pytesser.py
This calls the tesseract executable, maybe that is easier.
More information about the Digitalmars-d
mailing list