text result

May 8, 2016 at 2:12 PM
Edited May 8, 2016 at 2:13 PM
Hi. all
I'm trying my first ocr project with puma and it does work to me.
this is my code
            Bitmap img = new Bitmap(@"C:\screen.bmp");
            using (PumaPage pumaPage = new PumaPage(img))
            {
            pumaPage.FileFormat = PumaFileFormat.TxtAscii;
            pumaPage.Language = PumaLanguage.English;
            pumaPage.FontSettings.CourierName = "Courier New";
            pumaPage.FontSettings.SerifName = "Times New Roman";
            pumaPage.FontSettings.SansSerifName = "Arial";

            pumaPage.AutoRotateImage = false;
            pumaPage.ImproveDotMatrix = false;
            pumaPage.ImproveFax100 = false;


            pumaPage.ScaleImage = 100;

            pumaPage.UseTextFormating = false;
            pumaPage.EnableSpeller = false;
            pumaPage.OneColumnMode = false;
            pumaPage.PreserveLineBreaks = true;
            pumaPage.RecognizePictures = true;
            pumaPage.RecognizeTables = true;

            pumaPage.FontSettings.DetectBold = false;
            pumaPage.FontSettings.DetectItalic = false;
            pumaPage.FontSettings.DetectSize = true;
            pumaPage.RecognizeToFile(@"C:\screen.txt");
             }
all wath i receive is in screen.text
II.. V~

the screen.bmp is a simple visual studio window with the code below
Thanks for any help