#include "ltdoc.h"
L_LTDOC_API L_INT L_DocSetMOROptions(hDoc, pMOROpts)
L_HDOC hDoc; |
/* handle to the OCR document */ |
pMOROPTIONS pMOROpts; |
/* pointer to a MOROPTIONS structure */ |
Sets MOR recognition options in the OCR document engine.
Parameter |
Description |
hDoc |
Handle to the OCR document. |
pMOROpts |
Pointer to a MOROPTIONS structure which contains the options to be set. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
Sets MOR options to be used in the next recognition process.
This function will be used only when the recognition module is RECOGMODULE_MULTI_LINGUAL_OMNIFONT.
To recognize a page, call L_DocRecognize.
Required DLLs and Libraries
LTDOC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Functions: |
L_DocSetRecognizeModuleTradeOff, L_DocGetRecognizeModuleTradeOff, L_DocGetMOROptions, L_DocSetHandPrintOptions, L_DocGetHandPrintOptions, L_DocSetOMROptions, L_DocGetOMROptions |
Topics: |
|
|
Example
L_INT DocSetMOROptionsExample(L_HDOC hDoc) { L_INT nRet; MOROPTIONS MOROpts; ZeroMemory(&MOROpts, sizeof(MOROPTIONS)); nRet = L_DocGetMOROptions(hDoc, &MOROpts, sizeof(MOROPTIONS)); if(nRet != SUCCESS) return nRet; if (!MOROpts.bEnableFax) MOROpts.bEnableFax = TRUE; nRet = L_DocSetMOROptions(hDoc, &MOROpts); if(nRet != SUCCESS) return nRet; return SUCCESS; }