MLKit Barcode Scanning - Accuracy #123
-
Hello All, I am using the capacitor-mlkit in an app I am creating for scanning code39 barcodes. I am having trouble getting accurate scans using the plugin. I have tried a few different barcode apps to test my barcodes and the other apps are getting accurate scans. I have been through the plugin docs, but I am not seeing anything that I could change to help the accuracy. I am looking for some advice on how to proceed. Also I have tried this on IOS and Android and they are both suffering from the same issue |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
fwiw, I gave https://github.com/capacitor-community/barcode-scanner a whirl this evening and it works every time. I also tried https://github.com/robingenz/capacitor-mlkit-plugin-demo wondering if perhaps it was something in my implementation and I had bad results there too. |
Beta Was this translation helpful? Give feedback.
-
The scanned barcodes are processed by the ML Kit library, the plugin only serves as a wrapper. You should therefore report your problem in https://github.com/googlesamples/mlkit. There are tips to improve the real-time performance but this only affects the real-time performance. If you also have the problem with the
You get different results with |
Beta Was this translation helpful? Give feedback.
The scanned barcodes are processed by the ML Kit library, the plugin only serves as a wrapper. You should therefore report your problem in https://github.com/googlesamples/mlkit. There are tips to improve the real-time performance but this only affects the real-time performance. If you also have the problem with the
readBarcodesFromImage(...)
method, then we cannot do anything about it.You get different results with
capacitor-community/barcode-scanner
, as a different library is used there to process the barcodes.