#include "ltocr.h"
L_LTOCR_API L_INT EXT_FUNCTION L_OcrAutoRecognizeManager_RunJob(autoRecognizeManager, autoRecognizeJob)
| L_OcrAutoRecognizeManager autoRecognizeManager; | handle to the OCR auto recognize manager |
| L_OcrAutoRecognizeJob autoRecognizeJob; | handle to the OCR auto recognize job |
Runs a job.
| Parameter | Description |
|---|---|
| autoRecognizeManager | Handle to the OCR engine auto recognize manager. |
| autoRecognizeJob | Handle to the OCR engine auto recognize job. |
| SUCCESS | The function was successful. |
| < 1 | An error occurred. Refer to Return Codes. |
If you call this method from the same thread that created L_OcrAutoRecognizeManager, then the current thread will block till this method returns. To run a job asynchronously, use L_OcrAutoRecognizeManager_RunJobAsync.
When this method returns you can call L_OcrAutoRecognizeJob_GetErrors to get any errors that might occurred during the recognition process.
To use this method, initialize a new L_OcrAutoRecognizeJobData structure with the job's parameters (input image file name, pages, output document format, output document name, optional zones file name, etc.), then use L_OcrAutoRecognizeManager_CreateJob to create the L_OcrAutoRecognizeJob handle passed as job handle to this method. Finally, call L_OcrAutoRecognizeManager_RunJob passing the L_OcrAutoRecognizeJob handle.
This method will perform the following operations:
The L_OcrAutoRecognizeManager also has some options that you can control, For more information about these options, refer to L_OcrAutoRecognizeManager_GetOptions and L_OcrAutoRecognizeManager_SetOptions.
Required DLLs and Libraries
| LTOCR For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
For an example, refer to L_OcrAutoRecognizeManager_SetJobOperationCallback.