Dear Expert
I develop some windows form app having the Image Viewer (FineReader SDK 10.5) as shown below
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
コメント
2件のコメント
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:
While waiting for some advice, I did it already as you told exactly. Thank you so much. :)
サインインしてコメントを残してください。