private void InitializeOcrSoftware() { AssertCustomOcrPathExist(); _ocrSoftware = ExportedTypeLibrary.Import <IOcrSoftware>(_configuration.OCRSoftware); Logger.Instance.LogFormat(LogType.Info, this, Properties.Resources.InitializeUsingOcrSoftware, _configuration.OCRSoftware); }
private void InitializeOcrSoftware() { AssertCustomOcrPathExist(); /* Hard-coded to internally used tesseract. */ _ocrSoftware = new TesseractOcrSoftware(); Logger.Instance.LogFormat(LogType.Info, this, Properties.Resources.InitializeUsingOcrSoftware, _ocrSoftware.GetType().Name); }
private void InitializeOcrSoftware() { AssertCustomOcrPathExist(); _ocrSoftware = ExportedTypeLibrary.Import<IOcrSoftware>(_configuration.OCRSoftware); Logger.Instance.LogFormat(LogType.Info, this, Properties.Resources.InitializeUsingOcrSoftware, _configuration.OCRSoftware); }
private void InitializeSettings() { _faxPath = new DirectoryInfo(_configuration.FaxPath); _archivePath = new DirectoryInfo(_configuration.ArchivePath); _analysisPath = new DirectoryInfo(_configuration.AnalysisPath); AssertCustomOcrPathExist(); _ocrSoftware = ExportedTypeLibrary.Import<IOcrSoftware>(_configuration.OCRSoftware); // Import parser with the given name/alias _parser = ExportedTypeLibrary.Import<IFaxParser>(_configuration.AlarmFaxParserAlias); Logger.Instance.LogFormat(LogType.Info, this, "Using parser '{0}'.", _parser.GetType().FullName); }