Development of a method for using color in machine-readable optical codes to increase the information capacity

Authors

DOI:

https://doi.org/10.15587/2706-5448.2025.332931

Keywords:

optical identification, machine-readable code, QR code, image processing, color space

Abstract

The possibility of increasing the capacity of QR codes by using color modules without adding new metadata is studied. A method for automatically determining the number of colors and their palette using image processing is proposed, which ensures compatibility with classical QR codes. A system is proposed that allows creating a QR code that uses 4, 8 or 16 colors in addition to the standard black and white version.

The main problem is the optimal use of the available color space to minimize errors when reading an informative image with an optical camera, compensate for the effects of uneven lighting and poor image quality, and ensure backward compatibility with the black and white version.

In the course of analyzing the use of different color spaces, the most promising perceptually uniform OKLCH space was determined. Algorithms for image preprocessing for correct decoding of information and an algorithm for encoding and decoding information using color have been developed.

The results obtained are explained by the distribution of the color gamut after the test reading of informative images, the number of errors and successful readings. Using the OKLCH color space, it was possible to read 60% of 16-color test images, while in HSL it was not possible to read any image due to color overlap. However, both spaces have a fairly high rate of successful reads in 4 and 8 color codes.

The use of color will allow the introduction of new standards for high-capacity color machine-readable codes without requiring changes to existing ones for additional metadata, while maintaining full backward compatibility and reliability of black and white codes. Increased information capacity in some cases allows to eliminate the need to be connected to the Internet, reduce the size of the code, and make it more visually appealing by using colors.

Author Biographies

Oleksandr Kozyra, Lviv Polytechnic National University

Department of Software

Andrii Fechan, Lviv Polytechnic National University

Doctor of Technical Sciences, Professor

Department of Software

Vladyslav Daliavskyi, Lviv Polytechnic National University

Assistant

Department of Software

References

  1. GS1 Barcodes. Bar Code Graphics, Inc. Available at: https://www.gs1standards.info/gs1-barcodes/
  2. 2D Barcode: Types, Use Cases, and Benefits (2023). Bitly. Available at: https://bitly.com/blog/2d-barcode/
  3. Ricson, E. (2025). 61+ QR Code Statistics & Trends 2025 Full Report. QR TIGER PTE. LTD. Available at: https://www.qrcode-tiger.com/qr-code-statistics-2022-q1
  4. What is a QR Code? QR Code. Available at: https://www.qrcode.com/en/about/
  5. ISO/IEC 18004:2015: Information technology – Automatic identification and data capture techniques – QR Code bar code symbology specification (2015). International Organization for Standardization. Geneva. Available at: https://raw.githubusercontent.com/yansikeim/QR-Code/master/ISO%20IEC%2018004%202015%20Standard.pdf
  6. David, C. (2024). QR Codes – what's the real risk? NCSC. Available at: https://www.ncsc.gov.uk/blog-post/qr-codes-whats-real-risk
  7. Grillo, A., Lentini, A., Querini, M., Italiano, G. F. (2010). High Capacity Colored Two Dimensional codes. Proceedings of the International Multiconference on Computer Science and Information Technology. Wisla, 709–716. https://doi.org/10.1109/imcsit.2010.5679869
  8. Taveerad, N., Vongpradhip, S. (2015). Development of Color QR Code for Increasing Capacity. 2015 11th International Conference on Signal-Image Technology & Internet-Based Systems (SITIS). Bangkok, 645–648. https://doi.org/10.1109/sitis.2015.42
  9. You, F., Zhang, Q., Welt, B. (2019). Research on color matching model for color QR code. Journal of Applied Packaging Research, 11 (3), 57–68. Available at: https://repository.rit.edu/japr/vol11/iss3/5
  10. Galiyawala, H. J., Pandya, K. H. (2014). To increase data capacity of QR code using multiplexing with color coding: An example of embedding speech signal in QR code. 2014 Annual IEEE India Conference (INDICON). Pune, 1–6. https://doi.org/10.1109/indicon.2014.7030441
  11. Understanding gamma correction. Cambridge in Colour. Available at: https://www.cambridgeincolour.com/tutorials/gamma-correction.htm
  12. Vidra, V., Pešička, O. (2023). LCH vs OKLCH: what is the difference? Atmos. Available at: https://atmos.style/blog/lch-vs-oklch
  13. OKLCH Color Picker & Converter. OKLCH. Available at: https://oklch.com/#0.6,0.1032,210,100
  14. ZXing-Dart. GitHub, Inc. Available at: https://github.com/shirne/zxing-dart
  15. Fechan, A., Khoverko, Y., Daliavskyi, V., Dyhdalovych, T. (2024). Contactless dual-function sensors based on Si-cholesteric liquid crystal systems for optical identification. Journal of Materials Science: Materials in Electronics, 35 (18). https://doi.org/10.1007/s10854-024-13005-5
Development of a method for using color in machine-readable optical codes to increase the information capacity

Downloads

Published

2025-08-29

How to Cite

Kozyra, O., Fechan, A., & Daliavskyi, V. (2025). Development of a method for using color in machine-readable optical codes to increase the information capacity. Technology Audit and Production Reserves, 4(2(84), 6–12. https://doi.org/10.15587/2706-5448.2025.332931

Issue

Section

Information Technologies