LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW-TO: Changing the Timeout Value for the OmniPage Engine
#1
Posted
:
Thursday, October 31, 2019 3:40:55 PM(UTC)
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.htmlThe 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.htmlhttps://www.leadtools.co...ger-setintegervalue.htmlThe 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-operationNick Crook
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
HOW-TO: Changing the Timeout Value for the OmniPage Engine
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.