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); } }
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(); } }