-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Detection of QR-Codes not working on Samsung A23 5G #698
Comments
I noticed that works with front camera (only as workaround) |
On the A23? I've tried this as well but without success. But I will try it again later today. Thank you! |
Our customer noticed that and after advised to use front camera he succeded to work: device is a SM-A236B |
Same goes to Xiaomi MI 11 |
I tried on Xiaomi 11T (21081111RG) and works well |
Any idea on what the root cause may be? |
No. I have no time to dig into this problem at the moment. But did anyone try if it works with the newest release? 3.4.1? |
Ok still not working. Even with version 3.4.1. @juliansteenbakker do you have any idea for what the reason for this error may be? If i rotate the device 30 degrees it sometimes works. Even looks like the device is switching cameras. I will try to help if we have a point to start from. |
I actually experience the same problem in React Native, using react-native-vision-camera, which is allowing you to use plugins to process frames (e.g. to look for QR-Codes). After some debugging I saw that the images that the frame processor receives actually look like this: Samsung A32 (QR-Code scanning is working fine, image is blurry cause of first frame while debugging I assume): I don't know if this translates to this library as well. It is a strange coincidence that the same problem appears though, so maybe it is the same root cause. I don't wanna confuse this issue, but maybe this helps in some way. |
I'm also having issues with two Samsung devices. They work sometimes but seem to stop working after a bit. Also dragging the notification bar down makes the camera go white screen. I have a feeling that these two problems are connected, something with the notification bar on these samsung devices that's interrupting something with the android lifecycle. |
I'm facing the same issue on Samsung A23. It does not detect the QR code. My app is already on production so other devices are working fine but customers with Samsung A23 are facing this issue |
This appears to be caused by the output of the camera. Corrupt camera stream: If this is indeed the problem, this requires a fix in the plugin code, not something a user can change in their config. I already see some nv21 references in this plugin, but I don't know this plugin well enough to see which format is used for an android device that I don't have. |
Facing the same issue with Samsung A23. |
|
Hey guys. I made some changes to the code, and it seems to now be working on our device model A3 which didn't work before. Could you try to scan a QRCODE on your device too? if it works on your devices too, I am gonna open a PR Just add the mobile_scanner to my forked version into
|
Thank you for your effort! Sadly it's still not working on the A23. I just tested your package in our app. |
Did you tryed to identify what happens on the native android side of the package on your device? |
Any one test version 3.5.1 |
Apparently, after setting resolutions manually solved for us. @juliansteenbakker Is the new ResolutionSelector improvement on the version 3.5.6 aims to solve this issue as well? Isn't it? |
Facing the same problem on Samsung A23. |
Tested on version 4.0.0 and the error still happens. Setting the resolution to 640 x 480 worked palliatively. |
Yeah, I added a workaround by setting: |
I think we do always use YUV and not NV21, per the comment in mobile_scanner/android/src/main/kotlin/dev/steenbakker/mobile_scanner/MobileScanner.kt Line 68 in b3e5b58
@juliansteenbakker Do you remember why we were using YUV on Android? Specifically for the Samsung device that is affected here, we need NV21. I would investigate if we can just switch to NV21 on Android and drop the YUV format there. |
For easier tracking, and now that the root cause seems apparent, I am going to close this issue, in favor of #1116 Please comment on that issue if you have further comments / observations. |
Hello currently I am developing an app for android and iOS and this library works great and is really fast when detecting a QR Code. So kudos for this package. But i have one problem. On the Samsung A23 5G the scanner does not detect a code at all. I have some ideas about the cause of the problem but i have to check.
So here are some informations about my usage:
Device:
Samsung Galaxy A23 5G
Android 13
Flutter Version:
3.10.6
Package Version:
3.3.0
Issue:
Detection not working
Additional Information:
Assumptions:
I am willing to help with this problem if i can get additional information or if someone has experienced similar problems with the same or different devices.
Thank you for your hard work on this library!
The text was updated successfully, but these errors were encountered: