#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2GetOMROptionsExt(hDoc, nDocId, pOMROpts, uStructSize)
Gets the current OMR recognition options used by the OCR document engine.
Handle to the OCR document.
Document ID created by calling L_Doc2CreateDocument.
Pointer to an OMROPTIONS2 structure to be updated.
Size in bytes, of the structure pointed to by_pOMROpts_. Use sizeof(OMROPTIONS2) to calculate this value.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
OMR options are only used if the recognition module is DOC2_RECOGMODULE_OMR.
To update the OMR options, call the L_Doc2SetOMROptions / L_Doc2SetOMROptionsExt function.
To recognize a page, call the L_Doc2Recognize / L_Doc2RecognizeExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2SetOMROptionsExt.