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;
    }**

asked 02 Dec '15, 13:34

hakanaktan's gravatar image

hakanaktan
2717


Hi,

Please sorry for the delay in the response.

I've just run your code snippet in our standard Hello sample and it seems to work well after I've added "FREngine.LanguageDatabase" before creation of a LanguageDatabase object ("langDatabase"):

...
FREngine.LanguageDatabase langDatabase = engineLoader.Engine.CreateLanguageDatabase();
FREngine.TextLanguage textLanguage = langDatabase.CreateCompoundTextLanguage(recognitionLanguages);
...

However, this is hardly is your problem because without this line the code is not compiled and the error message is other one.

Kindly send to SDK_Support@abbyy.com the following additional information, if the issue is still insisting:

  1. the serial number of your FineReader Engine package;
  2. a simplified application project with short instructions how the situation can be reproduced on our side;
  3. the AInfo reports from the machine on which the issue occurs. How to create this report please see the article: http://knowledgebase.ocrsdk.com/article/1208.
link

answered 07 Dec '15, 14:32

Oksana%20Serdyuk's gravatar image

Oksana Serdyuk ♦♦
1.5k16

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10
×1

Asked: 02 Dec '15, 13:34

Seen: 489 times

Last updated: 07 Dec '15, 14:32

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal