Error 0

Aug 6, 2012 at 1:34 AM

Hi, I keep getting different error messages in my windows forms app.

most of the time error 0 comes and also: Recognition engine halted with code: 6684676

Here is my code:

 System.Threading.Thread.Sleep(2000);//Wait 2 secs (2000 milliseconds).
                Clipboard.Clear();
                while (!Clipboard.ContainsImage())
                {
                    SendKeys.SendWait("%{PRTSC}"); //Sim Alt+PrintScreen
                }
                System.Drawing.Image returnImage;

                returnImage = Clipboard.GetImage(); //Get im if it is on clipboard.
                returnImage.Save("screen.bmp", System.Drawing.Imaging.ImageFormat.Tiff);
                Image<Bgr, Byte> screen = new Image<Bgr, byte>("screen.tiff");

                Image<Bgr, Byte> screenBig = screen.Resize(808, 570, Emgu.CV.CvEnum.INTER.CV_INTER_LANCZOS4);
                screenBig.ROI = new Rectangle(360, 90, 110, 80);
                screenBig.Save("potPic.tiff");
            screenBig.ROI = System.Drawing.Rectangle.Empty;
                screenBig.ROI = new Rectangle(545, 477, 134, 66);
                screenBig.Save("callPic.tiff");

                Image<Bgr,Byte> potPic = new Image<Bgr,Byte>("potPic.tiff");
               
            Puma.Net.PumaPage p1 = new Puma.Net.PumaPage("callPic.tiff");
           
            p1.FileFormat = Puma.Net.PumaFileFormat.RtfAnsi;
            p1.EnableSpeller = false;
            p1.Language = Puma.Net.PumaLanguage.Digits;
           
           string potStr =  p1.RecognizeToString();
           p1.Dispose();

Can it be that the image has white text?