2017/01/02

C#.Net 使用Asprise OCR API辨識圖片中的文字

寫手遊外掛下一步就是辨識
首先嘗試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);

辨識出來文字為:

結論:
這套不支援中文辨識,拿來論文或是網站的檢核碼或許還不錯

2 則留言:

  1. Great site for these post and i am seeing the most of contents have useful for my Carrier.Thanks to such a useful information.Any information are commands like to share him.

    digital marketing company in india

    回覆刪除
  2. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    seo training in chennai

    回覆刪除