jacklicn / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

ChoiceIterator Problem #555

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

tesseract::ResultIterator* ri=api.GetIterator();
printf("-----%s",(*ri).GetUTF8Text(tesseract::RIL_SYMBOL));
tesseract::ChoiceIterator* ci=new tesseract::ChoiceIterator(*ri);
const char *txt=(ci)->GetUTF8Text();
printf("-----%s",(txt));

What is the expected output? What do you see instead?
The output is
------M------(null)

What version of the product are you using? On what operating system?
I got tesseract from svn compiled and installed on 30/09/2011 17.00

Do not know revision number

Please provide any additional information below.
I expect choice iterator returns the alternative choices for "M" character.

Original issue reported on code.google.com by mervet2...@gmail.com on 2 Oct 2011 at 12:24

GoogleCodeExporter commented 9 years ago
// This ensures Tesseract's "blob_choices" structures are filled
    SetVariable("save_best_choices", "T");

Original comment by n.priyad...@gmail.com on 22 Nov 2011 at 12:21

GoogleCodeExporter commented 9 years ago
Have a look at issue 714[1] for example how to use ChoiceIterator.

[1] http://code.google.com/p/tesseract-ocr/issues/detail?id=714

Original comment by zde...@gmail.com on 3 Aug 2012 at 8:56