Berker Yüceer Berker Yüceer - 6 months ago 49
C# Question

How to implement and do OCR in a C# project?

Possible Duplicate:

Any open source C# OCR library?

I ve been searching for a while and all that i ve seen some OCR library requests. I would like to know how to implement the purest, easy to install and use OCR library with detailed info for installation into a C# project.

If posible, I just wanna implement it like a usual dll reference...


using org.pdfbox.pdmodel;
using org.pdfbox.util;

Also a little OCR code example would be nice, such as:

public string OCRFromBitmap(Bitmap Bmp)
Bmp.Save(temppath, System.Drawing.Imaging.ImageFormat.Tiff);
string OcrResult = Analyze(temppath);
return OcrResult;

So please consider that I'm not familiar to OCR projects and give me an answer like talking to a dummy.

I guess people misunderstood my request. I wanted to know how to implement those open source OCR libraries to a C# project and how to use them. The link given as dup is not giving answers that I requested at all.


Here's one: (check out or for more info)

using MODI;
static void Main(string[] args)
    DocumentClass myDoc = new DocumentClass();
    myDoc.Create(@"theDocumentName.tiff"); //we work with the .tiff extension
    myDoc.OCR(MiLANGUAGES.miLANG_ENGLISH, true, true);

    foreach (Image anImage in myDoc.Images)
        Console.WriteLine(anImage.Layout.Text); //here we cout to the console.