flutter_qr_mobile_vision icon indicating copy to clipboard operation
flutter_qr_mobile_vision copied to clipboard

[Feature request] Fetch entire image that matched

Open wolph opened this issue 4 years ago • 5 comments
trafficstars

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?

wolph avatar Apr 26 '21 00:04 wolph

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.

rmtmckenzie avatar Apr 26 '21 12:04 rmtmckenzie

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.

wolph avatar Apr 26 '21 22:04 wolph

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.

rmtmckenzie avatar Apr 27 '21 13:04 rmtmckenzie

Great! Thank you so much for the help :)

wolph avatar Apr 27 '21 14:04 wolph

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.

rmtmckenzie avatar Apr 27 '21 21:04 rmtmckenzie