L_OcrAutoRecognizeJob_GetErrors

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrAutoRecognizeJob_GetErrors(autoRecognizeJob, value, count)

Gets an array that contains any errors occurred while job is running.

Parameters

L_OcrAutoRecognizeJob autoRecognizeJob

L_OcrAutoRecognizeJob handle to destroy.

L_OcrAutoRecognizeManagerJobError** value

Address to L_OcrAutoRecognizeManagerJobError* to be update with an array of job errors. You must call L_OcrMemory_Free on this parameter to free its memory.

L_UINT* count

Number of items in 'value' which represents the number of errors occurred during the job.

Returns

Value Meaning
SUCCESS The function was successful.
<1 An error occurred. Refer to Return Codes.

Comments

If the value of L_OcrAutoRecognizeManagerOptions.JobErrorMode (you can get retrieve L_OcrAutoRecognizeManagerOptions by calling L_OcrAutoRecognizeManager_GetOptions) was L_OcrAutoRecognizeManagerJobErrorMode_Continue when this job is run, then none critical errors can be logged and running continues. For example, if a source document has a page that could not be recognized. The offending page will be added to the final document as a graphics images and recognition will continue to the next page. In this mode, the engine will abort the whole job if an error occur, instead, all errors will be logged into the job's internal errors list that you can retrieve by calling L_OcrAutoRecognizeJob_GetErrors. When recognition finishes, you can check if this list is not empty and get the information of the errors and act upon them according to your application logic.

Note: You must call L_OcrMemory_Free on 'value' parameter to free its memory.

Required DLLs and Libraries

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

LEADTOOLS OCR Module - LEAD Engine C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.