Skip to content

Commit 1ce5030

Browse files
authored
Update avoid-incorrect-barcode-results.md
1 parent 87e0e0b commit 1ce5030

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

general/avoid-incorrect-barcode-results.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,40 @@ needAutoGenerateSidebar: false
1212

1313
- One method is to raise the value of [minResultConfidence](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minresultconfidence) of the `RuntimeSettings` to a value of 50 or higher. It is set to 30 by default.
1414
- If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/interface/RuntimeSettings.html#minbarcodetextlength) property of the `RuntimeSettings`, the SDK can ignore results that are consistently coming out shorter than expected.
15+
---
16+
17+
> **Notice (Temporary Issue)**
18+
> This is a known issue in the current release and will be fixed in the next version.
19+
>
20+
> As a temporary solution, please set `IncludeTrailingCheckDigit` to `0` in the `BarcodeFormatSpecification` for Code128.
21+
> This will prevent the SDK from returning the trailing check digit.
22+
23+
### CODE_128 decoding returns an extra byte?
24+
25+
When using DBR v11, you may notice that decoding a **CODE_128** barcode returns one extra byte at the end if you call `item.get_bytes()`.
26+
27+
**Cause**
28+
By default, DBR includes the trailing check digit for CODE_128 in the decoded byte results.
29+
30+
**Solution**
31+
Set `IncludeTrailingCheckDigit` to `0` in the `BarcodeFormatSpecification` for Code128.
32+
33+
**Example JSON Configuration**
34+
35+
```json
36+
{
37+
"BarcodeFormatSpecificationOptions": [
38+
{
39+
"Name": "bfs1",
40+
"BarcodeFormatIds": [
41+
"BF_CODE_128"
42+
],
43+
"MinResultConfidence": 30,
44+
"RequireStartStopChars": 1,
45+
"ReturnPartialBarcodeValue": 1,
46+
"VerifyCheckDigit": 0,
47+
"IncludeTrailingCheckDigit": 0
48+
}
49+
],
50+
#...Other Settings
51+
}

0 commit comments

Comments
 (0)