嗨,你们谁能给我一个简单的例子来测试Tesseract OCR,最好是在C#中。ocr.SetVariable("tessedit_char_whitelist", "0123456789"); // If digit only
ocr.Init(@"C:\tessdata\", "eng", false); // To use correct tess
Bitmap image = new Bitmap("eurotext.tif");ocr.SetVariable("tessedit_char_whitelist", "abcdefghijklmopqrstuvwxyz0123456789"); // If digit only
ocr.Init(null, "eng", false);
我想使用Tesseract来识别具有典型字体的单个无噪音字符(例如Times New Roman,Arial等,没有奇怪的字体)。输入图像只包含字符,因此输入图像大小等于字体大小。我想,如果我告诉Tesseract我的字体大小,我可以提高我的结果。有这样的参数吗?另外,如果它存在,python-tesseract (Python包装器)允许调整这个参数吗?