L_OcrZoneManager_SetOMROptions

#include "ltocr.h"

L_LTOCR_API L_INT EXT_FUNCTION L_OcrZoneManager_SetOMROptions(zoneManager, value)

Sets the OMR options to use by the engine.

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

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

LEADTOOLS OCR Module - LEAD Engine C API Help