@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

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/ca3142d9-72bb-4b4a-a7ed-09ad36d6ad78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to