From: dswitkin Date: Wed, 9 Jul 2008 20:50:03 +0000 (+0000) Subject: Added some very difficult reflective UPC-A images - we get 8/21. We would probably... X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=2e58bb135d0be10a311adbf43ebda3f0c8a914f9;hp=d0364fc9ff43ea625bad4fa81ea5a1bfa62a07ba;p=zxing.git Added some very difficult reflective UPC-A images - we get 8/21. We would probably have to do something very special to handle soda cans with those silver on silver barcodes. git-svn-id: http://zxing.googlecode.com/svn/trunk@507 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/core/test/data/blackbox/upca-3/01.jpg b/core/test/data/blackbox/upca-3/01.jpg new file mode 100755 index 00000000..e7608535 Binary files /dev/null and b/core/test/data/blackbox/upca-3/01.jpg differ diff --git a/core/test/data/blackbox/upca-3/01.txt b/core/test/data/blackbox/upca-3/01.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/01.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/02.jpg b/core/test/data/blackbox/upca-3/02.jpg new file mode 100755 index 00000000..353f0d81 Binary files /dev/null and b/core/test/data/blackbox/upca-3/02.jpg differ diff --git a/core/test/data/blackbox/upca-3/02.txt b/core/test/data/blackbox/upca-3/02.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/02.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/03.jpg b/core/test/data/blackbox/upca-3/03.jpg new file mode 100755 index 00000000..22e2200f Binary files /dev/null and b/core/test/data/blackbox/upca-3/03.jpg differ diff --git a/core/test/data/blackbox/upca-3/03.txt b/core/test/data/blackbox/upca-3/03.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/03.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/04.jpg b/core/test/data/blackbox/upca-3/04.jpg new file mode 100755 index 00000000..3b435b7e Binary files /dev/null and b/core/test/data/blackbox/upca-3/04.jpg differ diff --git a/core/test/data/blackbox/upca-3/04.txt b/core/test/data/blackbox/upca-3/04.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/04.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/05.jpg b/core/test/data/blackbox/upca-3/05.jpg new file mode 100755 index 00000000..c48bc76c Binary files /dev/null and b/core/test/data/blackbox/upca-3/05.jpg differ diff --git a/core/test/data/blackbox/upca-3/05.txt b/core/test/data/blackbox/upca-3/05.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/05.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/06.jpg b/core/test/data/blackbox/upca-3/06.jpg new file mode 100755 index 00000000..3e14579a Binary files /dev/null and b/core/test/data/blackbox/upca-3/06.jpg differ diff --git a/core/test/data/blackbox/upca-3/06.txt b/core/test/data/blackbox/upca-3/06.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/06.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/07.jpg b/core/test/data/blackbox/upca-3/07.jpg new file mode 100755 index 00000000..9cd6e156 Binary files /dev/null and b/core/test/data/blackbox/upca-3/07.jpg differ diff --git a/core/test/data/blackbox/upca-3/07.txt b/core/test/data/blackbox/upca-3/07.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/07.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/08.jpg b/core/test/data/blackbox/upca-3/08.jpg new file mode 100755 index 00000000..16339631 Binary files /dev/null and b/core/test/data/blackbox/upca-3/08.jpg differ diff --git a/core/test/data/blackbox/upca-3/08.txt b/core/test/data/blackbox/upca-3/08.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/08.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/09.jpg b/core/test/data/blackbox/upca-3/09.jpg new file mode 100755 index 00000000..96871509 Binary files /dev/null and b/core/test/data/blackbox/upca-3/09.jpg differ diff --git a/core/test/data/blackbox/upca-3/09.txt b/core/test/data/blackbox/upca-3/09.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/09.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/10.jpg b/core/test/data/blackbox/upca-3/10.jpg new file mode 100755 index 00000000..72699a18 Binary files /dev/null and b/core/test/data/blackbox/upca-3/10.jpg differ diff --git a/core/test/data/blackbox/upca-3/10.txt b/core/test/data/blackbox/upca-3/10.txt new file mode 100644 index 00000000..68839948 --- /dev/null +++ b/core/test/data/blackbox/upca-3/10.txt @@ -0,0 +1 @@ +049000042566 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/11.jpg b/core/test/data/blackbox/upca-3/11.jpg new file mode 100755 index 00000000..8f403d8a Binary files /dev/null and b/core/test/data/blackbox/upca-3/11.jpg differ diff --git a/core/test/data/blackbox/upca-3/11.txt b/core/test/data/blackbox/upca-3/11.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/11.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/12.jpg b/core/test/data/blackbox/upca-3/12.jpg new file mode 100755 index 00000000..3b9eb757 Binary files /dev/null and b/core/test/data/blackbox/upca-3/12.jpg differ diff --git a/core/test/data/blackbox/upca-3/12.txt b/core/test/data/blackbox/upca-3/12.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/12.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/13.jpg b/core/test/data/blackbox/upca-3/13.jpg new file mode 100755 index 00000000..1db5b5c4 Binary files /dev/null and b/core/test/data/blackbox/upca-3/13.jpg differ diff --git a/core/test/data/blackbox/upca-3/13.txt b/core/test/data/blackbox/upca-3/13.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/13.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/14.jpg b/core/test/data/blackbox/upca-3/14.jpg new file mode 100755 index 00000000..b4d3780f Binary files /dev/null and b/core/test/data/blackbox/upca-3/14.jpg differ diff --git a/core/test/data/blackbox/upca-3/14.txt b/core/test/data/blackbox/upca-3/14.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/14.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/15.jpg b/core/test/data/blackbox/upca-3/15.jpg new file mode 100755 index 00000000..2009bbf5 Binary files /dev/null and b/core/test/data/blackbox/upca-3/15.jpg differ diff --git a/core/test/data/blackbox/upca-3/15.txt b/core/test/data/blackbox/upca-3/15.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/15.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/16.jpg b/core/test/data/blackbox/upca-3/16.jpg new file mode 100755 index 00000000..3d24a7ee Binary files /dev/null and b/core/test/data/blackbox/upca-3/16.jpg differ diff --git a/core/test/data/blackbox/upca-3/16.txt b/core/test/data/blackbox/upca-3/16.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/16.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/17.jpg b/core/test/data/blackbox/upca-3/17.jpg new file mode 100755 index 00000000..41de8a35 Binary files /dev/null and b/core/test/data/blackbox/upca-3/17.jpg differ diff --git a/core/test/data/blackbox/upca-3/17.txt b/core/test/data/blackbox/upca-3/17.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/17.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/18.jpg b/core/test/data/blackbox/upca-3/18.jpg new file mode 100755 index 00000000..4a705c96 Binary files /dev/null and b/core/test/data/blackbox/upca-3/18.jpg differ diff --git a/core/test/data/blackbox/upca-3/18.txt b/core/test/data/blackbox/upca-3/18.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/18.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/19.jpg b/core/test/data/blackbox/upca-3/19.jpg new file mode 100755 index 00000000..48c568ce Binary files /dev/null and b/core/test/data/blackbox/upca-3/19.jpg differ diff --git a/core/test/data/blackbox/upca-3/19.txt b/core/test/data/blackbox/upca-3/19.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/19.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/20.jpg b/core/test/data/blackbox/upca-3/20.jpg new file mode 100755 index 00000000..c67f78e8 Binary files /dev/null and b/core/test/data/blackbox/upca-3/20.jpg differ diff --git a/core/test/data/blackbox/upca-3/20.txt b/core/test/data/blackbox/upca-3/20.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/20.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/data/blackbox/upca-3/21.jpg b/core/test/data/blackbox/upca-3/21.jpg new file mode 100755 index 00000000..5404f17a Binary files /dev/null and b/core/test/data/blackbox/upca-3/21.jpg differ diff --git a/core/test/data/blackbox/upca-3/21.txt b/core/test/data/blackbox/upca-3/21.txt new file mode 100644 index 00000000..389d4d6f --- /dev/null +++ b/core/test/data/blackbox/upca-3/21.txt @@ -0,0 +1 @@ +854818000116 \ No newline at end of file diff --git a/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java b/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java new file mode 100644 index 00000000..e486eab5 --- /dev/null +++ b/core/test/src/com/google/zxing/oned/UPCABlackBox3ReflectiveTestCase.java @@ -0,0 +1,36 @@ +/* + * 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.oned; + +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 UPCABlackBox3ReflectiveTestCase extends AbstractBlackBoxTestCase { + + public UPCABlackBox3ReflectiveTestCase() { + super(new File("test/data/blackbox/upca-3"), new MultiFormatReader(), BarcodeFormat.UPC_A); + addTest(8, 8, 0.0f); + addTest(6, 9, 180.0f); + } + +}