Skip to main content

MdlocrGetHookInfo

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

Get information about a hooked Deep Learning OCR object event.

Syntax

AIL_INT64 MdlocrGetHookInfo(
AIL_ID EventId, //in
AIL_INT64 InfoType, //in
void * UserVarPtr //out
)

Description

This function retrieves information about the event that caused the hook-handler function to be called. This function should only be called within the scope of a Deep Learning OCR object hook-handler function call (see MdlocrHookFunction).

Parameters

EventId (in, AIL_ID)

Specifies the Deep Learning OCR object event identifier received by the hook-handler function. See MdlocrHookFunction for more information. The event will be of the type passed to the HookType parameter of the hook-handler function.

InfoType (in, AIL_INT64)

Specifies the type of information to get.

UserVarPtr *(out, void)

Specifies the address in which to write the requested information. Note that when getting parameter values, the UserVarPtr parameter should be of the same data type as value of the selected parameter.

Parameter Associations

For getting information about a hooked Deep Learning OCR object event


An M_FINETUNE_PROGRESS event ID

Specifies that the event that called the hook-handler function was due to an M_FINETUNE_PROGRESS event type on a fine-tuning context object.

M_PERCENTAGE

Retrieves the completion percentage of the fine-tuning operation.

ValueDescription
0.0 <= Value <= 100.0Specifies the percentage.

Combination Constants — For determining whether event results are available to be returned

Optional.

Usage: You can add one of the following values to the above-mentioned values to determine whether an event result is available to be returned.

M_AVAILABLE

Retrieves whether the requested information is available for retrieval.

ValueDescription
M_FALSESpecifies that the requested information is not available.
M_TRUESpecifies that the requested information is available.

Combination Constants — For specifying the data type

Optional.

Usage: You can add one of the following values to the above-mentioned values to cast the requested information to a required data type.

M_TYPE_AIL_DOUBLE

Casts the requested information to an AIL_DOUBLE.

M_TYPE_AIL_ID

Casts the requested information to an AIL_ID.

M_TYPE_AIL_INT

Casts the requested information to an AIL_INT.

M_TYPE_AIL_INT32

Casts the requested information to an AIL_INT32.

M_TYPE_AIL_INT64

Casts the requested information to an AIL_INT64.

Return Value

Type: AIL_INT64

The returned value is M_NULL if successful. If the operation fails, a non-null (M_NULL) value is returned.

Copyright © 2026 Zebra Technologies.