Open AndreyPatseiko opened 3 years ago
I just tested (https://barcode.tec-it.com/en/Code128?data=444)[https://barcode.tec-it.com/en/Code128?data=444] and that worked. I also tested (https://barcode.tec-it.com/en/Code93?data=555)[https://barcode.tec-it.com/en/Code93?data=555] and that worked as well. So the this app WILL read those codes, but at some point a generated barcode will be too long to read and the barcode lines will be too small for a device to recognize. Using letters in a linear barcode is much more 'costly' than using numbers (meaning, a linear barcode of 'abc' produces much smaller lines than one of '123', which matters as your barcode grows longer in length).
Same problem here, tested with barcode 39 and 128 and it doesn't read except qr code only.
I have tested this, it's not that the decoder is not able to decode the values instead that the camera doesn't capture the long barcodes well leading to highly aliased or inaccurate images being streamed to the decoder.
One solution is to use non square qrbox instead
Example js config
let html5QrcodeScanner = new Html5QrcodeScanner(
"reader",
{
fps: 10,
qrbox: { width: 400, height: 250 },
// Important notice: this is experimental feature, use it at your
// own risk. See documentation in
// mebjas@/html5-qrcode/src/experimental-features.ts
experimentalFeatures: {
useBarCodeDetectorIfSupported: true
},
rememberLastUsedCamera: true
});
html5QrcodeScanner.render(onScanSuccess);
From a library perspective I will add support for scanning the codes in different orientations so that on smartphones we can have the qrbox in landscape orientation for such scanning
Library don't scan some barcodes.
Steps to reproduce:
Expected behavior Scanning was successful..
Result Nothing not happen. Scanning not happen.
Screenshots
Smartphone: