Hi, I'm trying to use OutprocLoader to create engine and recognize image.

Here is a code:

var engineLoader = new OutprocLoader();
var processControl = (IHostProcessControl) engineLoader; processControl.SetClientProcessId(Process.GetCurrentProcess().Id); var engine = engineLoader.GetEngineObjectEx("SWATXXXXXXXXXXXXXXXXXXXX", null, null, true); var frDocument = engine.CreateFRDocument(); frDocument.AddImageFile(@"C:\Users\kiril_000\Downloads\Demo.jpg"); frDocument.Recognize(); Console.WriteLine(frDocument.PlainText.Text);

But every time I run this code, it returns empty string. Demo image contains text. So how can I debug engine in this case? Does FREngine.exe write logs?

Thanks in advance.

asked 30 Sep '14, 16:33

kirill's gravatar image


Most probably, Engine object was not correctly created. Please try to use GetEngineObject function instead of GetEngineObjectEx one. Please note that you should pass ProjectId as the first parameter. To get more information about ProjectId see this KnowledgeBase article.

">>Does FREngine.exe write logs?"

Sure, in order to turn on logging, use IEngine::StartLogging method (Help -> API Reference -> Engine Object -> Supplementary Methods).


answered 30 Sep '14, 17:15

Anastasiya%20Medvedeva's gravatar image

Anastasiya M... ♦♦

Your answer
toggle preview

Follow this question

By Email:

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



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



Asked: 30 Sep '14, 16:33

Seen: 1,081 times

Last updated: 30 Sep '14, 17:15

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