Marginal-Gain Candidate Scheduling for Low-Resolution QR Code Decoding Enhancement
Main Article Content
Keywords
QR code decoding, low resolution, marginal gain, candidate scheduling, decoding enhancement
Abstract
Low-resolution QR codes often cannot be decoded, and the usual fix—running many enhancement candidates and retrying wastes compute because different candidates keep rescuing the same images. To address these issues, we propose marginal-gain candidate scheduling (MGCS). MGCS uses a pool of 11 candidate configurations (scaling, contrast enhancement like CLAHE, sharpening, border padding, color inversion, and serial combinations). During the offline phase, a greedy selection rule on a development set determines both the retained candidates and their execution order. At each step, the chosen candidate is one of the highest score, defined as the number of newly decoded images divided by its average runtime. In the online phase, this pre-determined sequence is executed, and the process terminates immediately upon a successful decode. On an independent test set of 2,000 synthetically degraded images (cropped with ground-truth boxes), the 5-stage setup decodes 63.95% of samples in 1.36 ms per crop and the 10-stage setup reaches 65.50% in 3.13 ms—+2.80 and +4.35 points over a magnification-only retry. Against a fixed multi-scale retry, 5 stages cut average time about 22% at no significant accuracy change, while 10 stages add 2.30 points. A second, separately generated test set shows the same pattern. This difference is crucial, because candidate selection dictates higher accuracy. Conversely, execution order only impacts the runtime of a fixed set. Because every step is standard image processing, the method needs no extra trained restoration model and stays runnable on a CPU.
References
- [1]SHI L Y, LIU Z J, JIANG R T. Design and implementation of an intelligent sorting robot based on machine vision[J]. Journal of Liaoning University of Science and Technology, 2026, 28(1): 12-16 [in Chinese].
- [2]ZHENG R, YUAN K, LI Y. A QR code for indoor localization and navigation of mobile robots[J]. High Technology Letters, 2008, 18(5): 495-500.
- [3]FENG W. Research on fast QR code recognition technology for visual localization[D]. Zibo: Shandong University of Technology, 2019 [in Chinese].
- [4]ALSULAMI F, JHANJHI N Z. Deep learning framework for barcode localization and decoding using simulated UAV imagery[J]. Scientific Reports, 2026, 16: 399. DOI:10.1038/s41598-025-29720-w.
- [5]FU J T, CONG P, SUN Y W. ESRTMDet: robust recognition of industrial 2D barcodes in complex environments[C]//2024 8th International Symposium on Computer Science and Intelligent Control (ISCSIC). Zhengzhou: IEEE, 2024:227-231.
- [6]MIAO Q W, CHEN C, HE W Q. A method for QR code detection and recognition in industrial scenes based on the PPYOLOv2 model[P]. China: CN115270839A, 2022-11-01 [in Chinese].
- [7]CORPUZ D J, DEL ROSARIO L V, CEMPRON J P, et al. QR code detection with perspective correction and decoding in real-world conditions using deep learning and enhanced image processing[C]//Proceedings of VISIGRAPP 2025, Volume 3: VISAPP. 2025: 685-690.
- [8]ZHENG Y, CHEN W. Method and system for QR code decoding based on distorted image correction[P]. China: CN105046256A, 2015-11-11 [in Chinese].
- [9]SÖRÖS G, SEMMLER S, HUMAIR L, HILLIGES O. Fast blur removal for wearable QR code scanners[C]//Proceedings of the 2015 ACM International Symposium on Wearable Computers (ISWC '15). Osaka: ACM, 2015: 117-124.
- [10]VEZZALI E, VORABBI L, GRANA C, BOLELLI F. Mosaic-SR: an adaptive multi-step super-resolution method for low-resolution 2D barcodes[C]//IEEE International Conference on Image Processing (ICIP). 2025.
- [11]SANCAR Y. Reconstructing unreadable QR codes: a deep learning based super resolution strategy[J]. PeerJ Computer Science, 2025, 11: e2841.
- [12]KEYS R G. Cubic convolution interpolation for digital image processing[J]. IEEE Transactions on Acoustics, Speech, and Signal Processing, 1981, 29(6): 1153-1162.
- [13]HENDRYCKS D, DIETTERICH T. Benchmarking neural network robustness to common corruptions and perturbations[C]//International Conference on Learning Representations (ICLR). 2019.
- [14]ISO/IEC 18004:2024. Information technology — Automatic identification and data capture techniques — QR Code bar code symbology specification[S]. Geneva: ISO, 2024.
- [15]EFRON B. Bootstrap methods: another look at the jackknife[J]. The Annals of Statistics, 1979, 7(1): 1-26.
- [16]zxing-cpp: ZXing-C++ barcode decoding library[EB/OL]. https://github.com/zxing-cpp/zxing-cpp.
- [17]RICE J R. The algorithm selection problem[J]. Advances in Computers, 1976, 15: 65-118.
- [18]VIOLA P, JONES M. Rapid object detection using a boosted cascade of simple features[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2001: 511-518.
