# Aztec码

Aztec码是一种二维矩阵条码符号体系，其中每个符号名义上为正方形，由排列在方形网格上的方形模块构成，中心有一个方形的牛眼图案<sup>[1](https://assets.vde-verlag.de/iec-normen/preview-pdf/info_isoiec24778%7Bed2.0%7Den.pdf)</sup>。它于1995年在Welch Allyn公司发明并投入公有领域，被标准化为ISO/IEC 24778，广泛应用于航空登机牌、铁路车票以及政府和邮政文件——在这些场合，它无需静区（条码周围扫描器读取所需的空白边距）的特点以及对物理损伤的容忍度，比单纯的容量更重要<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup><sup> • </sup><sup>[3](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)</sup>。

| 关键事实 | 详情 |
|---|---|
| 符号尺寸 | 从15×15到151×151模块共36种正方形尺寸；符号边界外无需静区<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup><sup> • </sup><sup>[5](https://han-soft.com/releases/barcode2d/documents/b_azteccode.html)</sup> |
| 容量 | 最大符号可容纳多达3832个数字字符、3067个字母数字字符或1914字节；最小符号可编码多达13个数字字符或12个字母数字字符或6字节<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup> |
| 纠错 | 里德-所罗门码，用户可在数据区域的5%至95%之间选择，最少3个码字；推荐级别为符号容量的23%加3个码字<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup> |
| 损伤容忍度 | 符号损毁一半时约需62.5%的纠错能力才能存活；克服打印-扫描和模糊失真所需的最低纠错能力约为15%<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup> |
| 两种格式 | 紧凑符号（2环牛眼，1–4个数据层）用于短消息；全范围符号（3环牛眼，最多32层）用于长消息<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup> |
| 结构化追加 | 一条消息可拆分到最多26个符号上，可按任意顺序扫描<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup> |
| 标准 | ISO/IEC 24778，2008年第一版，2024年第二版；专利已投入公有领域<sup>[8](https://www.iso.org/standard/82441.html)</sup><sup> • </sup><sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup> |

## 历史与标准化

小安德鲁·朗埃克（Andrew Longacre Jr.）和罗伯特·赫西（Robert Hussey）于1995年在Welch Allyn公司开发了Aztec码。该公司是一家医疗器械企业，同时经营条码扫描器业务，后者后来分拆为Hand Held Products，最终被[霍尼韦尔](https://www.edgepedia.org/zh/honeywell)（Honeywell）收购<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup>。尽管Welch Allyn最初为该技术取得了专利，但专利随后被投入公有领域——《Barcoder》参考资料称这一决定是效仿[Denso Wave](https://www.edgepedia.org/zh/denso-wave)早先公开发布QR码的做法，后者消除了采用该技术的许可障碍<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup>。其名称来源于中央定位图案形似从上方俯瞰的阿兹特克金字塔<sup>[3](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)</sup>。

该符号体系被标准化为ISO/IEC 24778:2008，其中定义了数据字符编码、错误控制编码规则、图形符号结构和符号尺寸<sup>[9](https://www.iso.org/standard/41548.html)</sup>。第二版ISO/IEC 24778:2024取代了它，并在规范中增加了参考解码算法和用户可选的应用参数<sup>[8](https://www.iso.org/standard/82441.html)</sup><sup> • </sup><sup>[10](https://webstore.iec.ch/en/publication/94111)</sup>。英国标准协会（British Standards Institution）采纳了新版本作为BS ISO/IEC 24778:2024，于2024年4月30日发布<sup>[11](http://knowledge.bsigroup.com/products/information-technology-automatic-identification-and-data-capture-techniques-aztec-code-bar-code-symbology-specification-1)</sup>。

## 符号结构与编码

**定位图案。** 定位图案是一组以单个深色模块为中心的同心方形环，由一圈浅色模块被一圈更大的深色模块包围构成<sup>[12](https://standards.iteh.ai/catalog/standards/iso/fde3ddcd-a78a-4f3e-aab5-3278eed2c281/iso-iec-24778-2024)</sup>。紧凑符号在中心周围有两圈白色和两圈黑色环；全范围符号各有三圈<sup>[3](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)</sup>。四个3模块的人字形方向图案位于定位图案的四角，具有不同的深浅配置（左上角图案全深，左下角全浅），以便读取器确定符号的朝向<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>。

**核心符号与参考网格。** 牛眼加上周围的模式消息构成核心符号，在紧凑符号中覆盖11×11模块区域，在全范围符号中覆盖15×15；必须先解码核心符号再解码周围的数据字段，因为它告诉读取器符号的尺寸和纠错参数<sup>[12](https://standards.iteh.ai/catalog/standards/iso/fde3ddcd-a78a-4f3e-aab5-3278eed2c281/iso-iec-24778-2024)</sup>。全范围符号增加了参考网格，即定位图案深浅周期性沿符号每第16行和第16列延伸的梯状结构，帮助解码器在大符号中跟踪模块位置；紧凑符号没有参考网格<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>。

**数据层。** 数据和纠错码字被铺设在2模块厚的层中，从核心符号左上角开始顺时针向外螺旋展开<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>。数据层的数量从1到32，决定了符号的尺寸<sup>[12](https://standards.iteh.ai/catalog/standards/iso/fde3ddcd-a78a-4f3e-aab5-3278eed2c281/iso-iec-24778-2024)</sup>。标准规定了具有1至32个数据层的全范围符号<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>；四层符号可以用任一种格式构建<sup>[3](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)</sup>。Aztec符号与方向无关，可以在镜像反转或反射率反转的情况下解码<sup>[12](https://standards.iteh.ai/catalog/standards/iso/fde3ddcd-a78a-4f3e-aab5-3278eed2c281/iso-iec-24778-2024)</sup>。

**紧凑型与全范围型。** 紧凑符号以2环牛眼为视觉特征，适合高效编码较短的消息；全范围符号以3环牛眼为特征，服务于较长的消息，编码器自动选择，解码器则区分两者<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup>。2024年版还记录了可选功能：用于非默认字符集的扩展信道解释（ECI）、读取器初始化符号，以及一系列用于特殊应用的256个小型机器可读标记，称为Aztec Runes<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup>。

## 容量与纠错

最小的Aztec码符号可编码多达13个数字字符或12个字母数字字符或6字节数据；最大的可编码多达3832个数字字符或3067个字母数字字符或1914字节<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>。厂商文档报告的紧凑符号上限为110个数字字符或89个字母数字字符<sup>[13](https://docs.aspose.com/barcode/info-cards/aztec-compact/)</sup><sup> • </sup><sup>[14](https://www.scandit.com/products/barcode-scanning/symbologies/aztec-code/)</sup>。

纠错使用里德-所罗门编码，这是一种基于[BCH码](https://www.edgepedia.org/zh/bch-code)的循环、多级、可变长度纠错码，可纠正多种随机错误模式<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup>。级别可由用户在数据区域的5%至95%之间选择，最少3个码字；推荐级别为符号容量的23%加3个码字<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup>。对印刷符号的测量表明，承受条码一半的破坏性损伤约需62.5%的纠错能力，而仅克服打印-扫描、打印质量和模糊失真所需的最低纠错能力约为15%<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup>。

**实践中的权衡。** 提高纠错级别会消耗本可用于承载数据的码字，因此在编码数据量较大的输入消息时不建议使用高于23%的级别，因为可能超出符号容量；在低损伤环境中，建议使用5%至10%<sup>[15](https://docs.aspose.com/barcode/info-cards/aztec-full-range/)</sup>。当模糊等全局非破坏性错误占主导时，增大模块尺寸比提高纠错级别是更好的补偿策略<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup>。

## 数据一览

- 可用的正方形符号尺寸共36种，从15×15到151×151模块<sup>[5](https://han-soft.com/releases/barcode2d/documents/b_azteccode.html)</sup>。
- 容量在字符数上跨越约300倍的差距：最少13个数字字符，最多3832个<sup>[7](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)</sup>。
- 纠错范围为数据区域的5%至95%（最少3个码字），推荐23%加3个码字<sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup>。
- 承受符号一半损失约需62.5%的纠错能力；打印-扫描和模糊失真的底线约为15%<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup>。
- 实测有效载荷密度在彩色激光打印机上峰值约为每平方英寸1750字节，在喷墨一体机上为每平方英寸1200字节，模糊是最强的负面因素<sup>[6](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)</sup>。

## 与其他二维符号体系的比较

在一项控制变量比较中，在最低纠错级别下保持数据和X尺寸不变，Aztec码所需空间是[Data Matrix](https://www.edgepedia.org/zh/data-matrix)的1.7倍，QR码所需空间是3.2倍，PDF417所需空间是29.2倍<sup>[16](https://pubs.sciepub.com/jbms/6/3/1/jbms-6-3-1.pdf)</sup>。在该研究讨论的四种符号体系中，只有Data Matrix具有固定级别的纠错；其余均提供用户可选性<sup>[16](https://pubs.sciepub.com/jbms/6/3/1/jbms-6-3-1.pdf)</sup>。同一研究将里德-所罗门纠错下的残余字符替换率定为在95%置信度下约7.97亿分之一<sup>[16](https://pubs.sciepub.com/jbms/6/3/1/jbms-6-3-1.pdf)</sup>。

具体与QR码相比，Aztec的最大容量较低：QR最多存储4296个字母数字字符、7089个数字字符和2953字节，并可存储汉字字符；Aztec通过ECI支持非默认字符集<sup>[14](https://www.scandit.com/products/barcode-scanning/symbologies/aztec-code/)</sup>。Aztec以密度和鲁棒性作为补偿：它不需要静区，因此可以在比QR更小的空间内存储更多数据，并且从传真等低分辨率图像中也能良好读取<sup>[14](https://www.scandit.com/products/barcode-scanning/symbologies/aztec-code/)</sup><sup> • </sup><sup>[15](https://docs.aspose.com/barcode/info-cards/aztec-full-range/)</sup>。比较表列出最大字母数字容量：Aztec在151×151模块下约为3067个字符，PDF417约为1800个，Data Matrix在144×144下约为2335个；静区要求分别为Aztec无、PDF417为2倍模块宽度、Data Matrix为1个模块<sup>[17](https://qr.abundera.ai/standards/non-qr-2d/)</sup>。

## 应用

**登机牌。** 国际航空运输协会（IATA）第792号决议定义了条码登机牌（BCBP）数据格式，并指定四种允许的符号体系：PDF417（打印登机牌的默认格式）、Aztec、DataMatrix和QR码<sup>[18](https://docs.barcoder.ai/docs/standards/iata-bcbp)</sup>。对于移动登机牌上的矩阵符号体系，标准给出的数据为：83×83的Aztec码约900个字母数字字符，80×80的DataMatrix约862个，QR码约938个；BCBP有效载荷为明文结构化数据，无强制加密保护<sup>[18](https://docs.barcoder.ai/docs/standards/iata-bcbp)</sup>。BCBP标准规定Aztec码的最低纠错率为23%<sup>[19](https://barcodefyi.com/guide/aztec-code-deep-dive/)</sup>。

**交通和打印票证。** Aztec的标志性部署是交通和航空票证——其无静区要求使条码能适配紧凑的文件布局，其损伤容忍度能承受口袋中的折叠、揉皱和磨损<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup>。欧洲主要铁路网络的打印车票仍使用Aztec且未被弃用，而[Apple Wallet](https://www.edgepedia.org/zh/apple-wallet)和[Google Wallet](https://www.edgepedia.org/zh/google-wallet)中移动优先的数字登机牌越来越多地使用QR码，因为手机屏幕向手持扫描器显示QR比Aztec更可靠<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup>。

**结构化追加。** 当消息对单个符号来说太大或必须适配非正方形区域时，可以分布到多个Aztec码符号上，最多26个，可按任意顺序扫描并逻辑重组<sup>[3](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)</sup><sup> • </sup><sup>[4](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)</sup>。

## 工具与近期发展

主要的开源Aztec实现是zxing，它编解码Aztec以及QR、PDF417、Data Matrix和一维符号体系，并在zxing-js、ZXing.Net和treepoem中有额外支持，商业SDK则来自Scanbot、Scandit、Anyline和Dynamsoft<sup>[2](https://docs.barcoder.ai/docs/standards/aztec)</sup>。较小的工具直接暴露标准参数：dlenski/aztec_code_generator Python工具接受特定的符号尺寸和紧凑格式（例如19×19紧凑符号）以及默认为推荐值23的纠错百分比<sup>[20](https://github.com/dlenski/aztec_code_generator)</sup>。

2023年以来的研究针对这一已知弱点。一种2025年的受损Aztec码解码方法在CoBRA-CYL-AZ数据集上达到0.59的准确率，而ZXing为0.02，ZXing-cpp为0.16，Dynamsoft为0.16，显示主流读取器处理受损符号的能力多么有限<sup>[21](https://computeroptics.ru/eng/KO/Annot/KO49-6/490632e.html)</sup>。在标准方面，ISO/IEC 24778:2024取代了2008年版<sup>[8](https://www.iso.org/standard/82441.html)</sup>。在工具方面，python-aztec v1.2.0（2026年4月9日发布）增加了GS1 2027 FLG(0)合规性、IATA BCBP登机牌构建器、通过zxing-cpp实现的免Java解码以及ECI往返测试；根据ISO 24778第7节和GS1通用规范第5.5.3节，GS1模式输出将FLG(0)读取器初始化作为第一个编码字符发出，Zebra、霍尼韦尔和DataLogic的工业扫描器在解码输出前加上]z3标识符<sup>[22](https://github.com/greyllmmoder/python-aztec/releases/tag/v1.2.0)</sup>。

## References

1. [ISO/IEC 24778:2024 preview, VDE Verlag](https://assets.vde-verlag.de/iec-normen/preview-pdf/info_isoiec24778%7Bed2.0%7Den.pdf)
2. [Aztec: 2D Matrix standard, Barcoder documentation](https://docs.barcoder.ai/docs/standards/aztec)
3. [Aztec Code, Seagull Scientific Barcode Guide](https://barcodeguide.seagullscientific.com/content/Symbologies/Aztec_Code.htm)
4. [ISO/IEC 24778:2024 preview PDF](https://cdn.standards.iteh.ai/samples/82441/b14abbd08b1a4dd1a2875ff76a0fef13/ISO-IEC-24778-2024.pdf)
5. [TBarcode2D_AztecCode documentation, Han-Soft](https://han-soft.com/releases/barcode2d/documents/b_azteccode.html)
6. [Error-Correcting Code (ECC) and Module Size Considerations in 2D Aztec Barcode Readability, Journal of Imaging Science and Technology 54(6)](https://library.imaging.org/admin/apis/public/api/ist/website/downloadArticle/jist/54/6/art00008)
7. [ISO/IEC 24778:2008 preview PDF](https://cdn.standards.iteh.ai/samples/41548/abdda8bc5cff43ff86a9988b1d784f59/ISO-IEC-24778-2008.pdf)
8. [ISO/IEC 24778:2024: Aztec Code bar code symbology specification, ISO](https://www.iso.org/standard/82441.html)
9. [ISO/IEC 24778:2008, ISO](https://www.iso.org/standard/41548.html)
10. [ISO/IEC 24778:2024, IEC Webstore](https://webstore.iec.ch/en/publication/94111)
11. [BS ISO/IEC 24778:2024, BSI Knowledge](http://knowledge.bsigroup.com/products/information-technology-automatic-identification-and-data-capture-techniques-aztec-code-bar-code-symbology-specification-1)
12. [ISO/IEC 24778:2024 catalog page with preview text, iTeh](https://standards.iteh.ai/catalog/standards/iso/fde3ddcd-a78a-4f3e-aab5-3278eed2c281/iso-iec-24778-2024)
13. [Aztec Code Compact, Aspose.BarCode documentation](https://docs.aspose.com/barcode/info-cards/aztec-compact/)
14. [Aztec Code Barcode Symbology, Scandit](https://www.scandit.com/products/barcode-scanning/symbologies/aztec-code/)
15. [Aztec Code Full Range, Aspose.BarCode documentation](https://docs.aspose.com/barcode/info-cards/aztec-full-range/)
16. [Reed-Solomon Based Bar Code Character Substitution Rates, Journal of Business and Medical Sciences 6(3)](https://pubs.sciepub.com/jbms/6/3/1/jbms-6-3-1.pdf)
17. [Aztec · PDF417 · Data Matrix, spec & test vectors](https://qr.abundera.ai/standards/non-qr-2d/)
18. [IATA BCBP: PDF417/Aztec/QR Data Format standard, Barcoder documentation](https://docs.barcoder.ai/docs/standards/iata-bcbp)
19. [Aztec Code: The Barcode Inside Your Boarding Pass, BarcodeFYI](https://barcodefyi.com/guide/aztec-code-deep-dive/)
20. [dlenski/aztec_code_generator, GitHub](https://github.com/dlenski/aztec_code_generator)
21. [Journal of Computer Optics 49(6), 2025: Aztec Code decoding method](https://computeroptics.ru/eng/KO/Annot/KO49-6/490632e.html)
22. [python-aztec v1.2.0 release notes, GitHub](https://github.com/greyllmmoder/python-aztec/releases/tag/v1.2.0)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Data formats and serialization › Text, encodings, and archives

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/aztec-code

English original: https://www.edgepedia.org/aztec-code
