Skip to main content

MstrExpert

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

Makes a diagnosis of the String Reader context and reports configuration problems.

Syntax

void MstrExpert(
AIL_ID ContextId, //in
const AIL_ID * ImageArrayPtr, //in
const void * TargetStringArrayPtr, //in
AIL_INT NbImages, //in
AIL_ID ResultId, //out
AIL_INT64 ControlFlag //in
)

Description

This function analyzes the consistency of a String Reader context using a specified image and a target string. Retrieve results using MstrGetResult; this function returns error and/or warning codes for problems found. Use MstrInquire to retrieve the meaning associated with these codes.

When the diagnosis of the String Reader context does not cause a general error (see MstrGetResult with M_GENERAL), the context is ready to be used to read the image provided to MstrExpert. You can call MstrExpert multiple times to find and correct problems in the context.

You can limit the verify operation to a region of the image buffer, using a rectangular ROI set with MbufSetRegion.

Note that this function is only available for a font-based context.

Parameters

ContextId (in, AIL_ID)

Specifies the identifier of the String Reader context. The String Reader context must have been previously allocated on the required system using MstrAlloc.

ImageArrayPtr *(in, AIL_ID)

Specifies the identifier of the image to analyze. Note that you cannot provide more than one image.

TargetStringArrayPtr *(in, void)

Specifies the identifier of the string to locate. This string represents the expected strings to locate in each image analyzed using MstrRead. The string array must be of the right type for the encoding scheme selected (MstrControl with M_ENCODING). Only one string is supported.

NbImages (in, AIL_INT)

Specifies the number of images to analyze. This parameter must be set to 1.

ResultId (out, AIL_ID)

Specifies the identifier of the String Reader result buffer in which to save the results of MstrExpert.

ControlFlag (in, AIL_INT64)

Specifies the type of analysis to perform with MstrExpert.

For specifying the type of analysis to perform

ValueDescription
M_DEFAULTSpecifies to report errors and warnings.
M_ERRORSSpecifies to report errors.
M_WARNINGSSpecifies to report warnings.
Copyright © 2026 Zebra Technologies.