Open Christopher-Shorter opened 1 year ago
Hey @Christopher-Shorter, I'm having the same issue. If you've resolved it, could you please let me know how?
We ended up going with a paid library called Scandit. It was worth it for us since we were using it for a production application and the performance was much better.
Describe the bug Html5Qrcode works incredibly well for many barcode types, but when trying to scan long code128 barcodes, like are used for the FDA's UDI barcodes, the continuous scan fails to pick them up. The image scan is able to recognize them, but only if the image is cropped absolutely perfectly. See the screenshots below for details on this.
To Reproduce Steps to reproduce the behavior:
Expected behavior barcode should be recognized and data should be parsed
Screenshots Failing Scans:
Perfectly cropped working scan:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context For reference, my external barcode scanner is able to read these barcodes, and the ZXing live demo is able to pick them up as well, which really surprised me since html5-qrcode is using zxing under the hood.
Here are some sample UDIs if you'd like to generate/print your own barcodes to test: (01)00190776136109(10)5A6BFB (01)00190776136116(10)DE353D (01)00810041638793(10)DAC5C1(17)210326
Test Barcode Sheet UDI - Test Book.pdf