facundomedica / fast_qr_reader_view

A Fast QR Reader widget for Flutter. For both Android and iOS
MIT License
294 stars 163 forks source link

Android camera not focusing #33

Open James-A-White opened 5 years ago

James-A-White commented 5 years ago

First of all, many thanks for the great plugin. It took me a while to get it to work on AndroidX, but if you follow the instructions very carefully, it does work.

My problem is that the camera on my Nokia Android phone does not focus when using the fast qr reader. This is particularly a problem when you need to hold a QR code close to the lens because it has a lot of data encoded and thus small details. I have confirmed that my camera does close focus when you use it with the built-in camera app. Is there any way to get it to focus properly (mainly supporting close focus) when reading QRs through the fast qr reader package?

Everything works great on iOS.

Thanks,

Jw

facundomedica commented 5 years ago

@James-A-White that should be done automagically, I should check the parameters of the camera. But I won't be working on this for a while, feel free to investigate and open a PR

x4080 commented 5 years ago

@James-A-White , I found quite the opposite, in Android scanning works quickly, but in iOS it scans the same barcode slowly and often not recognized it, do you change the ResolutionPreset to high in iOS ?

@facundomedica Have you tested iOS using firebase ML kit instead of AVFoundation ? I wondered if it will run faster compared to AVFoundation one, or do you have tips to improve iOS performance ?

Thanks

x4080 commented 5 years ago

Solve it using ResolutionPreset to high in iOS, @facundomedica, should we use ResolutionPreset to low in android ? I tried the code in example folder and default is low

Thanks