The size of the array of confidences doesn't match with the number of words of textResult. Why?

21 views
Skip to first unread message

inma

unread,
Aug 27, 2014, 8:01:46 AM8/27/14
to tesser...@googlegroups.com
Hi everyone!
I'm having problems to use the confidence of words.

I use this method of baseapi.cpp:

char* TessBaseAPI::GetUTF8Text()

and after, I use this one:

int* TessBaseAPI::AllWordConfidences()

But the size of the array returned by AllWordConfidences() isn't the same always. With the same sentence, sometimes have one size and sometimes other size. Why is this? Why can't I match the word confidences with the words of GetUTF8Text()?

Thanks!!
Reply all
Reply to author
Forward
0 new messages