Exemple #1
0
        public bool CanProcess(string langCode)
        {
            if (string.IsNullOrEmpty(langCode) || !ocrDependencyManager.IsExecutableDownloaded)
            {
                return(false);
            }
            var availableLanguages = ocrDependencyManager.GetDownloadedLanguages();

            // Support multiple specified languages (e.g. "eng+fra")
            return(langCode.Split('+').All(code => availableLanguages.Any(x => x.Code == code)));
        }
Exemple #2
0
 public bool CanProcess(string langCode)
 {
     return(ocrDependencyManager.IsExecutableDownloaded &&
            ocrDependencyManager.GetDownloadedLanguages().Any(x => x.Code == langCode));
 }