Dear Expert

I develop some windows form app having the Image Viewer (FineReader SDK 10.5) as shown below

Sample Screen

then I follow this step

  • Drag the Text Block over some text
  • Set Language to "Thai"
  • Hit Save button (calling FRDocument.SaveToFolder(path))
  • Close the form
  • Reopen the form
  • Hit Load button (calling FRDocument.LoadFromFolder(path))
  • The Language shows (Default) instead of "Thai"

The questiong is How can I restore the Language I set earlier?

I also try to programmatically set the Language by the below code, but it still show (Default).

TextBlock tb = frDoc.Pages[0].Layout.Blocks[0].GetAsTextBlock();
RecognizerParams rp = engine.CreateRecognizerParams();
rp.SetPredefinedTextLanguage("Thai");
tb.RecognizerParams = rp;

Please help

Thank you

Apinan

asked 08 Feb, 07:51

Apinan%20Tourist's gravatar image

Apinan Tourist
112

edited 08 Feb, 07:59


Indeed, the language of the block becomes "Default" after reopening the document. However if you recognize the document after you open it the second time, the recognition result will be correct (the text will be recognized in Thai in your scenario).

If you need a field that will show the correct language you can create a combobox with languages outside the ImageViewer and do the following:

  • Update the value of the combobox once you open a new document.
  • Change the value of "TextBlock.RecognizerParams.TextLanguage" when you change the value of the combobox.
link

answered 20 Feb, 14:48

Anna%20Fedyushkina's gravatar image

Anna Fedyush... ♦♦
363

While waiting for some advice, I did it already as you told exactly. Thank you so much. :)

link

answered 22 Feb, 18:37

Apinan%20Tourist's gravatar image

Apinan Tourist
112

edited 22 Feb, 18:38

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:

×20
×11
×5
×4

Asked: 08 Feb, 07:51

Seen: 380 times

Last updated: 22 Feb, 18:38

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