Skip to content

Commit 8d29558

Browse files
committed
DataMatrix: add bunch of new blackbox 'real world' test images
These images show/test the advantage of the 'new' DMDetector. Almost all of them would have failed with the original/upstream detector code.
1 parent 5007881 commit 8d29558

39 files changed

+25
-0
lines changed

test/blackbox/BlackboxTestRunner.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,13 @@ int runBlackBoxTests(const fs::path& testPathPrefix, const std::set<std::string>
296296
{ 0, 18, 270 },
297297
});
298298

299+
runTests("datamatrix-3", "DATA_MATRIX", 19, {
300+
{ 18, 19, 0 },
301+
{ 0, 19, 90 },
302+
{ 0, 18, 180 }, // 1 fail because of a different binarizer output
303+
{ 0, 19, 270 },
304+
});
305+
299306
runTests("codabar-1", "CODABAR", 11, {
300307
#ifdef ZX_USE_NEW_ROW_READERS
301308
{ 11, 11, 0 },
17.1 KB
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Hello World

test/samples/datamatrix-3/dm-0.jpg

15.5 KB
Loading

test/samples/datamatrix-3/dm-0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
A12206200417:02:38

test/samples/datamatrix-3/dm-1.jpg

4.53 KB
Loading

test/samples/datamatrix-3/dm-1.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
WUPV001DS81KA123

test/samples/datamatrix-3/dm-2.jpg

6.9 KB
Loading

test/samples/datamatrix-3/dm-2.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://datamatrixcode.net

test/samples/datamatrix-3/dm-3.png

25 KB
Loading

0 commit comments

Comments
 (0)