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.
