The OcrEngineManager class and its methods are your entry to using the Leadtools.Forms.Ocr class library.
You use the OcrEngineManager.CreateEngine method to create an instance of the IOcrEngine interface. Afterwards, you can 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:
LEADTOOLS for .NET class library supports multiple OCR engines. All the engines supported implement the same interfaces defined in Leadtools.Forms.Ocr.dll. As a result, your application code does not need to change when you switch between the engines.
The first parameters to the OcrEngineManager.CreateEngine method (engineType) is a value of the OcrEngineType enumeration to specify the name of the OCR engine to load. Internally, the framework will use Assembly.Load to load the corresponding assembly and create the objects that implements the various public interfaces (for example, IOcrEngine).
Currently, LEADTOOLS for .NET class library supports the following engines:
Engine | Description |
---|---|
OcrEngineType.Plus |
LEADTOOLS OCR Plus engine. The OCR library inside Leadtools.Forms.Ocr.Plus.dll is loaded. |
OcrEngineType.Professional |
LEADTOOLS OCR Professional engine. The OCR library inside Leadtools.Forms.Ocr.Professional.dll is loaded. |
OcrEngineType.Advantage |
LEADTOOLS OCR Advantage engine. The OCR library inside Leadtools.Forms.Ocr.Advantage.dll is loaded. |
OcrEngineType.Arabic |
LEADTOOLS OCR Arabic engine. The OCR library inside Leadtools.Forms.Ocr.Arabic.dll is loaded. |
Refer to Multi-Threading with LEADTOOLS OCR.