private void OCRImplementationall() { MODI.Document md = new MODI.Document(); Cursor = Cursors.WaitCursor; string Name = AppDomain.CurrentDomain.BaseDirectory + @"PT INFO.JPG"; try { int fflag = 0; CheckForIllegalCrossThreadCalls = false; md.Create(Name); md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true); string strText = String.Empty; MODI.Image image = (MODI.Image)md.Images[0]; MODI.Layout layout = image.Layout; string[] splvalues = layout.Text.Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None); //for (int i = 0; i < layout.Words.Count; i++) int i = 0; foreach (string val in splvalues) {}} catch (Exception ex) { //ExceptionHelper exlne = new ExceptionHelper(); LogFile(ex.Message, "OCRImplementationall", "PT INFO Image Error", ExceptionHelper.LineNumber(ex), this.FindForm().Name); //MessageBox.Show(ex.Message); } finally { Cursor = Cursors.Default; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)