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

Unable to scan PDF-417 barcode #891

Open
bhattibytes opened this issue Feb 21, 2024 · 3 comments
Open

Unable to scan PDF-417 barcode #891

bhattibytes opened this issue Feb 21, 2024 · 3 comments

Comments

@bhattibytes
Copy link

bhattibytes commented Feb 21, 2024

Describe the bug
I am able to scan QRcodes just fine but when I try to scan a PDF-417 barcode which appears on the back of a US driver's license it doesn't recognize it. I have also noticed this with the demo on https://blog.minhazav.dev/research/html5-qrcode.html
I have tried to scan other barcodes and it doesn't appear to work. For reference I am using it in a react app using the plugin outlined here: https://github.com/scanapp-org/html5-qrcode-react

To Reproduce
Steps to reproduce the behavior:

  1. Click start scanning
  2. Display bardcode in viewfinder
  3. Wait but nothing happens.... (if I use a QR code it recognizes it immediately and shows the output as expected)

Expected behavior
For it to recognize the pdf-417 barcode

Desktop (please complete the following information):

  • MacOS Monterrey 12.5.1
  • Google Chrome Version 121.0.6167.184
  • Version [e.g. 22]"html5-qrcode": "^2.3.7" also tried on 2.3.8 and 2.3.4

Additional context
Is there a way to take a snapshot using the webcam then analyze the barcode as if it were an uploaded image?

@ray154888
Copy link

Hello everything is fine? did you add the type in the config?
imagem_2024-02-21_162450024

@bhattibytes
Copy link
Author

Yes, I tried adding only the pdf417
config.formatsToSupport = [Html5QrcodeSupportedFormats.PDF_417];

It works when I use the upload image feature but not when scanning with the webcam.

@bhattibytes
Copy link
Author

Here is the example PDF-417 I used when doing "scan image file"
barcode

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

2 participants