【问题标题】:Android barcode detection not working for some barcodesAndroid 条码检测不适用于某些条码
【发布时间】:2016-01-15 05:37:18
【问题描述】:

使用 Google Play 服务条码检测器

在大多数条码上表现得非常好。但是,我注意到它无法检测到某些条形码,例如

“12345678”被识别为代码 128

但“88888888”或“540”根本无法识别为代码 128

我使用这个网站来生成条形码: http://barcode.tec-it.com/en

这可能是一个错误吗?

【问题讨论】:

    标签: android google-play-services barcode-scanner


    【解决方案1】:

    我在这里厌倦了visionSamples barcode-reader

    https://github.com/googlesamples/android-vision/tree/master/visionSamples/barcode-reader

    code-128 中的 88888888 有效,但 540 无效。我认为这是因为540 对于code-128 来说太短了。

    但是,我尝试使用QR code 换成540,效果很好。

    【讨论】:

    • 嗯听起来像一个错误。如果我用ZXing库,540没问题github.com/zxing/zxing
    • 是的,我厌倦了 Nexus 5 和 9。你可以报告问题here
    • 这对您有帮助吗?如果是,请采纳,谢谢
    猜你喜欢
    • 2020-06-19
    • 2016-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多