2D条码与1D条码-速度,准确性,大小 [英] 2d Barcode vs 1d barcode - speed, accuracy, size

查看:119
本文介绍了2D条码与1D条码-速度,准确性,大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的移动项目要求之一实现条形码.要存储的数据量很少(小于25个字母数字).我想知道为该项目实施一维条形码或二维条形码(特别是Qr码)是否明智.如果有人可以从1d与2d的角度对我进行以下方面的教育,我将感到非常高兴:

I wanted to implement barcode for one of my mobile project requirements. The amount of data that is to be stored is very little (<25 alpha-numeric). I want to know if its wiser to implement a 1d barcode or a 2d barcode (Qr code particularly) for this project. I would be really glad if someone could educate me on the following aspects from a 1d vs 2d perspective:

  1. 扫描速度
  2. 尺寸(移动摄像头识别所需的最小显示尺寸-这很关键)
  3. 准确性

从典型的处理和SDK角度考虑(最好是zxing).

Considered from a typical processing and SDK perspective (zxing preferably).

推荐答案

我会使用二维码,特别是如果您打算使用手机摄像头的话. qr代码具有一些功能(查找程序),可以使诸如透视校正之类的事情变得更加容易/可靠.它们还具有ECC,可消除误报并纠正各种数量的位检测错误.如果您查看zxing测试套件,则会发现许多误报1D案例,因为许多1D代码甚至都没有校验和.

I'd go with a qr code, particularly if you're planning on using a phone camera. qr codes have features (finders) that make things like perspective correction easier/more reliable. They also have ECC that enables eliminating false positives and correcting various amounts of bit detection errors. If you look at the zxing test suite, you'll find a number of false positive 1D cases since many 1D codes don't have even a checksum.

如果您知道要扫描的内容,则两种情况下的速度可能都不是问题.当您不知道要查找的内容时,zxing中最大的计算成本是遍历所有可能的代码.如果您知道代码类型,则可能不会有很大的不同.

Speed's probably not an issue for either case if you know what you're trying to scan. The biggest computational cost in zxing is going through all possible codes when you don't know what you're looking for. If you know the code type, it's not likely to be significantly different.

关于大小的唯一事情是必须捕获的像素数.换句话说,如果将相机靠近该代码,则可以读取少量代码.大型代码可以从更远的地方读取.所有这些都取决于光线条件,相机对焦(或没有相机对焦)以及相机亮度调节的情况.我看不到这些因素会对1D和2D产生什么影响.

The only thing about size is the number of pixels that have to be captured. In other words, a small code can be read if you hold the camera close to the code. A large code can be read from further away. All this is subject to light conditions, camera focus (or lack there of), and camera brightness adjustment. I can't see how any of these would impact 1D vs 2D though.

这篇关于2D条码与1D条码-速度,准确性,大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆