Created a new QR blackbox test with difficult exposures, mostly self-shadowing cases. We only get 34 out of 120 tests, which is about what I expected. To fix these we will have to move away from a global black point and towards a more sophisticated local thresholding algorithm.
git-svn-id: https://zxing.googlecode.com/svn/trunk@961 59b500cc-1b3d-0410-9834-0bbf25fbcc57
BIN
core/test/data/blackbox/qrcode-5/01.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/qrcode-5/01.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/02.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/qrcode-5/02.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/03.jpg
Executable file
After Width: | Height: | Size: 8.7 KiB |
1
core/test/data/blackbox/qrcode-5/03.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/04.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/qrcode-5/04.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/05.jpg
Executable file
After Width: | Height: | Size: 9.6 KiB |
1
core/test/data/blackbox/qrcode-5/05.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/06.jpg
Executable file
After Width: | Height: | Size: 9.8 KiB |
1
core/test/data/blackbox/qrcode-5/06.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/07.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/qrcode-5/07.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/08.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/qrcode-5/08.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/09.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/qrcode-5/09.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/10.jpg
Executable file
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/qrcode-5/10.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/11.jpg
Executable file
After Width: | Height: | Size: 9 KiB |
1
core/test/data/blackbox/qrcode-5/11.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/12.jpg
Executable file
After Width: | Height: | Size: 9.8 KiB |
1
core/test/data/blackbox/qrcode-5/12.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/13.jpg
Executable file
After Width: | Height: | Size: 8.8 KiB |
1
core/test/data/blackbox/qrcode-5/13.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/14.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/qrcode-5/14.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
BIN
core/test/data/blackbox/qrcode-5/15.jpg
Executable file
After Width: | Height: | Size: 10 KiB |
1
core/test/data/blackbox/qrcode-5/15.txt
Normal file
|
@ -0,0 +1 @@
|
|||
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Copyright 2009 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.qrcode;
|
||||
|
||||
import com.google.zxing.MultiFormatReader;
|
||||
import com.google.zxing.BarcodeFormat;
|
||||
import com.google.zxing.common.AbstractBlackBoxTestCase;
|
||||
|
||||
/**
|
||||
* Some very difficult exposure conditions including self-shadowing, which happens a lot when
|
||||
* pointing down at a barcode (i.e. the phone's shadow falls across part of the image).
|
||||
*
|
||||
* @author dswitkin@google.com (Daniel Switkin)
|
||||
*/
|
||||
public final class QRCodeBlackBox5TestCase extends AbstractBlackBoxTestCase {
|
||||
|
||||
public QRCodeBlackBox5TestCase() {
|
||||
super("test/data/blackbox/qrcode-5", new MultiFormatReader(), BarcodeFormat.QR_CODE);
|
||||
addTest(4, 4, 0.0f);
|
||||
addTest(4, 4, 90.0f);
|
||||
addTest(4, 4, 180.0f);
|
||||
addTest(5, 5, 270.0f);
|
||||
}
|
||||
|
||||
}
|