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 AssertCustomOcrPathExist()
        {
            if (string.IsNullOrWhiteSpace(_configuration.OCRSoftwarePath))
            {
                return;
            }

            if (Directory.Exists(_configuration.OCRSoftwarePath))
            {
                return;
            }

            throw new DirectoryNotFoundException(string.Format(Properties.Resources.OcrSoftwareNotFoundError, _ocrSoftware.GetType().Name, _configuration.OCRSoftwarePath));
        }
        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);
        }