桂林电子科技大学学报2025,Vol.45Issue(1):49-53,5.DOI:10.16725/j.1673-808X.2022324
基于ZXing的彩色QR码自适应识读与定位方法
Adaptive reading and locating method of color QR code based on ZXing
刘望龙 1陈元枝 2王梓豪 3姜文英1
作者信息
- 1. 桂林电子科技大学 电子工程与自动化学院,广西 桂林 541004
- 2. 桂林电子科技大学光电工程学院,广西 桂林 541004
- 3. 北京理工大学光电学院,北京 100081
- 折叠
摘要
Abstract
Aiming at the problem that the color QR code designed based on ZXing could not recognize pictures with arbitrary resolu-tion,an adaptive reading and positioning method for color QR code was designed.which referred to the binary process of black and white QR code,According to the mapping relationship between the 2k value luminance matrix and the bit matrix of color QR code,the formula of adaptive reading and positioning was established,which was mainly related to the size and k value of the bit matrix.Then according to the formula,the relevant algorithm was compiled to realize the adaptive reading and positioning function of color QR code.Traversing the image data multiple times was needed in the algorithm,so the decoding speed was determined by the size of the image resolution,which was represented by the number of pixels.The feasibility of this method is verified by analyzing the 4-color and 16-color QR code image data under three resolutions.关键词
彩色QR码/ZXing/自适应/解码/空间映射Key words
color QR code/ZXing/adaptive/decode/spatial mapping分类
信息技术与安全科学引用本文复制引用
刘望龙,陈元枝,王梓豪,姜文英..基于ZXing的彩色QR码自适应识读与定位方法[J].桂林电子科技大学学报,2025,45(1):49-53,5.