-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Scanning not working iPhone14 and Samsung Galaxy A, S Series #499
Comments
Thank you for filing an issue! Please be patient. :-) |
I'm using current quagga2 with a galaxy s22 and iphone 12, runs ok. Can you detail the issue a little more? |
Please post your configuration object. The most common problem is the device auto-selecting a wide-angle device, you may have to implement a way to find (or have the user select) a camera that is not wide angle, as wide angle camera produces a fisheye effect that makes recognition quite difficult |
@ericblade
|
@lampsbr In my case iPhone 13 working, but only for iPhone 14 and for some of Samsung S series not working |
My guess would be that it's autoselecting a camera that is not suitable for use. I unfortunately do not have a device to try this with, but I don't have any complaints from users of my own app, which does allow the user to select which camera device to use in the constraints. |
@ericblade Your sample app is also not working on the iPhone 14. If possible, could you please share the sample code for user to select device camera. |
@ericblade Any update regarding issue that scanning from iPhone 14? |
@vigneshsithirai per this bug report, which Apple considers fixed, but it's clearly not, using facingMode: 'environment' on iOS 16.4+ gives the ultrawide camera, which is most definitely an error for barcode scanning solutions, and honestly probably nearly every other use case as well. Second to last comment in that thread seems to provide a method for dealing with it, however in my opinion, it's quite unstable -- using the device constraints in WebKit at this point, is simply asking for trouble. This is at least the second time that I know of, that Apple messing with how constraints operate, has completely broken nearly every web app in existence that uses the camera. And both times they have completely failed to understand why what they did was bad. It won't be the last time, either. Now, the constraint system is actually pretty bad in and of it's own, soooooooooooooooo it's probably best to write a selector, and have the user actually select it.. You might try removing the width and height from your constraints, though, and maybe it'll work, considering that this report #396 is that only having facingMode: environment seems to leave the most recent poster with a workable camera that also includes autofocus. This init() block is looking for the user to provide either a cameraId or a facingMode
though, actually, this is what i'm using on my production site
If the user has a cameraId store in their preferences, then we init with that, otherwise we init with The application runs this to get a list of available cameras
and presents the data received to the user in a drop-down box to select which device they want. It then stores the ID of that device in the user settings, and uses it the next time they open the camera. |
@ericblade Still I am facing the same issues. Is there any update from Apple side?. Thanks. |
I'm not aware of anything. Providing a specific hardware device ID seems to work for everyone, regardless of OS, and I don't have anything running modern iOS on hand to make any investigations into how it handles constraints. Sorry :| :| |
I have used both quagga2 and quagga. I cant able to scan any type of barcode from iPhone14 and Samsung Galaxy A, S Series. And I am not getting any error from console.
The text was updated successfully, but these errors were encountered: