OCR Running Error (MODI Document)

Nov 3 2011 1:54 AM
Hi,

I am doing one application. in that application i have one functionality which is taking image contains text as input. 
Now my output is get the text in image.

For that i have wrote following code.

               try
               {
                 MODI.Document md = new MODI.Document();
                //MODI.DocumentClass md = new MODI.DocumentClass();
                md.Create(@"E:\ocr1.tif");
                md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);


                MODI.Image img = (MODI.Image)md.Images[0];
                MODI.Layout layout = img.Layout;
                //layout = img.Layout;
                string result = layout.Text;
                MODI.Word word = (MODI.Word)layout.Words[5];
                md.Close(false);
            }
            catch (Exception ex)
            {




            }
            finally {
           
                GC.Collect();
                GC.WaitForPendingFinalizers();
           
            }


But it showing OCR running error. Please help me.

Thanks In advance,







Answers (1)