Exemplo n.º 1
0
        private void fetchStringNames()
        {
            TesseractOCR ocr = new TesseractOCR(data.WorkingDir + @"\Tesseract-OCR\tesseract.exe");

            for (int i = 0; i < 5; i++)
            {
                //data.TrollNames[i] = ocr.OCRFromBitmap(new Bitmap(data.DataDir + @"\crop"+i+".tif"));
                data.TrollNames[i] = ocr.OCRFromFile(data.DataDir + @"\crop" + i + ".tif");
                //data.TrollNames[i] = "" + i;
            }
        }
Exemplo n.º 2
0
 private void fetchStringNames()
 {
     TesseractOCR ocr = new TesseractOCR(data.WorkingDir+ @"\Tesseract-OCR\tesseract.exe");
     for (int i = 0; i < 5; i++)
     {
         //data.TrollNames[i] = ocr.OCRFromBitmap(new Bitmap(data.DataDir + @"\crop"+i+".tif"));
         data.TrollNames[i] = ocr.OCRFromFile(data.DataDir + @"\crop" + i + ".tif");
         //data.TrollNames[i] = "" + i;
     }
 }