Filter Wizard
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);
NuGet Download
PM > Install-Package IronOcr
Filter Wizard

Filter Wizard

IronOCR includes an OcrInputFilterWizard class that can automatically evaluate combinations of preprocessing filters to maximize OCR confidence. This is ideal when you're unsure which filters yield the best results. Instead of manually applying contrast, sharpen, binarize, etc., OcrInputFilterWizard.Run(...) performs a brute-force scan for optimal settings and returns the best filter combination or code snippet to reproduce it.

Optional Filters You Can Apply

Some common filters in IronOCR that you might replicate manually include:

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

These methods may be used in combination when manually constructing pipelines, following guidance from the wizard results or your own testing.

Enhance Image Quality for Better OCR Results
View on GitHub

Ready to Get Started?

Nuget Downloads 6,357,159Version:2026.11just released