mirror of
https://github.com/zxing/zxing.git
synced 2025-01-27 02:52:01 -08:00
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:
parent
279cf84a13
commit
8968ca75ce
|
@ -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
|
||||
|
|
BIN
core/test/data/blackbox/itf-1/17.png
Normal file
BIN
core/test/data/blackbox/itf-1/17.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
1
core/test/data/blackbox/itf-1/17.txt
Normal file
1
core/test/data/blackbox/itf-1/17.txt
Normal file
|
@ -0,0 +1 @@
|
|||
3018108390
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue