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