| Customize Help
| Save Settings


Function Map
Preprocess a SureDotOCR context.
void MdmrPreprocess(
MIL_ID ContextDmrId, //in
MIL_INT64 ControlFlag //in

This function prepares a SureDotOCR context for a read operation. This allows SureDotOCR to make internal refinements so it can execute optimized and robust dot-matrix character recognition processes. You must call this function before the first call to MdmrRead(). To preprocess a context without error, it must contain at least one font, one character, and one string model.

Changes to a context or to any of its content often require you to preprocess the context again. To inquire a context's preprocessing state, call MdmrInquire() with M_PREPROCESSED.

Saving a context does not save preprocessing changes. Upon restoration, you must preprocess the context again.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.

Specifies the identifier of the SureDotOCR context to preprocess. The context must have been previously allocated on the system using MdmrAlloc().


Specifies whether to preprocess the SureDotOCR context. Set this parameter to one of the values below:

function map For specifying whether to preprocess the context
Click to summarizeValue Description
Click to summarize M_DEFAULT

Preprocesses the context.

Click to summarize M_RESET

Un-preprocesses the context.

Un-preprocessing the context can be useful if you want to conserve system memory within an application and preserve context settings.

Compilation information
Header Include mil.h.
Library Use mil.lib; mildmr.lib.
DLL Requires mil.dll; mildmr.dll.