OCR reader can extract text from image with high accurate in asp programming, it's easy to integrate to web servers.

It can recognize text content from all popular image format, such as JPEG, BMP, TIFF, GIF, PNG. Support reading all western languages, what's more, CJK (Chinese, Japanese and Korean) is also supported.

This online guide shows you how to convert image to text using C# language in aspx.cs class.


// Please note:
// If you choose the x64 platform, please copy the "XsOCR_Tesseract.dll" and "XsOCR_Lept.dll"
// from the x64 folder to the same level path which "XsOCR.dll" in. 
// Otherwise, please copy from x86 folder.
// i.e. the "XsOCR.dll" is in "/bin/", the "XsOCR_Tesseract.dll" and "XsOCR_Lept.dll"
// need to be copyed to "/bin/".

// Create an OCR Engine instance
OCREngine engine = new OCREngine();
// Set the absolute path of tessdata
engine.DataPath = "F:/tessdata/";
// Set the target text language you want to recognize
engine.Language = "eng";
// Recognize text from image file
string text = engine.DoOCR(Server.MapPath("sample.jpg"));

System.Console.WriteLine(text);

Notice - If you used the trial version of OCR SDK, the first character of result is symbol "?"