Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There are two QR Codes and I can't scan them with this APP, But I can scan it with 'Wechat',These two conditions are in the same light,The same distance,Using the same cell phone. #175

Closed
BANG-github opened this issue Mar 23, 2021 · 8 comments

Comments

@BANG-github
Copy link

IMG_20210323_200303

@BANG-github
Copy link
Author

image

@BANG-github BANG-github changed the title There are two QR Codes and you can't scan them with this APP There are two QR Codes and I can't scan them with this APP, But I can scan it with 'Wechat',These two conditions are in the same light,The same distance,Using the same cell phone. Mar 23, 2021
@BANG-github
Copy link
Author

BANG-github commented Mar 23, 2021

These two pictures are both qrcodes,They are not wechat's code

@markusfisch
Copy link
Owner

Binary Eye uses the ZXing barcode image processing library for decoding QR Codes. I don't know what WeChat is using or what pre-processing steps WeChat is doing before decoding a QR Code.

The first QR Code on the bottle cap has a very low contrast which may be the reason Binary Eye cannot read it. This can be improved by processing the camera image to enhance the contrast. This is similar to #122

The second QR Code is so heavily garbled that I'm really surprised WeChat can actually decode it 🤔 I doubt ZXing can read this one at all - at least not without heavy pre-processing.

@BANG-github
Copy link
Author

scanning by Wechat and scanning by
this APP are under the same light and distance And the same cell phone, so it should not be a problem of camera image😂

@BANG-github
Copy link
Author

Could you add some pre-processing procedure?So that your application can be more comprehensive And Excellent😊

@BANG-github
Copy link
Author

Binary Eye uses the ZXing barcode image processing library for decoding QR Codes. I don't know what WeChat is using or what pre-processing steps WeChat is doing before decoding a QR Code.

The first QR Code on the bottle cap has a very low contrast which may be the reason Binary Eye cannot read it. This can be improved by processing the camera image to enhance the contrast. This is similar to #122

The second QR Code is so heavily garbled that I'm really surprised WeChat can actually decode it 🤔 I doubt ZXing can read this one at all - at least not without heavy pre-processing.

1617798295487
this is also can not be scanned, wechat can.it is BinaryEye not ZXing's eye,if ZXing is not excellent,dismiss it and use another one,We can't be limited to the original definition of qrcode, everything is developing😂

@markusfisch
Copy link
Owner

Actually, I can read this image with Binary Eye using a Pixel 2 and a steady hand 😉 But a Fairphone 2, for example, can't. So it depends on the quality of the camera, unfortunately.

Do you know of a good ZXing alternative? One that's free to use and supports as many barcodes as ZXing does? I would definitely switch then! 😉

I realize people do crazy things with QR Codes - but Binary Eye isn't just a QR Code scanner but a generic barcode scanner that's used for other barcodes as well. So I can't just switch to a decoder that only supports QR Code.

Pictures like this are highly specific. WeChat is focused on just a couple of barcodes and may even be specialized for these highly distorted codes as well.

Binary Eye could be modified to preprocess the camera image to make ZXing read images like this. But this would be a lot of work and could only be beneficial for 2D Codes and bad for 1D Codes. Every specialization comes with a cost. Specializing in a particular challenge can, of course, limit the use case to that challenge and leave the more general cases behind.

That said, I'm guilty of playing with QR Codes in the same way myself 😉 Have a look at this: https://qrim.markusfisch.de/

With the difference that Binary Eye can read these QR codes quite well (depending on the dot magnifier setting) 😉 So I'd rather wish people doing these kinds of codes would choose a more robust configuration.

@BANG-github
Copy link
Author

hope it will does well in qr scanning, Nowadays most people use qrcode but not 1d code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants