Added 18 real world DataMatrix blackbox images, plus turned on rotation for the original set.
git-svn-id: https://zxing.googlecode.com/svn/trunk@815 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/datamatrix-2/01.jpg
Executable file
After Width: | Height: | Size: 8.9 KiB |
1
core/test/data/blackbox/datamatrix-2/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/02.jpg
Executable file
After Width: | Height: | Size: 8.5 KiB |
1
core/test/data/blackbox/datamatrix-2/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/03.jpg
Executable file
After Width: | Height: | Size: 9.3 KiB |
1
core/test/data/blackbox/datamatrix-2/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/04.jpg
Executable file
After Width: | Height: | Size: 8.5 KiB |
1
core/test/data/blackbox/datamatrix-2/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/05.jpg
Executable file
After Width: | Height: | Size: 9.2 KiB |
1
core/test/data/blackbox/datamatrix-2/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/06.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/datamatrix-2/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/07.jpg
Executable file
After Width: | Height: | Size: 9.3 KiB |
1
core/test/data/blackbox/datamatrix-2/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/08.jpg
Executable file
After Width: | Height: | Size: 9.9 KiB |
1
core/test/data/blackbox/datamatrix-2/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
http://google.com/m
|
BIN
core/test/data/blackbox/datamatrix-2/09.jpg
Executable file
After Width: | Height: | Size: 7.9 KiB |
1
core/test/data/blackbox/datamatrix-2/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/10.jpg
Executable file
After Width: | Height: | Size: 8.9 KiB |
1
core/test/data/blackbox/datamatrix-2/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/11.jpg
Executable file
After Width: | Height: | Size: 8.5 KiB |
1
core/test/data/blackbox/datamatrix-2/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/12.jpg
Executable file
After Width: | Height: | Size: 7.9 KiB |
1
core/test/data/blackbox/datamatrix-2/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/13.jpg
Executable file
After Width: | Height: | Size: 8.1 KiB |
1
core/test/data/blackbox/datamatrix-2/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/14.jpg
Executable file
After Width: | Height: | Size: 8.4 KiB |
1
core/test/data/blackbox/datamatrix-2/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/15.jpg
Executable file
After Width: | Height: | Size: 7.8 KiB |
1
core/test/data/blackbox/datamatrix-2/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/16.jpg
Executable file
After Width: | Height: | Size: 5.9 KiB |
1
core/test/data/blackbox/datamatrix-2/16.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/17.jpg
Executable file
After Width: | Height: | Size: 7.4 KiB |
1
core/test/data/blackbox/datamatrix-2/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
BIN
core/test/data/blackbox/datamatrix-2/18.jpg
Executable file
After Width: | Height: | Size: 7.5 KiB |
1
core/test/data/blackbox/datamatrix-2/18.txt
Normal file
|
@ -0,0 +1 @@
|
|||
This is a test of our DataMatrix support using a longer piece of text, and therefore a more dense barcode.
|
|
@ -31,6 +31,9 @@ public final class DataMatrixBlackBox1TestCase extends AbstractBlackBoxTestCase
|
|||
// TODO use MultiFormatReader here once Data Matrix decoder is done
|
||||
super(new File("test/data/blackbox/datamatrix-1"), new DataMatrixReader(), BarcodeFormat.DATAMATRIX);
|
||||
addTest(7, 7, 0.0f);
|
||||
addTest(7, 7, 90.0f);
|
||||
addTest(6, 6, 180.0f);
|
||||
addTest(4, 4, 270.0f);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright 2008 ZXing authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.google.zxing.datamatrix;
|
||||
|
||||
//import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class DataMatrixBlackBox2TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public DataMatrixBlackBox2TestCase() {
|
||||
// TODO use MultiFormatReader here once Data Matrix decoder is done
|
||||
super(new File("test/data/blackbox/datamatrix-2"), new DataMatrixReader(), BarcodeFormat.DATAMATRIX);
|
||||
addTest(3, 3, 0.0f);
|
||||
addTest(1, 1, 90.0f);
|
||||
addTest(3, 3, 180.0f);
|
||||
addTest(4, 4, 270.0f);
|
||||
}
|
||||
|
||||
}
|