Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

How-to Guides - Decode DPM Data Matrix

Since version 7.2 of Dynamsoft Barcode Reader SDK, direct part mark (DPM) Data Matrix scanning is supported. To decode DPM codes, some particular settings are required:

The value DPMCRM_GENERAL needs to be set for the parameter PublicRuntimeSettings->FurtherModes->DPMCodeReadingModes.

The value LM_STATISTICS_MARKS needs to be set for the parameter PublicRuntimeSettings->LocalizationModes.

For more information about decoding DPM, see DPM Decoding.

The following code shows how to set the runtime settings for DPM decoding:

char sError[512];
TextResultArray* paryResult = NULL;
CBarcodeReader reader;
PublicRuntimeSettings* runtimeSettings = new PublicRuntimeSettings();
reader.InitLicense("<your license key here>");
//turn on the DPM mode
runtimeSettings->furtherModes.dpmCodeReadingModes[0] = DPMCRM_GENERAL;
runtimeSettings->localizationModes[0] = LM_STATISTICS_MARKS;
//update the runtime settings
reader.UpdateRuntimeSettings(runtimeSettings, sError, 512);
reader.DecodeFile("<your image file full path>", "");

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

latest version

    • Latest version
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.5
    • Version 8.2.3
    • Version 8.2.1
    • Version 8.2.0
    • Version 8.1.3
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
    • Version 7.6.0
    • Version 7.5.0
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support