Skip to main content

MdlocrImport

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

Import a Deep Learning OCR dataset from disk.

Syntax

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

Description

This function imports a Deep Learning OCR dataset from disk. This function reads the specified JSON file describing the dataset and checks that all images can be restored. To export data from a dataset, use MdlocrExport.

Parameters

FolderPath (in, AIL_CONST_TEXT_PTR)

Specifies the name and path of a file from which to import. When specifying the name and path of a file, the function handles (internally) the opening and closing of that file. Also, for easier use with other Aurora Imaging software products, the specified file name must use the JSON file extension.

For specifying the file name and path

ValueDescription
"JsonPath"Specifies the required information for the file from which to import.

You must specify the file's drive, directory, and name (for example, "E:\Manual\MySweetSweetDataset.json").

To specify a dataset file on a remote computer (under Distributed Aurora Imaging Library), prefix the file name string with "remote:///" (for example, "remote:///E:\Manual\\MyEvenSweeterDataset.json"). |

DatasetFormat (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Operation (in, AIL_INT64)

Specifies the type of import operation to perform.

For specifying the type of the file that you can import

ValueDescription
M_APPENDSpecifies to append entries to the existing entries in the dataset.
M_RESTORESpecifies to overwrite any existing entries in the dataset.

DlocrDatasetId (in, AIL_ID)

Specifies the identifier of the dataset in which to import. Set this parameter to one of the following values.

For specifying the dataset in which to import

ValueDescription
DlocrDatasetIdSpecifies the identifier of a Deep Learning OCR dataset context. This dataset must have been previously allocated usingMdlocrAllocDataset.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.