#include "ltocr.h"
L_LTOCR_API L_INT EXT_FUNCTION L_OcrZoneManager_SetOMROptions(zoneManager, value)
Sets the OMR options to use by the engine.
Handle to the OCR engine zone manager.
Pointer L_OcrOMROptions structure to use to set the OMR options.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
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
For an example, refer to L_OcrZoneManager_GetOMROptions