public void readimgfile(string filen) { doc = new MODI.Document(); //Initialise and create the document //string a = Server.MapPath("~/cropped/" + s); //string j = System.IO.Path.Combine(System.Environment.CurrentDirectory, a); doc.Create(filen); //Process the sacnned image with specified language doc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, false, false); //doc.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true); MODI.Layout layout = ((MODI.Image)doc.Images[0]).Layout; string str = String.Empty; //Extract the letters and read for (int i = 0; i < layout.Words.Count; i++) { MODI.Word word = (MODI.Word)layout.Words[i]; if (str.Length > 0) { str += " "; } str += word.Text; } doc.Close(false); txt_rename.Text = str; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)