Starting and Shutting Down the Engine
To begin using the LEADTOOLS OCR document toolkit, the user must start and initialize the OCR engine by calling the StartUp method. The StartUp method initializes the engine using default values. Once the StartUp method has been called, the user may set the desired engine settings using properties and methods provided by LEADTOOLS. Some of these properties are listed below:
The user may opt to load previously saved engine settings by calling the LoadSettingsFile method. This method loads engine settings that have been saved in a file in an earlier session using the SaveSettingsFile method.
While working with the OCR engine, the user can receive progress notification through the ProgressStatus event for all processes performed by the OCR engine. To generate these ProgressStatus events, the EnableProgressStatusEvent property must be set to TRUE. To stop the generation of these events, set the EnableProgressStatusEvent property to FALSE. In addition, the ProgressStatus event may also be stopped within the event itself by setting the StopProgressStatusEvent property to TRUE.
When the OCR engine is no longer needed, the user must stop the engine and free any associated memory used by the engine by calling the ShutDown method. Once the ShutDown method has been called, the user must again call the StartUp method before recognizing any more pages.