Skip to content

Commit 87e0e0b

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

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

general/avoid-incorrect-results.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,41 @@ needAutoGenerateSidebar: false
1212
[<< Back to FAQ index](index.md)
1313

1414
One way to avoid this is to set the [minBarcodeTextLength](https://www.dynamsoft.com/barcode-reader/docs/server/programming/cplusplus/api-reference/simplified-barcode-reader-settings.html#:~:text=int%20minResultConfidence%3B-,int%20minBarcodeTextLength%3B,-char%20barcodeTextRegExPattern%5B) in [SimplifiedBarcodeReaderSettings](https://www.dynamsoft.com/barcode-reader/docs/server/programming/cplusplus/api-reference/simplified-barcode-reader-settings.html#:~:text=SimplifiedBarcodeReaderSettings-,SimplifiedBarcodeReaderSettings,-The%20SimplifiedBarcodeReaderSettings%20struct) of [SimplifiedCaptureVisionSettings](https://www.dynamsoft.com/capture-vision/docs/server/programming/cplusplus/api-reference/capture-vision-router/structs/simplified-capture-vision-settings.html?product=dbr&repoType=server) to the correct length that the barcode results should be. Say that the barcode results should at least be 10 characters long, and the results are sometimes coming out with just 6 or 7 characters. By setting the minBarcodeTextLength to 10, the SDK will ignore results that are shorter than 10 characters.
15+
16+
---
17+
18+
> **Notice (Temporary Issue)**
19+
> This is a known issue in the current release and will be fixed in the next version.
20+
>
21+
> As a temporary solution, please set `IncludeTrailingCheckDigit` to `0` in the `BarcodeFormatSpecification` for Code128.
22+
> This will prevent the SDK from returning the trailing check digit.
23+
24+
### CODE_128 decoding returns an extra byte?
25+
26+
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()`.
27+
28+
**Cause**
29+
By default, DBR includes the trailing check digit for CODE_128 in the decoded byte results.
30+
31+
**Solution**
32+
Set `IncludeTrailingCheckDigit` to `0` in the `BarcodeFormatSpecification` for Code128.
33+
34+
**Example JSON Configuration**
35+
36+
```json
37+
{
38+
"BarcodeFormatSpecificationOptions": [
39+
{
40+
"Name": "bfs1",
41+
"BarcodeFormatIds": [
42+
"BF_CODE_128"
43+
],
44+
"MinResultConfidence": 30,
45+
"RequireStartStopChars": 1,
46+
"ReturnPartialBarcodeValue": 1,
47+
"VerifyCheckDigit": 0,
48+
"IncludeTrailingCheckDigit": 0
49+
}
50+
],
51+
#...Other Settings
52+
}

0 commit comments

Comments
 (0)