我正在使用图片
我想从中识别数字。
var engine = new TesseractEngine(@"./tessdata", "eng", EngineMode.TesseractOnly);
engine.SetVariable("tessedit_char_whitelist", "0123456789");
var img = Pix.LoadFromFile(@"D:/Ex.png");
var page = engine.Process(img);
var text = page.GetText();
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
结果非常糟糕,31 3 963
。如何改进?
/
字符engine.SetVariable("tessedit_char_whitelist", "0123456789/");
。 - Mujahid Daud Khan