为什么重复的二维码看起来不一样?

发布于 2024-10-09 16:13:51 字数 1459 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

樱&纷飞 2024-10-16 16:13:51

请注意,QR 码可能使用 4 种不同级别的纠错,分别标记为 L、M、Q 和 H。此外,还有一个称为掩蔽的过程,旨在通过在图像上分布黑白像素来提高读取过程的鲁棒性。还有许多可用的屏蔽图案,它们可以生成有效的 QR 码,但结果不同。阅读规范以获取更多信息。

话虽这么说,给定具有相同设置的生成器,输出应该始终相同,这就是您最初的问题。现在,由于上述影响,比较两个不同的生成器可能会导致观察到两个不同的图像。

规范链接,随机从 Google 中摘取(我提到这一点是因为 ISO 将 QR 规范作为标准文档出售):

http://raidenii.net/files/datasheets/misc/qr_code.pdf

Mind that QR codes may use 4 different levels of error correction, labeled L, M, Q and H, respectively. Also, there is a process called masking, with the intention to increase the robustness of the reading process by distributing the black and white pixels over the image. There are also a number of masking patterns available, which can produce a valid QR code, but with different results. Read the specification for more info on those.

That being said, given a generator with the same settings, the output should always be the same, which is what your original question was about. Now, comparing two different generators might result in observing two different images due to the effects mentioned above.

Spec link, randomly picked off of Google (I'm mentioning this because ISO is selling the QR specification as a standard document):

http://raidenii.net/files/datasheets/misc/qr_code.pdf

空心空情空意 2024-10-16 16:13:51

这两个站点可能使用两个不同版本的 QR 码标准。

此图显示代码的某些区域保存有关所使用的版本和格式的信息,因此两个 QR 码在这些区域中可能会有所不同。我真的不知道 QR 码是如何工作的,但我认为不同的版本或格式也意味着其余数据的排序或编码方式不同。

http://en.wikipedia.org/wiki/File:QR_Code_Structure_Example.svg

The two sites might use two different versions of the QR code standard.

This picture shows that certain areas of the code hold information about the version and format used, so two QR codes might differ in those areas. I really don't know how QR codes work, but I assume that a different version or format would also mean that the rest of the data is ordered or encoded differently.

http://en.wikipedia.org/wiki/File:QR_Code_Structure_Example.svg

阳光下的泡沫是彩色的 2024-10-16 16:13:51

他们是相同的......谷歌和谷歌诺基亚

alt 文本

alt text

Kaywa 在眼睛上有所不同,但包含相同的信息。

无论如何,QRC 在每一代都没有什么不同。

They are same... Google & Nokia

alt text

alt text

Kaywa is different on eye but contains same info.

Anyway, QRC is not different on every generation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文