@Tom: no it's not related to the IDE but to the fact that I can only use the C-API.
I'm a beginner with Tesseract and it's not easy to get a full
understanding of the API, additionally most of the samples I found are
using the 'baseapi'.
Just in case anyone is interested: I got it working using following code:
TessResultIterator* it = TessBaseAPIGetIterator(hTesseract);
TessPageIterator* pit = TessResultIteratorGetPageIterator (it);
if (it != 0)
do {
char * text = TessResultIteratorGetUTF8Text(it, RIL_WORD);
int left, top, right, bottom;
TessPageIteratorBoundingBox (pit, RIL_WORD, &left, &top, &right, &bottom);
} while (TessResultIteratorNext(it, level));
Now I'm able to get all the words and their coordinates, though I'm not sure if this the best way to do it.
thanks,
Matthias