コード例 #1
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);
     }
 }
コード例 #2
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();
            }
        }