L_OcrEngine_GetEngineDirectory

Summary

Gets the path of the OCR engine runtime files directory.

Syntax

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrEngine_GetEngineDirectory(engine, value, count)

Parameters

L_OcrEngine engine

Handle to the OCR engine.

L_TCHAR* value

Allocated string buffer to hold the engine directory path, you should allocate enough memory for the this buffer to be filled with the engine's directory path.

L_UINT count

Number of the allocated string buffer elements, this should be _countof(value).

Returns

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

Comments

The engine directory is optionally passed as the engineDirectory parameter to the L_OcrEngine_Startup method. The is the path to the folder containing the OCR engine runtime files.

By default, during setup the LEADTOOLS OCR Module setup installs the OCR engine files to "Installation Path\Bin\Common\OcrLEADRuntime" where Installation Path is the root folder where the LEADTOOLS for C API is installed (for example, C:\LEADTOOLS22).

If engineDirectory parameter passed to the L_OcrEngine_Startup was NULL then LEADTOOLS OCR engine will look for these extra files in the default installation folder specified above.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_OcrEngine_Startup

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.