We are using FREngine 10 and using OCR with our software. One of our customer receives error about language files. We tried Turkish and English languages but we strill receive the error.
System.Exception: GetIndexData error ---> System.Exception: Perform OCR error ---> bn: Engine is busy ---> System.Runtime.InteropServices.COMException: Recogntion language 'English' can not be found. at FREngine.ILanguageDatabase.CreateCompoundTextLanguage(StringsCollection LanguageNames)
I checked the language files and they are just they have to be. And added path of files to system settings. Here is the code:
**internal static TextLanguage CreateTextLanguage(List<string> languages)
{
FREngine.StringsCollection recognitionLanguages = ImageProcessingEngine.FREngine.CreateStringsCollection();
foreach (string item in languages)
{
recognitionLanguages.Insert(item, 0);
}
ILanguageDatabase langDatabase = ImageProcessingEngine.FREngine.CreateLanguageDatabase();
FREngine.TextLanguage textLanguage =
langDatabase.CreateCompoundTextLanguage(recognitionLanguages);
return textLanguage;
}**