-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Inconsistent scanning of dense QR codes? #352
Comments
According to ML Kit's guideline
As for the example in iOS built-in camera, it is only recognized when set to a higher resolution. |
Hello, thanks for the quick response! Apologies for not making this clear in my question: I am actually developing the app on Android and was comparing performance with the iOS version of our app (using Apple's QR code API). Do you have any suggestions for settings that we could tweak (equivalent to the "preset" you mentioned for iOS) except for Android? Thanks again. |
The guideline above is also suitable for Android: https://developers.google.com/ml-kit/vision/barcode-scanning/android#input-image-guidelines Did you try the latest V3 barcode scanner? It gives much better performance and result than before, and the version is I also test this sample dense QR code by ML Kit Barcode scanner https://i.stack.imgur.com/BDY0Q.png And FYI ML Kit barcode scanning model was trained to scan all types of barcodes. If your app only focus on QR code format, you can set the barcode format in |
Hey @SilverDestiny , thanks for the response and ideas. Yes I am using version Here is an example of one of our QR codes at the resolution that we're working with: I'm starting to think we will need to do our own pre-processing on the image, e.g. to correct the skew, the slight blur in the top left corner, apply binarization, etc. as it seems like MLKit can't handle an image at this quality for this density of QR code. If you have any ideas/suggestions it would be much appreciated. Thank you both for your time. |
https://i.imgur.com/nXYRGoy.png I'm not sure if 1088x1088 is enough for this high density of QR codes. Is it possible to rescale it to higher resolution? |
Closing as this thread haven't got update in 17 days. Please reopen it with if any further questions. Thanks. |
This is still a problem for me. High pixel density not working on iPhone 15, ~1800 character qrcode. Not detecting in mlkit but detecting on native camera... |
Hello,
I'm not sure if this is the right place to create this issue. I am trying to scan a dense QR code, similar to this: https://i.stack.imgur.com/BDY0Q.png
However MLKit is very inconsistent with picking up this style of QR code. I have compared performance with Apple's built-in QR code detection and the latter performs a lot better. I'm not sure if MLKit's built-in barcode scanning model is not optimized for this style of QR code?
Just wanted to ask if anyone has any suggestions.
Thanks.
EDIT: I have also been testing with a proprietary library that produces much better results: https://www.dynamsoft.com/codepool/read-qr-codes-with-high-density.html
The text was updated successfully, but these errors were encountered: