mobile_scanner icon indicating copy to clipboard operation
mobile_scanner copied to clipboard

scanning performance and privacy concerns on Android

Open MrCyjaneK opened this issue 1 year ago • 1 comments

Hey! First of all - mobile_scanner is a very good scanner, but there are some concerns:

  1. (Less important one) MLkit sends telemetry quite often. It is rather easy to fix it (just corrupt the sqlite database and it will crash) - nevertheless it is something that falls on the "anti-feature" list.
  2. Scanning performance is great when you scan a single QR code (who would really care if it takes 400ms or 40ms) - but when compared to for example boofcv implementation scanning the same animated sequences of QR code it takes 2 times more tries to get the codes to scan properly.

I've tried to tinker with the mobile_scanner implementation, but sadly it didn't bring much performance improvements (tho to be honest all I did was change the DetectionSpeed to UNRESTRICTED).

boofcv mobile_scanner (MLkit)
link link

edit: p.s. the error at the end doesn't matter, it scanned all the parts properly - it is the format that has changed, and I wanted to scan exactly the same QR codes.

MrCyjaneK avatar Jan 20 '24 11:01 MrCyjaneK

Your first point is tracked in #706 I don't know how to configure MLKit to turn that off. If you know how to do that, a patch would be very welcome.

Regarding the performance issue, that mostly depends on MLKit's overall performance when detecting values. Not much we can do about that (except updating MLKit itself)

navaronbracke avatar Jan 23 '24 08:01 navaronbracke