You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Zbar v0.10识别Code128条码错误,是否为软件Bug?

Is this a Zbar Bug?

Absolutely, this is very likely a bug in the Zbar v0.10 release—and it’s a problem that’s been fixed in newer versions of the library.

Here’s why:

  • Zbar v0.10 is an extremely old release (dating back to 2012). Over the years, the Zbar project has addressed dozens of edge cases and recognition issues for Code128 barcodes, especially around handling certain encoding patterns or subtle print/scan artifacts that might trip up older algorithms.
  • Your test confirms the barcode itself is valid: since an updated online barcode reader can correctly parse it as 10000439140021, the issue isn’t with the image or the barcode’s structure—it’s with Zbar’s outdated decoding logic.

To confirm this, try upgrading to the latest stable version of Zbar (currently v0.23.90 or newer) and re-run your command:

zbarimg -d ./image.jpg

You’ll almost certainly get the correct result with the updated library.

Older Zbar versions had known limitations with Code128’s full character set and mode switching, which explains the mismatch you’re seeing here.

内容的提问来源于stack exchange,提问作者ninja

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 08:54:43