Open GoogleCodeExporter opened 9 years ago
I know that tesseract itself is acting like your code, when it first needs all
parameters like whitelist and pagesegmode, but seems that tesseractdotnet needs
this to be the other way around. My own solution does first init and then sets
all necessary parameters. So for having an effect on these parameters your code
should look like this:
var _ocr = new TesseractProcessor();
_ocr.Init(Program.AppPath + "tessdata\\", "eng",
(int)Enums.EOcrEngineMode.TesseractOnly);
_ocr.SetPageSegMode(ePageSegMode.PSM_SINGLE_CHAR);
_ocr.SetVariable("tessedit_char_whitelist",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
Good luck!
Original comment by tanelte...@gmail.com
on 24 Aug 2011 at 6:30
Thanks! That did the trick.
Original comment by sean.p.t...@gmail.com
on 25 Aug 2011 at 4:47
Original issue reported on code.google.com by
sean.p.t...@gmail.com
on 24 Aug 2011 at 5:52