修復低品質的掃描檔與圖片
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();
using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\image.png");

ocrInput.Deskew();
ocrInput.DeNoise();
ocrInput.Despeckle();
ocrInput.EnhanceResolution(225);
ocrInput.Sharpen();
ocrInput.Erode();
ocrInput.Dilate();
ocrInput.Scale(200);
var ocrResult = ocrTesseract.Read(ocrInput);
Console.WriteLine(ocrResult.Text);
NuGet Download
PM > Install-Package IronOcr
修復低品質的掃描檔與圖片

修復低品質的掃描檔與圖片

IronTesseract OCR 類別為C#和.NET開發者提供了圖片和PDF文字辨識(OCR)功能,並能夠精細調整效能以符合特定使用案例。

透過設定變數,與真實世界範例合作可以在速度和精確度之間取得完美平衡。 設定包括:DetectWhiteTextOnDarkBackgrounds 和 InputImageType。

使用IronOCR改善圖片品質:學習方法
在GitHub上查看

準備開始了嗎?

Nuget Downloads 6,357,159版本:2026.11剛剛發布