-
-
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
analyzeImage
not throw error when picking non-Qr image on iOS
#1244
Comments
In that case you probably receive |
Hi @navaronbracke there is a different between Android and iOS. |
I see. Yes, this should not have behavioral differences between platforms. |
On Android it returns the error from MLKit: But on the old iOS implementation, it does not: https://github.com/juliansteenbakker/mobile_scanner/blob/master/ios/Classes/MobileScanner.swift#L435-L447 On the new iOS/MacOS version (which uses the Vision API), we return nil: I'll probably fix this in the new implementation, as the Vision API generally outperforms the MLKit one. Thanks for reporting! |
Even though I selected an image with a QR code, I didn't analyze it? Always waiting |
I'm using
analyzeImage
to read a non-QR after picking it on iOS. The app not throw any exception. So that i can't show the toast when picked failure. Please help me solve it.The text was updated successfully, but these errors were encountered: