예제 #1
0
        private void InitializeOcrSoftware()
        {
            AssertCustomOcrPathExist();

            _ocrSoftware = ExportedTypeLibrary.Import <IOcrSoftware>(_configuration.OCRSoftware);
            Logger.Instance.LogFormat(LogType.Info, this, Properties.Resources.InitializeUsingOcrSoftware, _configuration.OCRSoftware);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        private void InitializeOcrSoftware()
        {
            AssertCustomOcrPathExist();

            _ocrSoftware = ExportedTypeLibrary.Import<IOcrSoftware>(_configuration.OCRSoftware);
            Logger.Instance.LogFormat(LogType.Info, this, Properties.Resources.InitializeUsingOcrSoftware, _configuration.OCRSoftware);
        }
예제 #5
0
        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);
        }