capawesome-team / capacitor-mlkit

⚡️ ML Kit plugins for Capacitor. Supports Android and iOS.
https://capawesome.io/plugins/mlkit/
Apache License 2.0
147 stars 46 forks source link

feat: Barcode scanner sometimes get bad value of EAN13 #95

Closed zavovi closed 1 year ago

zavovi commented 1 year ago

Plugin(s)

Current problem

Hello, I am using your barcode scanner in my new app and sometimes the read data are bad.

Preferred solution

Please, is it possible to add some settings for read it twice or three times and compare? Or some any other alghoritm for check, if it is ok?

Thank you very much!

Alternative options

No response

Additional context

No response

robingenz commented 1 year ago

This is already possible if you use the "startScan(...)" method and create the user interface yourself. There you have full control and can decide for yourself when you want to stop the scan. Therefore, I do not plan to add this feature to the "scan(...)" method.

zavovi commented 1 year ago

This is already possible if you use the "startScan(...)" method and create the user interface yourself. There you have full control and can decide for yourself when you want to stop the scan. Therefore, I do not plan to add this feature to the "scan(...)" method.

Oh, thank you very much for this information. I will more study startScan(...) and I will try it. Please, have you got any example, how can I use startScan?

robingenz commented 1 year ago

Sure, this is the official demo app: https://github.com/robingenz/capacitor-mlkit-plugin-demo

zavovi commented 1 year ago

Thank you very much, that solved my issue! I reworked whole par of reading EAN in my app.