To begin using the LEADTOOLS for .NET OCR class library, create an instance of the IOcrEngine" interface by calling the OcrEngineManager.CreateEngine method (for more information, refer to Creating an OCR Engine Instance). After the instance is obtained, initialize it by calling the IOcrEngine.Startup method. The IOcrEngine.Startup method must be called before calling any other LEADTOOLS OCR methods.
After calling the IOcrEngine.Startup method has been called, it is possible to load engine settings saved in a file into the engine. To load saved settings from a file or a .NET stream, call the IOcrSettingManager.Load method. Access the instance of the setting manager associated with the engine through the IOcrEngine.SettingManager">IOcrEngine.SettingManager property. To save engine settings into a file or a .NET stream for later use, call the IOcrSettingManager.Save method.
When the OCR engine instance is no longer needed, close the instance by calling the IOcrEngine.Shutdown method. This will free all internal resources allocated by the engine instance. At this point the IOcrEngine" instance becomes invalid. Before recognizing any more pages, it is necessary to establish a new IOcrEngine" instance by calling the IOcrEngine.Startup method again.
Notice that the IOcrEngine interface also implements the .NET IDisposable interface, hence it is best to call the IOcrEngine.Dispose method after the instance is longer in use (or use of the C# using or VB Using keywords). IOcrEngine.Dispose will automatically call IOcrEngine.Shutdown, if it has not already been called for this instance.
Getting Started (Guide to Example Programs)
Programming with LEADTOOLS .NET OCR
Multi-Threading with LEADTOOLS OCR
An Overview of OCR Recognition Modules
Creating an OCR Engine Instance
OCR Spell Language Dictionaries
Using OMR in LEADTOOLS .NET OCR
OCR Languages and Spell Checking
OCR Tutorial - Adding and Painting Zones
OCR Tutorial - Working with Pages
OCR Tutorial - Recognizing Pages
Products |
Support |
Feedback: Starting and Shutting Down the OCR Engine |
Introduction |
Help Version 19.0.2017.6.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.