可以识别英文 数字 中文。变形字体 要先进行图片处理后 OCR效果才会更好 。
TessactOcr.dll
Sample)
using OCR.TesseractWrapper;
using TessactOcr;
Bitmap bitmap = new Bitmap(text); //text:Image path
TessNet ocr = new TessNet();
ocr.ePageSegMode = (int)ePageSegMode.PSM_SINGLE_WORD;
ocr.eOcrEngineMode = (int)eOcrEngineMode.OEM_TESSERACT_CUBE_COMBINED;
ocr.lang ="eng"; //"chi_sim" Chinese (Simplified) language
ocr.SetTessractData(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)+ @"\tessdata\tessdata");
ocr.SetVariable("tessedit_char_whitelist","abcdefghijklmnopqrstuvwxyz");
string iden = ocr.ToCR(bitmap);
2021-09-13 14:44:25
4.73MB
OCR识别
1