Issue 1676 retune ITF slightly to avoid a misread

git-svn-id: https://zxing.googlecode.com/svn/trunk@2808 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-05-23 07:49:23 +00:00
parent 279cf84a13
commit 8968ca75ce
4 changed files with 4 additions and 3 deletions

View file

@ -45,7 +45,7 @@ import java.util.Map;
public final class ITFReader extends OneDReader {
private static final int MAX_AVG_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.42f);
private static final int MAX_INDIVIDUAL_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.8f);
private static final int MAX_INDIVIDUAL_VARIANCE = (int) (PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.78f);
private static final int W = 3; // Pixel width of a wide line
private static final int N = 1; // Pixed width of a narrow line

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1 @@
3018108390

View file

@ -27,8 +27,8 @@ public final class ITFBlackBox1TestCase extends AbstractBlackBoxTestCase {
public ITFBlackBox1TestCase() {
super("test/data/blackbox/itf-1", new MultiFormatReader(), BarcodeFormat.ITF);
addTest(8, 12, 0.0f);
addTest(11, 12, 180.0f);
addTest(9, 13, 0.0f);
addTest(12, 13, 180.0f);
}
}