-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
[mlkit-barcode-detection] detectWithStillImage does not detect barcode #34
Comments
ImageSource.fromFile should return a promise,so you will need to wait on that to resolve or you can use ImageSource.fromFileSync |
@triniwiz thanks for your response.
|
Are you using a picker by chance ? |
Yes I am using @prabudevarrajan/filepicker |
The fromFile call resolved ? |
Yes it resolves to
but still no response or error from the detectStillImage function |
@triniwiz any progress on the issue |
When debugging #33, one of the things I started looking at was https://developers.google.com/ml-kit/vision/barcode-scanning/android - it's unclear to me how to configure the plugin to statically link vs download dynamically models from Google Play Services, and I'm unsure which it is doing. When using runtime download of the model, an issue I have seen before in testing is that sometimes the model hasn't yet been downloaded from Google Play Services, |
Thanks a bunch, @DanielDent for the assist... I ended up using a different library (@nativescript/firebase by Eddy) taking into account your insight during your debugging. |
@DanielDent most of the libs use the bundled versions facedetection : -> https://github.com/triniwiz/fancycamera/blob/d6bd7658ceb8d5ed619ebc94da323b580cac8852/facedetection/build.gradle#L35 text : -> https://github.com/triniwiz/fancycamera/blob/d6bd7658ceb8d5ed619ebc94da323b580cac8852/textRecognition/build.gradle#L35 uses the google play version iirc this was the only version for v1 |
Please give it a try with |
Propably issue is not form loading file but detection option. If detectionType is set to Image (DetectionType.Image) then you will get similiar result like this
in case your image contain qrcode But for "DetectionType.Barcode" method freeze and won't get any result, even no exception |
I am using the detectWithStillImage to detect QR codes from local Image sources on android. The image is seen as a Bitmap but returns no response or error.
my implementation code:
Any assistance on this will be appreciated, thanks.
The text was updated successfully, but these errors were encountered: