mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Turned on ITF support by default. The typical overhead in real world scanning on an Android device is 3-8 ms.
git-svn-id: https://zxing.googlecode.com/svn/trunk@879 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
e367d3ef96
commit
04ff9c43b5
|
@ -98,7 +98,8 @@ public final class MultiFormatReader implements Reader {
|
||||||
possibleFormats.contains(BarcodeFormat.EAN_13) ||
|
possibleFormats.contains(BarcodeFormat.EAN_13) ||
|
||||||
possibleFormats.contains(BarcodeFormat.EAN_8) ||
|
possibleFormats.contains(BarcodeFormat.EAN_8) ||
|
||||||
possibleFormats.contains(BarcodeFormat.CODE_39) ||
|
possibleFormats.contains(BarcodeFormat.CODE_39) ||
|
||||||
possibleFormats.contains(BarcodeFormat.CODE_128);
|
possibleFormats.contains(BarcodeFormat.CODE_128) ||
|
||||||
|
possibleFormats.contains(BarcodeFormat.ITF);
|
||||||
// Put 1D readers upfront in "normal" mode
|
// Put 1D readers upfront in "normal" mode
|
||||||
if (addOneDReader && !tryHarder) {
|
if (addOneDReader && !tryHarder) {
|
||||||
readers.addElement(new MultiFormatOneDReader(hints));
|
readers.addElement(new MultiFormatOneDReader(hints));
|
||||||
|
|
|
@ -57,8 +57,7 @@ public final class MultiFormatOneDReader extends AbstractOneDReader {
|
||||||
readers.addElement(new MultiFormatUPCEANReader(hints));
|
readers.addElement(new MultiFormatUPCEANReader(hints));
|
||||||
readers.addElement(new Code39Reader());
|
readers.addElement(new Code39Reader());
|
||||||
readers.addElement(new Code128Reader());
|
readers.addElement(new Code128Reader());
|
||||||
// TODO: Add ITFReader once it is validated as production ready, and tested for performance.
|
readers.addElement(new ITFReader());
|
||||||
//readers.addElement(new ITFReader());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue