您好,
透過 AsposeOcr 解析 Image 中的 數字時,
最後一個數值 7
無法被解析出來,程式碼如下,
using System.Diagnostics;
var stopWatch = new Stopwatch();
stopWatch.Start();
var recognitionEngine = new Aspose.OCR.AsposeOcr();
var recognitionSettings = new Aspose.OCR.RecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Eng;
var input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add(@"C:\tmp\test.jpg");
var results = recognitionEngine.Recognize(input, recognitionSettings);
stopWatch.Stop();
var ts = stopWatch.Elapsed;
var elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}",
ts.Hours, ts.Minutes, ts.Seconds,
ts.Milliseconds / 10);
Console.WriteLine("RunTime " + elapsedTime);
foreach (Aspose.OCR.RecognitionResult result in results)
{
Console.WriteLine(result.RecognitionText);
}
Console.ReadKey();
測試檔案如附件,
test.jpg (2.3 KB)
解析出來的結果如下,
RunTime 00:00:13.42
324 96
正確的值應該為 324967