L_OcrEngine_Destroy

Summary

Destroys the created OCR engine and all engine managers like setting manager, language manager, etc.

Syntax

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrEngine_Destroy(engine)

Parameters

L_OcrEngine engine

Handle to the OCR engine.

Returns

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

Comments

This function will shutdown the OCR engine and free all engine managers like setting manager, language manager, ...etc.

The difference between this function and L_OcrEngine_Shutdown is that this function as stated above will reset any engine settings user changed like changes he/she made to the settings manager, language manager and the rest of the engine managers since it destroys/free all of these, while L_OcrEngine_Shutdown only shuts down the engine but it keeps the engine changed settings until the next time the user wish to start the engine again.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_OcrPage_GetBitmap

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

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