CodingWithTashi / simple_barcode_scanner

Simple Barcode Scanner
https://pub.dev/packages/simple_barcode_scanner
MIT License
49 stars 81 forks source link

Simple barcode scanner doesn't use the main camera in web mobile #14

Open Vetheasas opened 1 year ago

Vetheasas commented 1 year ago

I'm using the simple_barcode_scanner demo, and in the web version on an android phone, it uses the low resolution macro camera rather than the main camera. I have to get really close to the barcode, and since it is so low in resolution, it can't scan barcode well especially barcode on a screen rather than on a physical object.

CodingWithTashi commented 1 year ago

Hi @Vetheasas, Can you please provide me your device detail?

Vetheasas commented 1 year ago

Hi @Vetheasas, Can you please provide me your device detail?

I'm using the ROG phone 6(ASUS_AI2201_A), android 12.

CodingWithTashi commented 1 year ago

I will see if I can fix this, additionally you can check html5-qrcode since I am using this internally

Vetheasas commented 1 year ago

Thank you for checking this. I tried another barcode scanner package called qr_bar_code_scanner_dialog that uses html5-qrcode, and it is very responsive and accurate even when i choose the macro camera. The visual difference that I'm seeing in comparison to yours is the scanning zone is much bigger than yours.

CodingWithTashi commented 1 year ago

ah I see, I will check with that too see if I can integrate same, thanks

Vetheasas commented 1 year ago

Screenshot_20221227-191029_Chrome

Vetheasas commented 1 year ago

ah I see, I will check with that too see if I can integrate same, thanks

You're welcome. I hope to see this soon😁

AliEasy commented 1 year ago

Any update on this?!

CodingWithTashi commented 1 year ago

Hi @AliEasy , no, not yet. I am still playing around with it. once get the proper solution. will update