digitalmars.D - Binding for tesseract
- "Andrea Fontana" <nospam example.com> Feb 06 2013
- David <d dav1d.de> Feb 06 2013
- David <d dav1d.de> Feb 06 2013
- "Andrea Fontana" <nospam example.com> Feb 06 2013
- Jacob Carlborg <doob me.com> Feb 06 2013
- Jacob Carlborg <doob me.com> Feb 06 2013
- "Andrea Fontana" <nospam example.com> Feb 06 2013
- "Andrea Fontana" <nospam example.com> Feb 06 2013
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.
Feb 06 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.
Feb 06 2013
Am 06.02.2013 14:29, schrieb Andrea Fontana:Yes, but I never did a "translation". Any manual/tutorial/help about this?
Well, you need a basic C knowledge to translate it and there is this guide: http://dlang.org/interfaceToC.html If you need more help you can join #D on irc.freenode.net, helping with a realtime chat is easier than over these "forums"
Feb 06 2013
Yes, but I never did a "translation". Any manual/tutorial/help about this? On Wednesday, 6 February 2013 at 12:25:37 UTC, David wrote: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.
Feb 06 2013
On 2013-02-06 13:16, Andrea Fontana wrote: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.
There's a tool for that: https://github.com/jacob-carlborg/dstep -- /Jacob Carlborg
Feb 06 2013
On 2013-02-06 15:45, Andrea Fontana wrote:It won't compile on ubuntu 12.10 64bit alternatives?
Use the pre-compiled binary for 32bit. -- /Jacob Carlborg
Feb 06 2013
It won't compile on ubuntu 12.10 64bit alternatives? On Wednesday, 6 February 2013 at 13:46:11 UTC, Jacob Carlborg wrote:On 2013-02-06 13:16, Andrea Fontana wrote: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.
There's a tool for that: https://github.com/jacob-carlborg/dstep
Feb 06 2013
That seems useful, thank you :) In the meantime, I've started a ec2 micro instance 32bit and I'm trying to compile stuff for dstep :) On Wednesday, 6 February 2013 at 18:35:30 UTC, David wrote:Am 06.02.2013 14:29, schrieb Andrea Fontana:Yes, but I never did a "translation". Any manual/tutorial/help about this?
Well, you need a basic C knowledge to translate it and there is this guide: http://dlang.org/interfaceToC.html If you need more help you can join #D on irc.freenode.net, helping with a realtime chat is easier than over these "forums"
Feb 06 2013









David <d dav1d.de> 