You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at com.google.zxing.common.GlobalHistogramBinarizer.getBlackRow(GlobalHistogramBinarizer.java:71)
at com.google.zxing.BinaryBitmap.getBlackRow(BinaryBitmap.java:66)
at com.google.zxing.oned.OneDReader.doDecode(OneDReader.java:132)
at com.google.zxing.oned.OneDReader.decode(OneDReader.java:54)
at com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:171)
at com.google.zxing.MultiFormatReader.decode(MultiFormatReader.java:69)
at com.google.zxing.multi.GenericMultipleBarcodeReader.doDecodeMultiple(GenericMultipleBarcodeReader.java:84)
at com.google.zxing.multi.GenericMultipleBarcodeReader.decodeMultiple(GenericMultipleBarcodeReader.java:65)
at com.google.zxing.client.j2se.DecodeWorker.decode(DecodeWorker.java:140)
at com.google.zxing.client.j2se.DecodeWorker.call(DecodeWorker.java:75)
at com.google.zxing.client.j2se.CommandLineRunner.main(CommandLineRunner.java:84)
Obviously barcodes will never exist in files that have 1 pixel, but zxing should not crash for it. (I'm running it on a lot of files, and this happened to be one of them)
The issue is that localLuminance in GlobalHistogramBinarizer directly accesses the 2nd element (which does not exist).
The text was updated successfully, but these errors were encountered:
When running on a file like https://commons.wikimedia.org/wiki/File:Pix.gif which has only 1 pixel, zxing throws an error:
Obviously barcodes will never exist in files that have 1 pixel, but zxing should not crash for it. (I'm running it on a lot of files, and this happened to be one of them)
The issue is that
localLuminance
in GlobalHistogramBinarizer directly accesses the 2nd element (which does not exist).The text was updated successfully, but these errors were encountered: