qixiaobo / tesseract-ocr

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

The tessedit_pageseg_mode does not work #394

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Thanks. Fixed in r517

Original comment by zde...@gmail.com on 2 Nov 2010 at 8:55