-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
[web] Mobile Scanner not working with colored (other than black) QR codes #1278
Comments
Web uses ZXing, not MLKit or the Vision API. |
ZXing for the web should have support for this it seems? but I'm not sure why it isn't working then. |
I retested this on web and can confirm that this isn't working correctly. |
@navaronbracke Thank you very much for the reply. Can it be because the |
@RVD-IT-Solutions I did an additional test and it seems this is a bug in mobile_scanner. I bumped our ZXing version from 0.19.1 to 0.21.3 (looks to be the latest version?) and then it does seem to work with white-on-black QR codes. I'll get a hotfix in for version 6.0.x then. Thank you for reporting! |
@navaronbracke Excellent work! Good job and thank you for your hard work. I'll be waiting for the new version! |
@juliansteenbakker Can we provide this fix in a new version 6.0.x hotfix? |
I’m experiencing an issue with the following in the Mobile Scanner Flutter package:
Given the image below, it seems that the library is not able to scan QR codes that is other than black when using the app in web?
Android and iOS works fine.
Original QR code

Edit:
I've tried inverting the image above and can confirm it works then:

Inverted QR code
I also decoded the inverted QR code with the help of using
<script src="https://cdn.jsdelivr.net/npm/jsqr/dist/jsQR.min.js"></script>
in my index.html file(since.analyzeImage()
doesn't work in Web) and used it as such:and after I invert it like such:
and then:
Is this a ML Kit bug or something else? Why would it work on Android and iOS and not in Web?
The text was updated successfully, but these errors were encountered: