MocrVerifyString

Synopsis

Verify a known string in an image.

Format

void MocrVerifyString(ImageBufId, FontId, String, OcrResultId)

MIL_ID ImageBufId; Image buffer identifier
MIL_ID FontId; Font buffer identifier
char *String; Character string to be verified
MIL_ID OcrResultId; OCR result buffer identifier

继续阅读MocrVerifyString

MocrSetConstraint()函数

Synopsis

Set character position constraints.

Format

void MocrSetConstraint(FontId, CharPos, CharPosType, CharValidString)

MIL_ID FontId; Font identifier
long CharPos; Character position to set
long CharPosType; Grammatical constraint parameter
char *CharValidString; String containing list of valid characters

继续阅读MocrSetConstraint()函数

MocrRestoreFont()函数

Synopsis

Restore a font from disk.

Format

MIL_ID MocrRestoreFont(FileName, Operation, SystemId, FontIdPtr)

char *FileName; Font file name
long Operation; Operation flag
MIL_ID SystemId; System identifier
MIL_ID *FontIdPtr; Storage location for font identifier

继续阅读MocrRestoreFont()函数

MocrImportFont()函数

Synopsis

Import font data from file on disk.

Format

void MocrImportFont(FileName, FileFormat, Operation, CharListString, FontId)

char *FileName; Name of font data source file
long FileFormat; File format
long Operation; Operation type
char *CharListString; String containing list of characters
MIL_ID FontId; Font identifier

继续阅读MocrImportFont()函数

MocrHookFunction()函数

Synopsis

Hook function to an event.

Format

MOCRHOOKFCTPTR MocrHookFunction(FontId, HookType, HookHandlerPtr, UserDataPtr)

MIL_ID FontId; Font identifier
long HookType; Type of event to hook
MOCRHOOKFCTPTR
HookHandlerPtr;
Address of function to call when an event occurs
void *UserDataPtr; User data pointer or M_NULL

继续阅读MocrHookFunction()函数