rmtmckenzie/flutter_qr_mobile_vision

[Feature request] Fetch entire image that matched

wolph opened this issue · 5 comments

wolph commented

I have a use-case where I need to fetch the entire image, and if the QR code matches I know the rest of the details should be sharp enough for me to use.

Is there any easy way of doing this?

The easiest solution might be to use something like this : https://pub.dev/packages/screenshot. However, that's only going to be at the resolution of the screen.

If you need to capture a higher quality shot, that's going to require some custom code - that could potentially be a new feature but I realistically don't think I'll have any time to work on it any time soon.

wolph commented

Interesting option but the resolution will be too limited for my case.

Alternatively, is it an option to take a picture from flutter and send that to QR Mobile Vision for QR detection? It's less ideal but I think that would work for me.

Hmmm. If you want to do that I'd try using the flutter camera plugin in conjunction with the official(ish) firebase mobile plugin: https://pub.dev/packages/firebase_ml_vision.

The performance and feature set of those plugins wasn't conducive to what I needed which is why I wrote this one (plus they limit support to pretty recent versions with the camera plugin especially), but nowadays (and once they fixed a couple of pretty serious memory leaks) you could probably get away with just streaming images directly from the camera to the mobile vision library. It might be worth a try anyways.

wolph commented

Great! Thank you so much for the help :)

np =). I'll leave the issue open for now as this may be something I'd consider in the future if I ever get time to work on the plugin again.