What steps will reproduce the problem?
1. Add the following entry to a configuration file
tessedit_pageseg_mode 6
This should help to recognize a single digit and to avoid an error from
from the segmentation module.
2. Debug the sourcefile tesseractmain.cpp
3. At line 223 you will see that the value from the configuration file is
overwritten with an other value.
api.SetPageSegMode(tesseract::PSM_AUTO);
I moved this line before the initialisation an it works fine.
api.SetPageSegMode(tesseract::PSM_AUTO);
api.Init(argv[0], lang, &(argv[arg]), argc-arg, false);
// api.SetPageSegMode(tesseract::PSM_AUTO);
I'm using Visual Studio 2008 and the version from SVN tesseract-ocr.googlecode
Original issue reported on code.google.com by s...@fritzwidmer.ch on 1 Nov 2010 at 8:51
Original issue reported on code.google.com by
s...@fritzwidmer.ch
on 1 Nov 2010 at 8:51