Skip to content

Commit

Permalink
fix: bump zxing-cpp to 308f820 and improve DataBar detection rate
Browse files Browse the repository at this point in the history
Snapshots are also updated accordingly.
  • Loading branch information
Sec-ant committed Oct 30, 2024
1 parent 6ffb01e commit 983ea20
Show file tree
Hide file tree
Showing 28 changed files with 315 additions and 134 deletions.
39 changes: 39 additions & 0 deletions tests/__snapshots__/rss14-2/0120358468019312/fast-0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"isValid": true,
"error": "",
"format": "DataBar",
"bytes": "f562a41",
"bytesECI": "7753e81",
"text": "20358468019312",
"eccLevel": "",
"contentType": "Text",
"hasECI": false,
"position": {
"topLeft": {
"x": 18,
"y": 3
},
"topRight": {
"x": 334,
"y": 3
},
"bottomRight": {
"x": 334,
"y": 4
},
"bottomLeft": {
"x": 18,
"y": 4
}
},
"orientation": 0,
"isMirrored": false,
"isInverted": false,
"symbologyIdentifier": "]e0",
"sequenceSize": -1,
"sequenceIndex": -1,
"sequenceId": "",
"readerInit": false,
"lineCount": 2,
"version": ""
}
39 changes: 39 additions & 0 deletions tests/__snapshots__/rss14-2/0120358468019312/fast-180.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"isValid": true,
"error": "",
"format": "DataBar",
"bytes": "f562a41",
"bytesECI": "7753e81",
"text": "20358468019312",
"eccLevel": "",
"contentType": "Text",
"hasECI": false,
"position": {
"topLeft": {
"x": 338,
"y": 3
},
"topRight": {
"x": 22,
"y": 3
},
"bottomRight": {
"x": 22,
"y": 4
},
"bottomLeft": {
"x": 338,
"y": 4
}
},
"orientation": 180,
"isMirrored": false,
"isInverted": false,
"symbologyIdentifier": "]e0",
"sequenceSize": -1,
"sequenceIndex": -1,
"sequenceId": "",
"readerInit": false,
"lineCount": 2,
"version": ""
}
39 changes: 39 additions & 0 deletions tests/__snapshots__/rss14-2/0120358468019312/slow-0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"isValid": true,
"error": "",
"format": "DataBar",
"bytes": "f562a41",
"bytesECI": "7753e81",
"text": "20358468019312",
"eccLevel": "",
"contentType": "Text",
"hasECI": false,
"position": {
"topLeft": {
"x": 18,
"y": 3
},
"topRight": {
"x": 334,
"y": 3
},
"bottomRight": {
"x": 334,
"y": 4
},
"bottomLeft": {
"x": 18,
"y": 4
}
},
"orientation": 0,
"isMirrored": false,
"isInverted": false,
"symbologyIdentifier": "]e0",
"sequenceSize": -1,
"sequenceIndex": -1,
"sequenceId": "",
"readerInit": false,
"lineCount": 2,
"version": ""
}
39 changes: 39 additions & 0 deletions tests/__snapshots__/rss14-2/0120358468019312/slow-180.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"isValid": true,
"error": "",
"format": "DataBar",
"bytes": "f562a41",
"bytesECI": "7753e81",
"text": "20358468019312",
"eccLevel": "",
"contentType": "Text",
"hasECI": false,
"position": {
"topLeft": {
"x": 338,
"y": 3
},
"topRight": {
"x": 22,
"y": 3
},
"bottomRight": {
"x": 22,
"y": 4
},
"bottomLeft": {
"x": 338,
"y": 4
}
},
"orientation": 180,
"isMirrored": false,
"isInverted": false,
"symbologyIdentifier": "]e0",
"sequenceSize": -1,
"sequenceIndex": -1,
"sequenceId": "",
"readerInit": false,
"lineCount": 2,
"version": ""
}
8 changes: 4 additions & 4 deletions tests/__snapshots__/rss14-2/13/fast-180.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"position": {
"topLeft": {
"x": 312,
"y": 115
"y": 120
},
"topRight": {
"x": 32,
"y": 115
"y": 120
},
"bottomRight": {
"x": 32,
"y": 116
"y": 122
},
"bottomLeft": {
"x": 312,
"y": 116
"y": 122
}
},
"orientation": 180,
Expand Down
4 changes: 2 additions & 2 deletions tests/__snapshots__/rss14-2/13/slow-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"position": {
"topLeft": {
"x": 47,
"y": 120
"y": 119
},
"topRight": {
"x": 327,
"y": 120
"y": 119
},
"bottomRight": {
"x": 327,
Expand Down
4 changes: 2 additions & 2 deletions tests/__snapshots__/rss14-2/13/slow-180.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
},
"bottomRight": {
"x": 32,
"y": 119
"y": 120
},
"bottomLeft": {
"x": 312,
"y": 119
"y": 120
}
},
"orientation": 180,
Expand Down
16 changes: 8 additions & 8 deletions tests/__snapshots__/rss14-2/7/fast-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
"hasECI": false,
"position": {
"topLeft": {
"x": 56,
"y": 123
"x": 57,
"y": 117
},
"topRight": {
"x": 328,
"y": 123
"x": 322,
"y": 117
},
"bottomRight": {
"x": 325,
"y": 127
"x": 326,
"y": 120
},
"bottomLeft": {
"x": 58,
"y": 127
"x": 56,
"y": 120
}
},
"orientation": 0,
Expand Down
14 changes: 7 additions & 7 deletions tests/__snapshots__/rss14-2/7/fast-180.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
"hasECI": false,
"position": {
"topLeft": {
"x": 299,
"y": 117
"x": 302,
"y": 114
},
"topRight": {
"x": 37,
"y": 117
"x": 32,
"y": 114
},
"bottomRight": {
"x": 34,
"y": 123
"y": 116
},
"bottomLeft": {
"x": 306,
"y": 123
"x": 303,
"y": 116
}
},
"orientation": 180,
Expand Down
12 changes: 6 additions & 6 deletions tests/__snapshots__/rss14-2/7/slow-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"position": {
"topLeft": {
"x": 56,
"y": 119
"y": 118
},
"topRight": {
"x": 327,
"y": 119
"x": 323,
"y": 118
},
"bottomRight": {
"x": 324,
"y": 121
"x": 326,
"y": 120
},
"bottomLeft": {
"x": 56,
"y": 121
"y": 120
}
},
"orientation": 0,
Expand Down
12 changes: 6 additions & 6 deletions tests/__snapshots__/rss14-2/7/slow-180.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"position": {
"topLeft": {
"x": 303,
"y": 118
"y": 119
},
"topRight": {
"x": 35,
"y": 118
"x": 33,
"y": 119
},
"bottomRight": {
"x": 32,
"y": 119
"x": 36,
"y": 121
},
"bottomLeft": {
"x": 303,
"y": 119
"y": 121
}
},
"orientation": 180,
Expand Down
40 changes: 39 additions & 1 deletion tests/__snapshots__/rss14-2/8/fast-0.json
Original file line number Diff line number Diff line change
@@ -1 +1,39 @@
null
{
"isValid": true,
"error": "",
"format": "DataBar",
"bytes": "ea3059e",
"bytesECI": "c641d77",
"text": "02001234567893",
"eccLevel": "",
"contentType": "Text",
"hasECI": false,
"position": {
"topLeft": {
"x": 317,
"y": 79
},
"topRight": {
"x": 69,
"y": 79
},
"bottomRight": {
"x": 65,
"y": 102
},
"bottomLeft": {
"x": 313,
"y": 102
}
},
"orientation": 180,
"isMirrored": false,
"isInverted": false,
"symbologyIdentifier": "]e0",
"sequenceSize": -1,
"sequenceIndex": -1,
"sequenceId": "",
"readerInit": false,
"lineCount": 2,
"version": ""
}
12 changes: 6 additions & 6 deletions tests/__snapshots__/rss14-2/8/slow-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
"position": {
"topLeft": {
"x": 313,
"y": 119
"y": 116
},
"topRight": {
"x": 62,
"y": 119
"x": 63,
"y": 116
},
"bottomRight": {
"x": 64,
"y": 125
"x": 62,
"y": 119
},
"bottomLeft": {
"x": 313,
"y": 125
"y": 119
}
},
"orientation": 180,
Expand Down
Loading

0 comments on commit 983ea20

Please sign in to comment.