Hi, all.
I've modifying the coordinates of bound boxes, after extract the
recognize result.
And I try getting new result strings after modifying the coordinates.

But I cann't get the new strings.

I try using the source code of lower part.
How to get the my new result?

Or this code is wrong?
(I'm using latest Tesseract OCR 3.01 and OpenCV 1.0.)

Thank you for your attention
---------------------
for(PAGE_RES_IT pri(api.page_res_);pri.word() != NULL && x < coords-
>rows;pri.forward()){
                WERD_LIST* words = pri.row()->row->word_list();
                WERD_IT wordsit(words);
                for(wordsit.mark_cycle_pt();!wordsit.cycled_list() && x < 
coords-
>rows;wordsit.forward()){
                        WERD *word = wordsit.data();
                        C_BLOB_LIST* blobs = word->cblob_list();
                        C_BLOB_IT blobit(blobs);
                        for(blobit.mark_cycle_pt();!blobit.cycled_list() && x < 
coords-
>rows;blobit.forward()){
                                C_BLOB* blob = blobit.data();
                                TBOX tb = blob->bounding_box();
                                //printf("Bounding box=(%d,%d)->(%d,%d)\n", 
tb.left(),
tb.bottom(), tb.right(), tb.top()); //tb.print()와 같은 출력
                                tb.set_left(cvmGet(realBlobCoords, x, 0));
                                tb.set_bottom(res_blob->height - 
cvmGet(realBlobCoords, x, 3));
                                tb.set_right(cvmGet(realBlobCoords, x, 2));
                                tb.set_top(res_blob->height - 
cvmGet(realBlobCoords, x, 1));
                                x++;

                        }
                }
        }
-----------------------------

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to