# Automatic Image to Text

Automatic Image to Text
using System;
using IronOcr;
//..
var Ocr = new AutoOcr();
var Result = Ocr.Read(@"C:\path\to\image.png");
Console.WriteLine(Result.Text);
Imports System
Imports IronOcr
'..
Private Ocr = New AutoOcr()
Private Result = Ocr.Read("C:\path\to\image.png")
Console.WriteLine(Result.Text)

IronOCR is unique in its ability to automatically detect and read text from imperfectly scanned images and PDF documents. The AutoOCR Class provides the simplest (though not always fastest) way to extract text from images and documents - because it will automatically correct and sharpen low resolution scans, remove background noise, skew, distortion and perspective as well as enhancing resolution & contrast.

Also see the AdvancedOCR class for more granular developer control.