// difference in the x / y coordinates of the two centers.\r
// This is the case where you find top left first. Draw it out.\r
hasSkipped = true;\r
- return (int) Math.abs(Math.abs(firstConfirmedCenter.getX() - center.getX()) -\r
+ return (int) (Math.abs(firstConfirmedCenter.getX() - center.getX()) -\r
Math.abs(firstConfirmedCenter.getY() - center.getY()));\r
}\r
}\r
public QRCodeBlackBox1TestCase() {
super(new File("test/data/blackbox/qrcode-1"), new MultiFormatReader(), BarcodeFormat.QR_CODE);
- addTest(16, 0.0f);
- addTest(12, 90.0f);
- addTest(12, 180.0f);
- addTest(7, 270.0f);
+ addTest(18, 0.0f);
+ addTest(14, 90.0f);
+ addTest(18, 180.0f);
+ addTest(14, 270.0f);
}
}
\ No newline at end of file
super(new File("test/data/blackbox/qrcode-2"), new MultiFormatReader(), BarcodeFormat.QR_CODE);
addTest(10, 0.0f);
addTest(6, 90.0f);
- addTest(8, 180.0f);
- addTest(2, 270.0f);
+ addTest(9, 180.0f);
+ addTest(7, 270.0f);
}
}
\ No newline at end of file