IRONSOFTWAREHOME
Fixing Low Quality Scans & Images
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);
Imports IronOcr
Imports System

Dim ocrTesseract = New IronTesseract()
Using 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)
    Dim ocrResult = ocrTesseract.Read(ocrInput)
    Console.WriteLine(ocrResult.Text)
End Using
NuGet Download
PM > Install-Package IronOcr
Fixing Low Quality Scans & Images

Fixing Low Quality Scans & Images

The IronTesseract OCR Class provides granular control to C# and .NET developers to add OCR (image and PDF to text) functionality to their applications, and also to fine-tune performance to their specific use cases.

By setting variables, a perfect balance between speed and accuracy can be achieved through working with real-world examples. Settings include filter methods on OcrInput such as Deskew, DeNoise, Despeckle, EnhanceResolution, Sharpen, Erode, Dilate, Scale, and Binarize, along with IronTesseract.Language and IronTesseract.Configuration.

Improve Image Quality with IronOCR: Learn How
View on GitHub

Ready to Get Started?

Nuget Downloads 6,236,385Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required