Skip to main content

MdlocrExport

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

Export a Deep Learning OCR dataset to disk.

Syntax

void MdlocrExport(
AIL_CONST_TEXT_PTR FolderPath, //in
AIL_INT64 DatasetFormat, //in
AIL_ID DlocrDatasetId, //in
AIL_INT64 ControlFlag //in
)

Description

This function exports a Deep Learning OCR dataset to disk. This function creates a copy of all of the images in the dataset and creates a JSON file containing information about the dataset in the same folder. To import data from a JSON file, use MdlocrImport.

Parameters

FolderPath (in, AIL_CONST_TEXT_PTR)

Specifies the path of the folder in which to export the dataset. The function handles (internally) the copying of files to the folder. The destination folder should exist and be empty.

For specifying the folder path

ValueDescription
"FolderPath"Specifies the path of the folder in which to export the dataset.

You must specify the folder's drive and directory (for example, "E:\mydirectory").

To specify a dataset folder on a remote computer (under Distributed Aurora Imaging Library), prefix the folder path string with "remote:///" (for example, "remote:///E:\mydirectory\"). |

DatasetFormat (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

DlocrDatasetId (in, AIL_ID)

Specifies the identifier of the dataset to export. Set this parameter to one of the following values.

For specifying the dataset to export

ValueDescription
DlocrDatasetIdSpecifies the identifier of a Deep Learning OCR dataset. This dataset must have been previously allocated usingMdlocrAllocDataset and contain entries added using MdlocrAddImageToDataset.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.