Ok I got a link, which explain result iterator in cpp,
So now made some code similar in c language.
138 //TessResultRenderer* result = TessTextRendererCreate("stdout");
139 //tess_ret = TessBaseAPIProcessPage(ctx->api, pix, 0, NULL,
NULL, 0, result);
140 tess_ret = TessBaseAPIProcessPage(ctx->api, pix, 0, NULL, NULL,
0, NULL);
141 if( tess_ret == FALSE)
142 printf("\nsomething messy\n");
143
144 TessResultIterator *iter = TessBaseAPIGetIterator(ctx->api);
145 //text_out = TessBaseAPIGetUTF8Text(ctx->api);
146
147 do
148 {
149 text_out = TessResultIteratorGetUTF8Text(iter,RIL_PARA);
150 mprint("----> %s\n",text_out);
151 TessResultIteratorNext(iter,RIL_PARA);
152 }while(text_out);
153
There are some problems that I feel about enums, they should have some
TESS_ like suffix
so that they don't have problem in name mangling.
but still output is showing not all lines in input image
--
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/748ea6a8-90e8-4655-b25f-27e7b4ddd947%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.