I am working in a project with tesseract 3 and I want to migrate to
Tesseract 4. When I iterate I dont get the multiple choices like in
tesseract 3.
*Tesseract 3:*
Symbol: O, Conf: 91.2741
O conf: 91.2741
C conf: 82.6332
G conf: 80.8132
Q conf: 80.6637
D conf: 80.5849
*Tesseract 4:*
Symbol: O, Conf: 99.5507
O conf: 99.5507
This is my code:
tesseract::PageIteratorLevel level = RIL_SYMBOL;
if(ri != 0) {
do {
const char* symbol = ri->GetUTF8Text(level);
float conf = ri->Confidence(level);
if(symbol != 0) {
cerr << "Symbol: " << symbol << ", Conf: " << conf << endl;
tesseract::ChoiceIterator ci(*ri);
do {
const char* choice = ci.GetUTF8Text();
cerr << choice << " conf: " << ci.Confidence() << endl;
} while(ci.Next());
}
cerr << "---------------------------------------------\n" << endl;
delete[] symbol;
} while((ri->Next(level)));
}
--
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 https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/31cf1f09-70ab-4671-89d9-f7b7fe3983ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.