Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
ExpectedBarcodesCount
is a parameter to control the number of barcodes expected to be detected. It is defined as below:
Value Type | Value Range | Default Value |
---|---|---|
int | [0, 0x7fffffff] | 0 |
Remarks
ExpectedBarcodesCount
is supported to be set through RuntimeSetting
or JSON template.
PublicRuntimeSettings
MemberExpectedBarcodesCount
can be set dynamically during runtime as a member of PublicRuntimeSettings
struct.
Code Snippet in C++
//...other codes
PublicRuntimeSettings* pSettings = new PublicRuntimeSettings;
int errorCode = reader->GetRuntimeSettings(pSettings);
pSettings->expectedBarcodesCount = 1;
reader->UpdateRuntimeSettings(pSettings);
delete pSettings;
//...other codes
See Also
PublicRuntimeSettings:
JavaScript | C | C++ | .NET | Python | Java | Java-Android | Objective-C & SwiftExpectedBarcodesCount
as a JSON parameter is a number value defined as below.
Key Name | Key Value |
---|---|
ExpectedBarcodesCount | A number from [0, 0x7fffffff] |
JSON Example
{
"ExpectedBarcodesCount": 0
}
Setting ExpectedBarcodesCount
to a specific number when barcode count is certain may speed up the process.
Setting ExpectedBarcodesCount
to a large number when barcode count is uncertain may improve the Read Rate.
ExpectedBarcodesCount
has no influence on the Accuracy.
latest version