Skip to main content

MdlocrCopy

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

Copy settings between two Deep Learning OCR read contexts, or copy results from a Deep Learning OCR fine-tuning result buffer to a read context.

Syntax

void MdlocrCopy(
AIL_ID SrcDlOcrContextOrResult, //in
AIL_ID DstDlOcrContext, //out
AIL_INT64 CopyType, //in
AIL_INT64 ControlFlag //in
)

Description

This function copies settings from the source read context (SrcDlOcrContextOrResult) to the destination read context (DstDlOcrContext). This is useful, for example, if you want to allocate a new context using a different deep learning model (ContextType) and keep the same settings.

Alternatively, this function copies results from a source Deep Learning OCR fine-tuning result buffer (SrcDlOcrContextOrResult) to a destination read context (DstDlOcrContext). You can then use this Deep Learning OCR read context in a MdlocrRead operation.

You must preprocess the destination Deep Learning OCR context before calling MdlocrRead or MdlocrFinetune. To know if a context needs to be preprocessed, call MdlocrInquire with M_PREPROCESSED.

Parameters

SrcDlOcrContextOrResult (in, AIL_ID)

Specifies the identifier of the source Deep Learning OCR read context or fine-tuning result buffer from which to copy.

DstDlOcrContext (out, AIL_ID)

Specifies the identifier of the destination Deep Learning OCR context in which to copy.

CopyType (in, AIL_INT64)

Specifies the type of copy operation to perform.

For specifying the copy operation

ValueDescription
M_ALL_COMMON_SETTINGSSpecifies to copy all common settings from the source read context to the destination read context. The SrcDlOcrContextOrResult parameter must be set to a valid Deep Learning OCR read context identifier.
M_FINETUNED_CONTEXTSpecifies to copy the result of a fine-tuning operation from a source fine-tuning result buffer to a destination read context. The SrcDlOcrContextOrResult parameter must be set to a valid Deep Learning OCR fine-tuning result buffer identifier.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.