-
-
Notifications
You must be signed in to change notification settings - Fork 547
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 codes... #527
Comments
I have the same issue. I would also like to use this PDF417 scan via the camera and not just an image. Is this possible? Thank you so much for a great library! |
The PDF417 bar code scanner is working, but another bar code I am trying to scan is encrypted. Is it possible to retrieve the raw data from the scan, instead of letting zxing decode the data to JSON? I have a different library that can decrypt the data. |
I have the same problem. I made it work unencrypted with this code:
However, when I try to read an encrypted PDF417, I get some errors. Did you find a solution? |
@rlyle - Were you ever able to get the back of drivers license scan working? I have the same use case and am getting the same error. I've tried all the way up to 600dpi quality scan in both black and white and color using the ZXing.BrowserPDF417Reader or the ZXing.MultiFormatReader |
I was having the same issue and this suggested workaround got me going. |
Nope, we just gave up on supporting PC scanning.. which was ok for us, as our primary users are on iOS and android. |
For me the reason it was not working was that I was passing a UInt8ClampedArray. Apparently, it only works with Int32Array so the workaround was doing |
Stale issue message |
Okay, I have been having the same issue. The Current Demo DOES work, but only on the second press. I have not found a way to make it work on a single press. First Decode gives an "N" and console errors described above. Second press DOES work correctly. I found that if you go back to Version 0.18.6 the Demo Works correctly, and as expected for Decoding PDF417. so for now, I'm going to go with 18.6 and hope for the best with my PDF417 Project. Good Luck all. |
Did a Git Bisect... The error comes from changes made here: #420 |
I will try to fix that without breaking the feature from #420 ... |
The feature #420 was introduced to scan inverted codes. Now what happens is that for every scan, it is first tried by inverting the colors and the next scan it is tried with original colors. You can see that in the online example, if you press once, nothing is found, the second time it gets decoded correctly. The feature was intended for continuous video scan where there are several scans per second so it is not a problem... I will try to change the behavior so that the invert code is by default only applied in continuous scan mode. |
please take a look at the PR. some feedback would be nice before merging |
Plz test v0.21.3 guys and let me know if that helped |
Hi! I'm currently trying to decode PDF 417 with the latest version (0.21.3) and still get: I did test the same images on https://zxing.org/w/decode.jspx and all of my images are decoded correctly. I tested it with PDF417Reader(), which seems to detect the barcode in an image, but it only worked with one of my examples. I'm not sure if the issue is related to image quality, as the one that worked was actually one of the more blurred images. This is what I have right now, not sure if I'm doing something wrong. I'd appreciate any help:
|
Hi, trying to scan the back of a drivers license, the picture is certainly clear and large enough, but it does nothing but dump this error into the logs...
index.js:1 deocdeFromVideoDevice error: ChecksumException
at ChecksumException.getChecksumInstance (http://localhost:3000/static/js/vendors~main.chunk.js:91679:12)
at PDF417ScanningDecoder.createDecoderResultFromAmbiguousValues (http://localhost:3000/static/js/vendors~main.chunk.js:116280:70)
at PDF417ScanningDecoder.createDecoderResult (http://localhost:3000/static/js/vendors~main.chunk.js:116219:34)
at PDF417ScanningDecoder.decode (http://localhost:3000/static/js/vendors~main.chunk.js:115963:34)
at PDF417Reader.decode (http://localhost:3000/static/js/vendors~main.chunk.js:112829:100)
at PDF417Reader.decode (http://localhost:3000/static/js/vendors~main.chunk.js:112776:31)
at BrowserCodeReader.decodeBitmap (http://localhost:3000/static/js/vendors~main.chunk.js:86999:24)
at BrowserCodeReader.decodeFromCanvas (http://localhost:3000/static/js/vendors~main.chunk.js:87008:17)
at loop (http://localhost:3000/static/js/vendors~main.chunk.js:87775:28)
I've been trying for hours to scan a PDF_417 off the back of my license, I don't think it's a blurry image or anything like that, just simply think something is wrong with the checksum calculations for this bar code format.
Can anyone else scan a PDF_417 with this library?
The text was updated successfully, but these errors were encountered: