philipplackner / QrCodeScannerCompose

65 stars 19 forks source link

Scanning only works with adjustment of imageAnalysis #1

Open MarcelJurtz opened 2 years ago

MarcelJurtz commented 2 years ago

Hey, thanks for the video! I had an issue rebuilding your solution so I cloned the repo to figure out if I just forgot something. However, the repo seems to have the same issue. For me, the camera preview worked, but I just did not get any results (Pixel 3a).

I noticed some people in your videos comments had the same issue and one figured out to remove the .setTargetResolution part from the imageAnalysis-object. With that change, the scanning seems to work. However, I'm not super into android yet and I'm wondering if that change is fine or could actually break more. Would love to hear some feedback, thank you!

X1nto commented 2 years ago

THANK YOU SO MUCH!!! I've been trying to debug this thing for the whole goddamn day, never understood what was the issue and your comment just made my day.

dineshvg commented 6 months ago

Now you could use the resolutionSelector : .setResolutionSelector(ResolutionSelector.Builder().build())