L_OcrZoneManager_SetOMROptions

Summary

Sets the OMR options to use by the engine.

Syntax

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrZoneManager_SetOMROptions(zoneManager, value)

Parameters

L_OcrZoneManager zoneManager

Handle to the OCR engine zone manager.

const L_OcrOMROptions* value

Pointer L_OcrOMROptions structure to use to set the OMR options.

Returns

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

Comments

Sets the OMR options to used by the engine.

OMR stands for Optical Mark Recognition. For more information refer to Using OMR in LEADTOOLS C API OCR.

With the L_OcrOMROptions, you can change the following OMR settings:

The OMR zones of a page have the L_OcrZone.ZoneType property set to L_OcrZoneType_OMR.

Currently LEADTOOLS OCR Module - LEAD Engines does not supports auto detection of OMR zones. Instead, you need to: add the OMR zones manually to the page by setting their boundary (through L_OcrZone.Bounds, the zone type through L_OcrZone.ZoneType and adding the zone to the page using the L_OcrPage_AddZone or L_OcrPage_InsertZone before calling L_OcrPage_Recognize.

To use OMR in LEADTOOLS, you need a special key to unlock the OMR capabilities. For more information, refer to Setting a Runtime License.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_OcrZoneManager_GetOMROptions

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.