The comparison of linear barcode readers included unir, zxing-cpp, ZBar, and OpenCV. The test dataset consisted of 6899 images from open sources. The unir engine successfully read 72% of the barcodes, while ZBar, zxing-cpp, and OpenCV achieved 56%, 54%, and 42% respectively.
Performance varied significantly on blurred images. In the Artelab-2 set, unir read 93% of codes, whereas competitors ranged from 15% to 42%. On clear images, all readers performed similarly, achieving 90–99% success rates. For images without barcodes, unir, zxing-cpp, and ZBar produced zero false positives, while OpenCV reported 7.
The readers showed comparable speeds on standard images, typically processing them in 10–20 ms. However, unir demonstrated a longer processing time when failing to read a code, as it iterates through more options. On the challenging SmartEngines set, unir read 47% of codes, outperforming competitors, though many codes remained unreadable for all tools.
The study highlights that different readers fail on different images. Combining unir with ZBar on the SmartEngines set could increase the read rate from 1417 to 1618 codes. The tests were conducted on an Intel Core i5-1335U processor running Windows 11, using a total of 11 151 images for various benchmarks.






