It is passing the online decoder: https://zxing.org/w/decode.jspx but not my method.
My method code: https://pastebin.com/e4d4QY3r
Im getting com.google.zxing.ChecksumException. Thrown when a barcode was successfully detected and decoded, but was not returned because its checksum feature failed.
So isn't it weird that online decoder by ZXing is working, and methods from ZXing project are not?
Anyone have idea, what can i do ?
It was possible to decode the image after making the following changes.
BufferedImageLuminanceSource source = new BufferedImageLuminanceSource(image);
bitmap = new BinaryBitmap(new GlobalHistogramBinarizer(source));
I don't know why the above works. That is something Sean can best explain.
One can always look at the source of the online decoder.
https://github.com/zxing/zxing/blob/master/zxingorg/src/main/java/com/google/zxing/web/DecodeServlet.java
"So much source, so less time."
Thank you.