Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, October 31, 2019 3:40:55 PM(UTC)

Nick  
Nick

Groups: Registered, Tech Support, Administrators
Posts: 163

Was thanked: 9 time(s) in 9 post(s)

The LEADTOOLS SDK exposes specific settings for the OCR engines it provides via the IOcrSettingManager.
https://www.leadtools.co.../iocrsettingmanager.html

The timeout value for the OmniPage engine is designated by the string "Engine.Timeout". This value can be retrieved by IOcrSettingManager.GetIntegerValue() and IOcrSettingManager.SetIntegerValue().
https://www.leadtools.co...ger-getintegervalue.html
https://www.leadtools.co...ger-setintegervalue.html

The default value is 180000 (180 seconds). The code snippet below shows how to change this value to 120000 (120 seconds). Note changes are only effective for the current session.

Code:

using (IOcrEngine ocrEngine = OcrEngineManager.CreateEngine(OcrEngineType.OmniPage, false))
{
ocrEngine.Startup(null, null, null, null);
IOcrSettingManager settingManager = ocrEngine.SettingManager;
settingManager.SetIntegerValue("Engine.Timeout", 120000);
ocrEngine.Shutdown();
ocrEngine.Dispose();
}

Note the "Engine.Timeout" value is not an accessible setting for the LEAD engine and it is unable to be modified. However, an OCR operation can still be preemptively cancelled--see this post for using the LEAD engine.
https://www.leadtools.co...rminate-an-OCR-operation
Nick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.045 seconds.