In This Topic ▼

Creating an OCR Engine Instance

The OcrEngineManager class and its methods are your entry to using the Leadtools.Ocr class library.

Use the OcrEngineManager.CreateEngine method to create an instance of the IOcrEngine interface. Afterwards, use the properties and methods of this interface to perform the various OCR tasks required.

There are two things to consider when creating an IOcrEngine instance:


OCR Engine Type The LEADTOOLS for .NET class library supports multiple OCR engines. All engines supported implement the same interfaces defined in Leadtools.Ocr.dll. As a result, it is not necessary to change the application code when switching engines.

The first parameter of the OcrEngineManager.CreateEngine method (engineType) is a value of the OcrEngineType enumeration. It specifies which OCR engine to load. Internally, the framework uses Assembly.Load to load the corresponding assembly and create the objects that implement the various public interfaces (for example, IOcrEngine).

Currently, the LEADTOOLS for .NET class library supports the following engines:

Engine Description
OcrEngineType.LEAD

LEADTOOLS OCR Module - LEAD Engine engine. The OCR library inside Leadtools.Ocr.LEADEngine.dll is loaded.

OcrEngineType.OmniPage

LEADTOOLS OCR Module - OmniPage Engine engine. The OCR library inside Leadtools.Ocr.OminPageEngine.dll is loaded.

OcrEngineType.OmniPageArabic

LEADTOOLS OCR Module - OmniPage Engine with Additional Languages engine. The OCR library inside Leadtools.Ocr.OmniPageArabicEngine.dll is loaded.


Using the LEADTOOLS OCR Thunk Server Refer to Multi-Threading with LEADTOOLS OCR.

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Imaging, Medical, and Document