二维条码最大存储能力
在阅读关于条形码的维基百科文章后,我了解到有大量的二维和线性条码代码。我熟悉的一种格式是二维码。
一维条码和二维条码的最大存储容量是多少?
Upon reading the Wikipedia article on bar codes, I learned that there is wide collection of 2D and linear bar codes. One format that I am familiar with is the QR Code.
What is the maximum storage capabilities of linear and 2D bar codes?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,这取决于您所说的“容量”是什么意思。例如,Eric J. 正确地指出,对于版本 40 代码,字节模式下 QR 码的最大容量为 2953 字节。但是,如果您的数据是纯数字,则它可以编码 7089 位数字,因为它具有特殊的压缩编码。
其次,重要的是要认识到并非所有格式都编码任意数据。例如,UPC-A 代码中除了 12 位数字之外,不存储任何内容。 Code 128 不能存储任意字节。因此,根据您的用例,某些格式可能不予考虑。
第三,容量可以根据其他选择(例如纠错级别)而变化。
最后,重要的是,理论最大容量和实际最大容量之间存在很大差异。是的,您可以创建版本 40 代码,但祝您好运,用拍照手机扫描它: (< a href="http://contentetc.files.wordpress.com/2011/05/qr-40.png" rel="noreferrer">原始来源)。
它可能适用于二维码最初设计的工业环境,但不适用于消费者用途。任何高于版本 10(几百字节)的内容都很难扫描。实际上,建议坚持使用版本 5 或更低版本(一百字节左右)。
其他格式通常也是如此。在这方面,2D 格式之间没有太大差异。在某种程度上,所有这些都面临着同样的焦点限制、CCD 响应能力和运动模糊的挑战。
First, it kind of depends on what you mean by "capacity". For example, Eric J. is correct that the maximum capacity of a QR code in byte mode is 2953 bytes, for a version 40 code. However if your data is purely numeric, it can encode 7089 digits, as it has a special compressed encoding.
Second it's important to realize that not all formats encode arbitrary data. For example there's no notion of storing anything but a 12-digit numer in a UPC-A code. Code 128 can't store arbitrary bytes. So some formats may be out of consideration depending on your use case.
Third the capacity can vary based on other choices, like error correction level.
Finally, importantly, there's a big difference between the theoretical maximum capacity and the practical maximum. Yes, you can create a version 40 code, but good luck scanning it with a camera phone: (original source).
It may work in the industrial contexts for which QR codes were originally designed, but not for consumer uses. Anything above version 10 (a few hundred bytes) gets hard to scan. In practice, sticking to version 5 or below is well advised (a hundred bytes or so).
The same is generally true of other formats. There are not big differences among 2D formats in this regard. At some level all are challenged by the same limitation of focus, CCD responsiveness, a motion blur.
QR 码可以编码 2,953 字节。
维基百科列表中有很多很多类型的条形码。除了 QR 之外,您还对其他特定内容感兴趣吗?
如果您从维基百科文章点击查看有关给定条形码的详细文章,详细文章通常会描述条形码可以编码的内容(有时字符集受到限制,例如数字或数字和字母,其他时候则有多个)可以表示字节)。
QR codes can encode 2,953 bytes.
There are many, many types of bar codes in the Wikipedia list. Are you interested in particular ones besides QR?
If you click through from the Wikipedia article to the detailed article on a given bar code, the detailed article generally describes what the bar code can encode (sometimes the character set is limited, e.g. to numbers or numbers and letters, other times a number of bytes can be represented).