The Barcode scanner is great for QR Codes as they have inbuilt redundancy and error correction.
However, for barcodes, I have discovered that the Thunkable barcode scanner goes off prematurely and may only get half of the bar code. In the real world this is a serious challenge.
Can something be done about this in terms of looking at error checking / correcting, check digit validation and bar code type etc. to minimise false reads?
The scanner needs to see non-striped “whitespace” on either side of the barcode before it makes a determination.
Please advise if and when this will be possible.
Thanks a mill.
Can you share a minimal app reproducing the issue?
Hi Muneer
Thanks for your reply.
I’ve uploaded a pic of the barcode and of the scan - which scanned incorrectly. ie: If the camera only gets a partial view of the code as it slow comes into frame.
Here is the link: Thunkable
It works for me in an iPhone 11, getting the full barcode. What device are you testing it on? Do you have a different device you can try?
I’m using a Huawei P30 which has an exceptionally good camera. I’m also testing on a Hisense P50 (Android), which doesn’t have such a good camera but manages. I’ve picked up the issue on both. The barcode reader works 95% of the time but glitches out every now and then. I’ve seen it get confused when you scan it upside down. Also some barcodes work worse than others. So if you try a few variations and also try only half the barcode or slide it into frame slowly. Every now and then it gets the wrong code.
It’s tricky when I can’t replicate the issue on my device. Hopefully someone else has a similar device that they can test the barcode reader with.
When I use my phone and scan a few different barcodes at all sorts of angles (even upside down) and also when moving the barcode slowly into the camera frame, it gets the correct barcode value every time.
Thanks for following up. We’ll see how it goes.
I tried your project many times and it always gets the correct code. I use OPPO Android device.
Hi Muneer
Thanks for trying. Did you try various kinds of barcodes? I’m still getting the odd error.
What types of barcodes are you having the problem with? Can you post a few photos of those barcodes so we can try them?
Here’s one random one, and some screen shots of the scanner.
It seems to work much better scanning the picture here as opposed to the real one.
Try sweeping slowly across it from the left or the right.
It seems to find different barcode types as well.
The scans below are all of this same barcode.
I tried scanning that barcode slowly from left and right, in low light, from close up and farther away, and at various angles and it consistently (every time) shows this:
I am puzzled… Thanks for trying.
It works fine with me. I tried 3 different barcodes in addition to the image you shared and all are OK.
What device are you using?
I was able to emulate this by trying hard, but it wasn’t happening easily.
Thanks. I’m using a Huawei P30 which has an excellent camera and a cheap Hisense E50.
Both had glitches. I’m not sure what it is and we’ll have to live with it for now, and just make sure the operators stay on their toes…