简体   繁体   English

Android条码检测不适用于某些条码

[英]Android barcode detection not working for some barcodes

Using Google Play Services Barcode Detector 使用Google Play服务条形码检测器

Performs really well with most bar codes. 在大多数条形码上的表现都非常好。 However, I notice that it can't detect some barcodes, for instance 但是,我注意到它无法检测到某些条形码,例如

"12345678" is recgonized just fine as a code-128 将“ 12345678”改正为代码128

but "88888888" or "540" is not recognized at all as code-128 但“ 88888888”或“ 540”根本无法识别为代码128

I use this site to generate barcodes: http://barcode.tec-it.com/en 我使用此网站生成条形码: http : //barcode.tec-it.com/cn

Could this be a bug? 这可能是错误吗?

I tired the visionSamples for barcode-reader here: 我在这里厌倦了barcode-readervisionSamples

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

The 88888888 in code-128 works, but 540 don't. code-12888888888有效,但540不起作用。 I think that because 540 it too short for the code-128 . 我认为这是因为540对于code-128来说太短了。

However, I tried the QR code for 540 it works great. 但是,我尝试了540QR code ,效果很好。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM