How to specify an extraction area in FineReader Engine 12

This code-snippet demonstrates how to specify an extraction area:

FREngine.IRegion region = engineLoader.Engine.CreateRegion();
region.AddRect(244, 287, 1422, 356);
document.Pages[0].Layout.Blocks.AddNew(FREngine.BlockTypeEnum.BT_Text, region, 0);
document.Pages[0].Layout.Blocks[0].GetAsTextBlock().RecognizerParams.SetPredefinedTextLanguage("Japanese");
document.Pages[0].Recognize();
document.Synthesize();
string text = document.Pages[0].Layout.Blocks[0].GetAsTextBlock().Text.Paragraphs[0].Text;

Was this article helpful?

1 out of 1 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed