IRONSOFTWAREHOME
篩選精靈
using IronOcr;
using System;

var ocrTesseract = new IronTesseract();

// WIZARD - If you are unsure which filters to use,
// use the debug-wizard to test all combinations:

string codeToRun = OcrInputFilterWizard.Run(@"images\image.png", out double confidence, ocrTesseract);
Console.WriteLine($"Confidence: {confidence}");
Console.WriteLine(codeToRun);
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()

' WIZARD - If you are unsure which filters to use,
' use the debug-wizard to test all combinations:

Dim confidence As Double
Dim codeToRun As String = OcrInputFilterWizard.Run("images\image.png", confidence, ocrTesseract)
Console.WriteLine($"Confidence: {confidence}")
Console.WriteLine(codeToRun)
NuGet Download
PM > Install-Package IronOcr
篩選精靈

篩選精靈

IronOCR 包含一個 OcrInputFilterWizard 類別,可以自動評估預處理濾鏡的組合,以最大化 OCR 的信心度。 這在您不確定哪種濾鏡可以產生最佳結果時非常理想。 與其手動應用 binarize 等,OcrInputFilterWizard.Run(...) 將執行暴力掃描以尋找最佳設定,並返回最佳濾鏡組合或程式碼片段以重現結果。

可應用的選擇性濾鏡

在 IronOCR 中,您可能手動複製的一些常見濾鏡包括:

  • input.Contrast()
  • input.Sharpen()
  • input.Binarize()
  • input.ToGrayScale()
  • input.Invert()
  • input.Deskew()
  • input.Scale(...)
  • input.Denoise()
  • input.DeepCleanBackgroundNoise()
  • input.EnhanceResolution()
  • input.Dilate(), input.Erode()

這些方法可能在手動構建管道時組合使用,根據嚮導結果或您的測試進行組合。

提升圖像質量以獲得更好的 OCR 結果
在GitHub上查看

準備開始了嗎?

Nuget Downloads 6,236,385版本:2026.9剛剛發布

Key in blue circle

立即免費取得 30 天試用金鑰

Your trial license will be sent to your email address

無任何限制。100% 解鎖。無需信用卡。

bullet_checked無需信用卡或建立帳號無任何限制。100% 解鎖。無需信用卡。
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
獲取您的無義務諮詢
填寫以下表格或發送電子郵件至sales@ironsoftware.com
您的詳細資訊將始終保密。
被全球數百萬工程師信任
Iron Software的客戶標誌
立即獲取您的30天試用金鑰
無需信用卡或帳戶建立