Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Providing Hint should ignore other barcode types #49

Open
elazarza opened this issue Dec 15, 2024 · 2 comments
Open

Providing Hint should ignore other barcode types #49

elazarza opened this issue Dec 15, 2024 · 2 comments

Comments

@elazarza
Copy link

"@capacitor/barcode-scanner": "^1.0.3"

doctor:

Latest Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

Installed Dependencies:

@capacitor/core: 6.2.0
@capacitor/cli: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

bug:

When proviging Hint to the scanner it should ignore other types, right now if a QR and a PDF41 for example are both in the frame it will hit the QR because apparently its faaster to hit, event if Hint provided with PDF417

expectation:
scanner should only read the Hint if provided and ignore other types

reproduction:

take a US driver license for example, it has both a barcode and a PDF417 one next to eachother, configure the scanner with a Hint for PDF417, and scan the license, its will hit the barcode and not the PDF417

@Asko-Dev
Copy link

Same issue, I tried to exclude QR code because when a user scans a food barcode next to which is a QR code it becomes an issue since the scanner picks up qr code first so it appears to the user like we don't have that food item even though we do .. but providing allowed hints doesn't do anything, it picks up on everything anyway.

@zcattacz
Copy link

@Asko-Dev that doesn't sound good enough either, there could be multiple barcodes, e.g. on a job card. I'd prefer the scanning screen to freeze and provide overlaid icons on the identified barcodes for user to select.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants