TesseractOcrSettings ISettingsRecognition.Settings()
        {
            OcrLanguage          language = OcrLanguage.Russian;
            TesseractOcrSettings setting  = new TesseractOcrSettings(language);

            return(setting);
        }
예제 #2
0
 public void Recognize(TesseractOcrSettings settings, VintasoftImage image)
 {
     using (TesseractOcr tesseractOcr = new TesseractOcr())
     {
         tesseractOcr.Init(settings);
         tesseractOcr.SetImage(image);
         OcrPage ocrResult = tesseractOcr.Recognize();
         _editor.EditorResult(ocrResult);
     }
 }
예제 #3
0
        public void CreateTesseractEngine()
        {
            string tesseractOcrDllPath = @"G:\Programm\vintasoft\Bin\TesseractOCR";

            using (TesseractOcr tesseractOcr = new TesseractOcr(tesseractOcrDllPath))
            {
                OcrLanguage          language = OcrLanguage.Russian;
                TesseractOcrSettings settings = new TesseractOcrSettings(language);
                tesseractOcr.Init(settings);

                tesseractOcr.Shutdown();
            }
        }