Need better scanning performance?
ExpectedBarcodesCount
ExpectedBarcodesCount defines the number of barcodes expected to be detected.
JSON Structure
Location in template:
BarcodeReaderTaskSettingOptions[i]
└── ExpectedBarcodesCount
Parent object: BarcodeReaderTaskSetting
Example:
{
"ExpectedBarcodesCount": 0
}
- This snippet shows only the
ExpectedBarcodesCountparameter.- To use it, embed this parameter within a BarcodeReaderTaskSetting object in the complete JSON structure.
- For the complete JSON structure, see:
Parameter Details
| ExpectedBarcodesCount Parameter Details |
|---|
| Type int |
| Range [0, 0x7fffffff] |
| Default Value 0 |
Remarks
- 0: detects at least one barcode.
- N ( N > 0 ): detects N barcodes.
- Dynamsoft Barcode Reader works as a loop trying different parameters to detect barcodes as many as possible. If ExpectedBarcodesCount is 0, the loop stops after a loop round finishes and detects at least one barcode. If ExpectedBarcodesCount is N, the loop stops once N barcodes are detected.
- ExpectedBarcodesCount applies to each page when decoding a multi-page file.