hjam40 / Camera.MAUI

A CameraView Control for preview, take photos and control the camera options
MIT License
451 stars 72 forks source link

Slow Barcode Reading #157

Open e808080 opened 5 months ago

e808080 commented 5 months ago

I am experiencing very slow barcode reading for both version 1.4.4 and 1.5.1. First it was not working at all and then got it working by setting the WidthRequest to a fixed value as suggested by a different issue here on github.

Does anyone know how to get good speed for the barcode reading (QR and 1-D Codes)? Right now the user needs to target the code for several seconds before the app picks it up. And that is in Release mode build with a Samsung Galaxy S21. Also tried on a newer iPad and same issue.

strajk- commented 4 months ago

I am experiencing very slow barcode reading for both version 1.4.4 and 1.5.1. First it was not working at all and then got it working by setting the WidthRequest to a fixed value as suggested by a different issue here on github.

Does anyone know how to get good speed for the barcode reading (QR and 1-D Codes)? Right now the user needs to target the code for several seconds before the app picks it up. And that is in Release mode build with a Samsung Galaxy S21. Also tried on a newer iPad and same issue.

Current version is completely broken as far as detection is concerned, you're better off downgrading to 1.3.5 which doesn't require Camera.MAUI.ZXing, scans with that version are almost instant for me, some people completely abandoned this repo and moved on to others which I haven't tried yet since the downgrade was enough (for now).

EDIT: Initially suggested using 1.2.1, but that has a couple bugs that happen in release, now using 1.3.5, so far not noticing anything that I'm missing and wow is it blazing fast!

skane526 commented 3 months ago

@strajk- I attempted to downgrade to 1.3.5 and was unable to find any references on how to setup the bar code scanning. When I go to the readme from the 1.3.5 repo it still requires ZXingHelper in the code.

thomasgalliker commented 2 weeks ago

We switched to native barcode scanning (MLKit / VisionKit) because zxing was terribly slow, especially if we had to scan big QR codes and/or under bad light conditions.