MocrReadString

Synopsis

Read an unknown string from an image.

Format

void MocrReadString(ImageBufId, FontId, OcrResultId)

MIL_ID ImageBufId; Image buffer identifier
MIL_ID FontId; Font buffer identifier
MIL_ID OcrResultId; OCR result buffer identifier

Description

This function reads an unknown string from the specified image using the specified font. All existing font controls and constraints (which can be set with MocrControl and MocrSetConstraint) are taken into account, and results are stored in the specified result buffer. Results can be read from the result buffer by using the MocrGetResult function.

This function assumes that the string to be read has the same length as specified in the font, and that the target string characters have the same type, size, and spacing as the characters in the sample image used for calibration (see MocrCalibrateFont).

The ImageBufId parameter specifies the buffer identifier of the image which contains the string to be read.

The FontId parameter specifies the buffer identifier of the font to use to read the string in the target image.

The OcrResultId parameter specifies the result buffer in which to place results of the read operation.

See also

MocrCalibrateFont, MocrGetResult, MocrSetConstraint, MocrControl, MocrVerifyString