I’m using ZXing barcode scanner with my project and I am having issues with 1D barcodes. The average success of scanning the barcode is 6 out of 10. 6 times the code comes right, but 4 of them the numbers come all shuffled. So the question is, should I try to change the requirements and use QR Code (the camera never fails reading QR Code), or is there a workaround to this, such as some kind of validation so I can emit a error message?
Thanks in advance.
edit: Code 128 was the one I should have used since the beginning. The device has no problem with reading the code. Thank you for all the information.
It sounds like you chose a 1D format without a checksum — like Code 39? It’s pretty prone to misreads as a result. Use Code 128, or better still, a QR code.