Skip to main content

MocrPreprocess

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Preprocess an OCR font context.

Syntax

void MocrPreprocess(
AIL_ID FontContextOcrId, //in
AIL_INT64 ControlFlag //in
)

Description

This function preprocesses the specified OCR font context. This function must be called before any read or verify operation and after all the control and constraints are set to speed up all subsequent read or verify operations. Note that preprocessing will be done automatically during the first read or verify operation if this function is not explicitly called.

Each time a font-specific control or target constraint is changed the OCR font context should be preprocessed. To learn if the OCR font context requires preprocessing, call MocrInquire with M_PREPROCESSED.

Parameters

FontContextOcrId (in, AIL_ID)

Specifies the OCR font context identifier.

ControlFlag (in, AIL_INT64)

Specifies the type of operation to perform. This parameter must be set to the following value.

For specifying the type of operation to perform

ValueDescription
M_DEFAULTPreprocesses the OCR font context.
Copyright © 2026 Zebra Technologies.