Submitted:
22 June 2026
Posted:
23 June 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Symmetry as the Organizing Principle
2. Background and Related Work
2.1. Two-Dimensional Barcodes
2.2. Error Correction in Barcodes
2.3. Group-Theoretic Analysis of Combinatorial Structures
2.4. The Dihedral Group D₄ and Cyclic Groups
2.5. Latin Squares and Frequency Squares
3. Problem Formulation
4. Exhaustive Enumeration of Recoverable Templates
4.1. Enumeration Algorithm
4.2. Result
5. Structural Symmetry Theorems
5.1. Theorem 2 (Mirror Reflection)
5.2. Theorem 3 (Vertical Flip)
5.3. Theorem 4 (Tetris Rotation)
5.4. Theorem 5 (Cyclic Column Rotation)
5.5. Theorem 6 (Cyclic Row Rotation)
6. Group Structure and Equivalence Classes
6.1. The Symmetry Group G
6.1.1. Theorem 7 (Group Structure). G ≅ D₄ × C₃ × C₃, hence |G| = 72.
6.2. Orbit Analysis
6.2.1. Theorem 8 (Equivalence Classes). The Action of G on V Partitions the 2,592 Recoverable Templates into Exactly 36 Orbits, Each of Size 72
6.3. Practitioner-Friendly D₄ View
6.4. Why the Direct Product Structure?
6.5. Verification by Burnside’s Lemma
7. Practical Applications of the Symmetry Framework
7.1. Compact Equivalence-Class Encoding
7.1.1. Encoding Scheme
7.2. Constant-Time Validity Oracle
7.2.1. Oracle Algorithm
7.3. Randomized DR Code for Anti-Cloning Security
7.4. Empirical Validation
8. Discussion and Applications
8.1. Cloud and Embedded Storage
8.2. Memory-Cache Locality
8.3. Limitations
8.4. Comparison with QR Code Recovery Geometry
8.5. Implementation Notes for DR15.py
8.6. Future Work
9. Conclusion
References
- W. Sriphum, “DR Code: The Two Dimensions Barcode Supporting High Rate Data Recovery,” in Proc. IEEE 16th Int. Conf. on Computational Science and Engineering (CSE), Sydney, Australia, Dec. 2013, pp. 1214–1219, . [CrossRef]
- T. J. Soon, “QR Code,” Automatic Data Capture Technical Committee Presentation, ITSC, 2008.
- QRStuff.com, “QR Code Error Correction,” [Online]. Available: http://www.qrstuff.com/blog/2011/12/14/qr-code-error-correction, 2011.
- ISO/IEC 18004:2015, “Information technology — Automatic identification and data capture techniques — QR Code bar code symbology specification,” International Organization for Standardization, 2015.
- A. K. T. Tan and D. Chai, “Improving mobile color 2D-barcode JPEG image readability using DCT coefficient distributions,” in Proc. Int. Conf. on Audio, Language and Image Processing (ICALIP), Shanghai, China, Jul. 2012.
- A.-L. Hou, F. Yaun, and G. Ying, “QR code image detection using run-length coding,” in Proc. Int. Conf. on Computer Science and Network Technology (ICCSNT), vol. 4, Dec. 2011, pp. 2130–2134.
- M. Sun, Z. Fang, L. Fu, and F. Zhao, “Identification of QR Codes Based on Pattern Recognition,” in Proc. World Automation Congress (WAC), Sep. 2010, pp. 397–401.
- D. Parikh and G. Jancke, “Localization and Segmentation of a 2D High Capacity Color Barcode,” in Proc. IEEE Workshop on Applications of Computer Vision (WACV), 2008, pp. 1–6.
- O. Bulan, V. Monga, and G. Sharma, “High capacity color barcodes using dot orientation and color separability,” in Proc. SPIE Media Forensics and Security XI, vol. 7254, Jan. 2009, pp. 725 417-1–725 417-7.
- Y. Fang and Y. Peng, “The design and implementation of two-dimensional barcode identification in smartphone,” in Proc. Int. Conf. on Computer Application and System Modeling (ICCASM), vol. 7, Taiyuan, China, Oct. 2010.
- P. J. Cameron, “Permutation Groups,” London Mathematical Society Student Texts, vol. 45, Cambridge University Press, 1999.
- R. P. Stanley, Enumerative Combinatorics, vol. 1, 2nd ed. Cambridge, UK: Cambridge University Press, 2011.
- G. Pólya and R. C. Read, Combinatorial Enumeration of Groups, Graphs, and Chemical Compounds. New York, NY, USA: Springer-Verlag, 1987.
- B. D. McKay and I. M. Wanless, “On the number of Latin squares,” Annals of Combinatorics, vol. 9, no. 3, pp. 335–344, 2005.
- T. Chomsiri and W. Sriphum, “DR15.py: open-source enumerator of recoverable DR Code templates,” GitHub repository, 2025. [Online]. Available: https://github.com/thawatchai2799/2D_DR_Code_20260606_0141.git, retrieved 2026.
- D. A. Patterson, G. Gibson, and R. H. Katz, “A case for redundant arrays of inexpensive disks (RAID),” in Proc. ACM SIGMOD, Chicago, IL, USA, 1988, pp. 109–116.
- P. M. Chen, E. K. Lee, G. A. Gibson, R. H. Katz, and D. A. Patterson, “RAID: high-performance, reliable secondary storage,” ACM Computing Surveys, vol. 26, no. 2, pp. 145–185, Jun. 1994.
- RacoIndustries, “QR Code Barcode Generator,” [Online]. Available: http://www.racoindustries.com/barcodegenerator/2d/qr-code.aspx, 2013.
- I. S. Reed and G. Solomon, “Polynomial codes over certain finite fields,” J. Society for Industrial and Applied Mathematics, vol. 8, no. 2, pp. 300–304, 1960.
- S. B. Wicker and V. K. Bhargava, Reed–Solomon Codes and Their Applications. Hoboken, NJ, USA: Wiley-IEEE Press, 1994.
- Wikipedia, “QR Code,” [Online]. Available: https://en.wikipedia.org/wiki/QR_code, retrieved 2026.
- Wikipedia, “MaxiCode,” [Online]. Available: https://en.wikipedia.org/wiki/MaxiCode, retrieved 2026.
- J. C. Moreira and P. G. Farrell, Essentials of Error-Control Coding. Chichester, UK: Wiley, 2006.
- M. A. Armstrong, Groups and Symmetry. New York, NY, USA: Springer, 1988.
- J. J. Rotman, An Introduction to the Theory of Groups, 4th ed. New York, NY, USA: Springer, 1995.
- T. Falas and H. Kashani, “Two-dimensional bar-code decoding with camera-equipped mobile phones,” in Proc. IEEE Int. Conf. on Pervasive Computing and Communications Workshops, 2007, pp. 597–600.
- H. Kato and K. T. Tan, “Pervasive 2D Barcodes for Camera Phone Applications,” IEEE Pervasive Computing, vol. 6, no. 4, pp. 76–85, Oct.–Dec. 2007.
- L. F. F. Belussi and N. S. T. Hirata, “Fast QR code detection in arbitrarily acquired images,” in Proc. SIBGRAPI, 2011, pp. 281–288.
- M. Querini, A. Grillo, A. Lentini, and G. F. Italiano, “2D color barcodes for mobile phones,” International Journal of Computer Science and Applications, vol. 8, no. 1, pp. 136–155, 2011.
- Z. Yang, H. Xu, J. Deng, C. C. Loy, and W. C. Lau, “Robust and fast decoding of high-capacity color QR codes for mobile applications,” IEEE Trans. Image Processing, vol. 27, no. 12, pp. 6093–6108, Dec. 2018.








| Constraint | Templates Surviving |
| No constraint (9! permutations) | 362,880 |
| Row 1 has all three classes | 120,960 |
| Rows 1 and 2 valid | 31,104 |
| All three rows valid | 10,368 |
| All rows + col 1 valid | 5,184 |
| All rows + cols 1, 2 valid | 2,592 |
| Full DR Code recoverability (all rows + all cols) | 2,592 |
| Constraint | Symbol | Order | Geometric Action |
| Mirror (left ↔ right) | σ_M | 2 | Reflects about vertical axis |
| Flip (top ↔ bottom) | σ_F | 2 | Reflects about horizontal axis |
| Tetris rotation (90° CW) | σ_R | 4 | Rotates the entire 3×3 grid |
| Column cyclic rotation | σ_C | 3 | Shifts columns: 0→1→2→0 |
| Row cyclic rotation | σ_W | 3 | Shifts rows: 0→1→2→0 |
| Subgroup of G | Order | Orbit Size | Number of Equivalence Classes |
| ⟨σ_M⟩ (mirror only) | 2 | 2 | 1,296 |
| ⟨σ_F⟩ (flip only) | 2 | 2 | 1,296 |
| ⟨σ_M, σ_F⟩ (mirror + flip) | 4 | 4 | 648 |
| ⟨σ_R⟩ (rotations only) | 4 | 4 | 648 |
| D₄ = ⟨σ_M, σ_F, σ_R⟩ | 8 | 8 | 324 |
| ⟨σ_C⟩ (col-cyclic only) | 3 | 3 | 864 |
| ⟨σ_W⟩ (row-cyclic only) | 3 | 3 | 864 |
| C₃ × C₃ = ⟨σ_C, σ_W⟩ | 9 | 9 | 288 |
| G = D₄ × C₃ × C₃ (full) | 72 | 72 | 36 |
| Encoding Method | Bits per Pattern | Bytes per Pattern | Reduction vs Naïve |
| Naïve (cell-by-cell) | 36 | 4.50 | 1.0× (baseline) |
| Permutation index in 9! | 19 | 2.38 | 1.9× |
| Pattern index in V (2,592) | 12 | 1.50 | 3.0× |
| D₄-quotient (324 atoms + 8) | 12 | 1.50 | 3.0× |
| Full-quotient (36 atoms + 72) | 13 | 1.62 | 2.8× |
| Transformation | Recoverable Inputs | Recoverable Outputs | Preservation Rate |
| Mirror (σ_M) | 2,592 | 2,592 | 100.0% |
| Flip (σ_F) | 2,592 | 2,592 | 100.0% |
| Rotate 90° (σ_R) | 2,592 | 2,592 | 100.0% |
| Rotate 180° (σ_R²) | 2,592 | 2,592 | 100.0% |
| Rotate 270° (σ_R³) | 2,592 | 2,592 | 100.0% |
| Column rotate ×1 (σ_C) | 2,592 | 2,592 | 100.0% |
| Column rotate ×2 (σ_C²) | 2,592 | 2,592 | 100.0% |
| Row rotate ×1 (σ_W) | 2,592 | 2,592 | 100.0% |
| Row rotate ×2 (σ_W²) | 2,592 | 2,592 | 100.0% |
| Property | QR Code (H-level) | DR Code (this work) |
| Error-correction algorithm | Reed–Solomon over GF(256) | Bitwise XOR (RAID-5 style) |
| Maximum data recovery rate | 30% | 33% |
| Number of damage geometries handled | 2 (center-circle, upper row) | 6 (any single row or column) |
| Computational cost per decode | O(n²) field operations | O(n) XOR operations |
| Number of distinct valid templates | 1 per quality level | 2,592 (this work) |
| Atomic patterns up to symmetry (D₄) | 1 | 324 (this work) |
| Atomic patterns up to full G | 1 | 36 (this work) |
| Suitable for embedded / RFID | Limited | Yes (12-bit encoding) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).