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
This commit is contained in:
dswitkin 2009-05-28 18:45:48 +00:00
parent b24162298a
commit c07fad6410
31 changed files with 54 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -0,0 +1 @@
MECARD:N:Sean Owen;TEL:+12125658770;EMAIL:srowen@google.com;;

View file

@ -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);
}
}