<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Error Correction on 魔都水滴</title>
    <link>https://blog.margrop.net/tag/error-correction/</link>
    <description>Recent content in Error Correction on 魔都水滴</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-CN</language>
    <lastBuildDate>Wed, 29 Jul 2026 08:00:00 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/tag/error-correction/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>二维码缺了一个角，为什么手机还能扫出来？不是魔法，是给答案准备了备份</title>
      <link>https://blog.margrop.net/post/qr-code-missing-corner-error-correction/</link>
      <pubDate>Wed, 29 Jul 2026 08:00:00 +0800</pubDate>
      <guid>https://blog.margrop.net/post/qr-code-missing-corner-error-correction/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;先说结论&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;二维码缺了一个角还能扫出来，通常不是因为手机“猜得特别聪明”，而是因为二维码在写入真正内容时，顺手又写进了一批可以检查和修复错误的冗余信息。只要损坏主要落在数据区，且损坏没有超过纠错能力，扫描器就能根据剩下的黑白格把缺失内容算回来。&lt;/p&gt;&#xA;&lt;p&gt;但“缺一个角”不是一个精确的技术指标。一个角如果只是数据区，可能还能恢复；如果刚好抹掉了左上、右上或左下的定位图案，损坏面积很小，扫描器甚至可能还没开始纠错，就已经找不到二维码的位置和方向了。&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;p&gt;&lt;img alt=&#34;二维码缺角与听写漏字的类比&#34; src=&#34;https://blog.margrop.net/post-images/qr-code-missing-corner-error-correction/00-cover-generated.webp&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;图 1：本文原创生成的主视觉。二维码像一段带校验线索的“黑白听写”，局部缺失不一定等于整段内容消失。&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;你可能见过这些场景：海报被撕掉一个角，二维码仍然能打开网页；快递单被胶带遮住一块，手机还是能识别；有人在二维码中间放了头像，扫码却没有受到太大影响。于是问题来了：二维码到底把答案藏在哪里？它为什么知道被遮住的地方应该是什么？&lt;/p&gt;&#xA;&lt;p&gt;本文不把二维码纠错讲成一串只能背下来的公式，而是先做一次真实的本地实验，再把算法拆成日常生活中容易理解的“听写漏字”。你会看到：二维码的纠错码是什么、L/M/Q/H 四个等级意味着什么、为什么“30%”经常被误解、定位图案为什么比数据格子更重要，以及自己设计二维码时应该怎样留安全余量。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
