code 128 integration passes

This commit is contained in:
Henry Schimke
2022-12-08 10:51:36 -06:00
parent fdd78e2b7d
commit ba05bf73eb
10 changed files with 663 additions and 680 deletions

View File

@@ -15,6 +15,7 @@
*/
use super::CodaBarReader;
use super::Code128Reader;
use super::Code39Reader;
use super::Code93Reader;
use super::OneDReader;
@@ -74,11 +75,11 @@ impl MultiFormatOneDReader {
)));
}
if possibleFormats.contains(&BarcodeFormat::CODE_93) {
readers.push(Box::new( Code93Reader::new()));
readers.push(Box::new(Code93Reader::new()));
}
if possibleFormats.contains(&BarcodeFormat::CODE_128) {
readers.push(Box::new(Code128Reader {}));
}
// if (possibleFormats.contains(&BarcodeFormat::CODE_128)) {
// readers.add(new Code128Reader());
// }
// if (possibleFormats.contains(&BarcodeFormat::ITF)) {
// readers.add(new ITFReader());
// }
@@ -96,8 +97,8 @@ impl MultiFormatOneDReader {
// readers.push(new MultiFormatUPCEANReader(hints));
readers.push(Box::new(Code39Reader::new()));
readers.push(Box::new(CodaBarReader::new()));
readers.push(Box::new( Code93Reader::new()));
// readers.push(new Code128Reader());
readers.push(Box::new(Code93Reader::new()));
readers.push(Box::new(Code128Reader {}));
// readers.push(new ITFReader());
// readers.push(new RSS14Reader());
// readers.push(new RSSExpandedReader());