Replies: 1 comment
-
hmm... the recent changes to reader input didn't seem to trigger an error for me in the test repo.. we might need to alter that a little bit.... in quagga2-reader-qr, i have a decodePattern() { return null } also, and it's commented with "needs to be implemented for Quagga in case it thinks there's a potential barcode in the image". What was the error you were getting? I think if auto-detection was on, the default decodePattern would often treat a QR as some kind of a barcode, so it was messing with the results going into decodeImage. Something like that. It's been a couple of years since I looked at that part. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, there, interesting project!
I was trying to detect qr codes at live-streamingi. It runs fine but with a few caveats that I detail below:
Missing
decodePattern
. AddingdecodePattern(){ return null }
helps to silence it. Is there any recommended definition (i guess this would transform the code to text) ?The
readers
array complains in Typescript if I add any custom reader likeqrcode
, so I had to@ts-expect-error
is there any way to do it better ?The little site to test and the short source code here.. To reproduce the first error it can just be cloned and remove
decodePattern
.Quagga2 stops at 1st detection (in purpose)
I'm ready to help if there is the need, but can't be sure I'll fix anything.
Have a good day.
Beta Was this translation helpful? Give feedback.
All reactions