Need better scanning performance?
DPMCodeReadingModes
Parameter DPMCodeReadingModes defines how to read direct part mark (DPM) barcodes.
JSON Structure
Location in template:
BarcodeReaderTaskSettingOptions[i]
└── DPMCodeReadingModes
Parent object: BarcodeReaderTaskSetting
Example:
{
"DPMCodeReadingModes": [
{
"Mode": "DPMCRM_GENERAL",
"BarcodeFormat": "BF_DATAMATRIX"
}
]
}
- This snippet shows only the
DPMCodeReadingModesparameter.- To use it, embed this parameter within a
BarcodeReaderTaskSettingobject.- For the complete JSON structure, see:
Parameter Details
Parameter DPMCodeReadingModes consists of a group of DPM code reading mode objects. Each DPM code reading mode object includes a candidate mode and a series of auxiliary mode arguments.
Mode Arguments
The mode arguments of the DPM code reading mode object are shown as follows:
| Mode Argument Name | Mode Argument Summary |
|---|---|
| Mode (Required) |
Description Specifies a mode to read DPM barcode. |
| Type String |
|
| Candidate Mode List DPMCRM_GENERAL DPMCRM_AUTO DPMCRM_SKIP |
|
| BarcodeFormat (Optional) |
Description Specifies the format of the DPM barcode to be processed. |
| Type String |
|
| Range "BF_DATAMATRIX" or "BF_QR_CODE" |
|
| Default Value "BF_DATAMATRIX" |
|
| LibraryFileName (Optional) |
Description Sets the file name of the library to load dynamically. |
| Type String |
|
| Range A string value representing file name. |
|
| Default Value "" |
|
| Valid For All modes. |
|
| LibraryParameters (Optional) |
Description The library must be in the same place with Dynamsoft Barcode Reader Library. |
| Type String |
|
| Range A string value representing parameters. |
|
| Default Value "" |
|
| Valid For All modes. |
Default Setting
If the DPMCodeReadingModes is not configured in your template file, the following setting will be used as the default setting.
{
"DPMCodeReadingModes": [
{
"Mode" : "DPMCRM_SKIP"
}
]
}
Candidate Mode Introductions
DPMCRM_GENERAL
Reads DPM codes using the general algorithm. This mode has the following arguments for further customizing.
- BarcodeFormat
- LibraryFileName
- LibraryParameters
DPMCRM_AUTO
Lets the library choose a mode automatically. Not supported yet.