首先嘗試Asprise OCR API
辨識圖片為
程式碼:
AspriseOCR.SetUp(); AspriseOCR ocr = new AspriseOCR(); ocr.StartEngine("eng",AspriseOCR.SPEED_FAST); string path = DateTime.Now.ToString("yyyyMMdd HHmmss") + ".jpg"; bmp.Save(path); string s = ocr.Recognize(path, -1, -1, -1, -1, -1, AspriseOCR.RECOGNIZE_TYPE_TEXT, AspriseOCR.OUTPUT_FORMAT_PLAINTEXT); Console.WriteLine(s);
辨識出來文字為:
結論:
這套不支援中文辨識,拿來論文或是網站的檢核碼或許還不錯