Skip to main content
Log in

Gs-DeblurGANv2: a QR code deblurring algorithm based on lightweight network structure

  • Regular Paper
  • Published:
Multimedia Systems Aims and scope Submit manuscript

Abstract

Currently, QR codes are widely utilized in a variety of industries, including payment, shipping, and the industrial Internet of Things. However, during the detection and recognition process, QR code images are frequently impacted by external elements, including recording equipment, light, and filming angle, which causes fuzzy QR codes that cannot be read to provide accurate information. This research presents a quick deblurring technique (Gs-DeblurGANv2) based on lightweight networks to fix the potential blurring issue with QR images in real-world applications. The approach is based on the generative adversarial network concept, where the generative network employs the GhostNet lightweight module as the feature extraction network and introduces the feature pyramid structure, while the addition of the SKNet attention module optimizes the feature extraction from images. In addition, PatchGAN is used as the discriminative network and a dual-scale discriminator for global image and local features is set. Trained and tested under the QR code blurred dataset, the results show that Gs-DeblurGANv2 achieves 25.21 dB and 0.87 PSNR and SSIM for the deblurred images and the original HD images on the test set, and this result is better than previous research methods. The outcomes of the experiments demonstrate that the proposed Gs-DeblurGANv2 can efficiently make use of the feature information of QR code pictures and produce more effective deblurring performance.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10

Similar content being viewed by others

Data availability

The data supporting the findings of this study cannot be made publicly available due to privacy concerns.

References

  1. Liu, Y., Yang, J., Liu, M.: Recognition of QR code with mobile phones. In: 2008 Chinese Control and Decision Conference, pp. 203–206. Yantai, Shandong, IEEE (2008)

  2. Tiwari, S.: An introduction to QR code technology. In: 2016 International Conference on Information Technology (ICIT), pp. 39–44. Bhubaneswar, India, IEEE, (2016)

  3. Belussi, L., Hirata, N.: Fast QR code detection in arbitrarily acquired images. In: 2011 24th SIBGRAPI Conference on Graphics, Patterns and Images, pp. 281–288. Alagoas, Brazil, IEEE (2011)

  4. Munoz-Mejias, D., Gonzalez-Diaz, I., Diaz-de-Maria, F.: A low-complexity pre-processing system for restoring low-quality QR code images. IEEE Trans. Consum. Electron. 57(3), 1320–1328 (2011)

    Article  Google Scholar 

  5. Van Gennip, Y., Athavale, P., Gilles, J., et al.: A regularization approach to blind deblurring and denoising of QR barcodes. IEEE Trans. Image Process. 24(9), 2864–2873 (2015)

    Article  MathSciNet  Google Scholar 

  6. Chen, R., Zheng, Z., Yu, Y., et al.: Fast restoration for out-of-focus blurred images of QR code with edge prior information via image sensing. IEEE Sens. J. 21(16), 18222–18236 (2021)

    Article  Google Scholar 

  7. Shi, Y., He, B., Zhu, M., et al.: Fast linear motion deblurring for 2d barcode. Optik 219, 164902 (2020)

    Article  Google Scholar 

  8. Chen, R., Zheng, Z., Pan, J., et al.: Fast blind deblurring of QR code images based on adaptive scale control. Mob. Netw. Appl. 26(6), 2472–2487 (2021)

    Article  Google Scholar 

  9. Zheng, H., Guo, Z., Liu, C., et al.: Blind deblurring of QR code using intensity and gradient prior of positioning patterns. Vis. Comput. 40, 441–455 (2023)

    Article  Google Scholar 

  10. Pu, H., Fan, M., Yang, J., et al.: Quick response barcode deblurring via doubly convolutional neural network. Multimedia Tools Appl. 78, 897–912 (2019)

    Article  Google Scholar 

  11. Li, J., Zhang, D., Zhou, M.C., et al.: A motion blur QR code identification algorithm based on feature extracting and improved adaptive thresholding. Neurocomputing 493, 351–361 (2022)

    Article  Google Scholar 

  12. Li, J., Hu, B., Cao, Z.: A new QR code recognition method using deblurring and modified local adaptive thresholding techniques. In: 2020 IEEE 16th International Conference on Automation Science and Engineering (CASE), pp. 1269–1274. Hong Kong, China, IEEE (2020)

  13. Zhou, W., Lin, F.: Generate adversarial network based on binary priors and conditions research on image deblurring algorithm of QR code. In: International Conference on Image, Signal Processing, and Pattern Recognition (ISPP 2023), vol. 12707, pp. 1245–1249. Changsha, China, SPIE (2023)

  14. Li, Y., Tofighi, M., Geng, J., et al.: Efficient and interpretable deep blind image deblurring via algorithm unrolling. IEEE Trans. Comput. Imaging 6, 666–681 (2020)

    Article  MathSciNet  Google Scholar 

  15. Cho, S.J., Ji, S.W., Hong, J.P., et al.: Rethinking coarse-to-fine approach in single image deblurring. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4641–4650. IEEE (2021)

  16. Jain, V., Jain, Y., Dhingra, H., et al.: A systematic literature review on QR code detection and pre-processing. Int. J. Tech. Phys. Probl. Eng. 13(46), 111–119 (2021)

    Google Scholar 

  17. Kupyn, O., Budzan, V., Mykhailych, M., et al.: Deblurgan: blind motion deblurring using conditional adversarial networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 8183–8192. Salt Lake City, USA, IEEE (2018)

  18. Wang, B., Xu, J., Zhang, J., et al.: Motion deblur of QR code based on generative adversative network. In: Proceedings of the 2019 2nd International Conference on Algorithms, Computing and Artificial Intelligence, pp. 166–170. Sanya China, Association for Computing Machinery (2019)

  19. Kupyn, O., Martyniuk, T., Wu, J., et al.: DeblurGANv2: deblurring (orders-of-magnitude) faster and better. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 8878–8887. Seoul, South Korea, IEEE (2019)

  20. Wang, C., Guevara, N., Caragea, D.: Using deep learning to improve detection and decoding of barcodes. In: 2022 IEEE International Conference on Image Processing (ICIP), pp. 1576–1580. Bordeaux, France, IEEE (2022)

  21. Mei, Y., Fan, Y., Zhang, Y., et al.: Pyramid attention networks for image restoration. Preprint at arXiv:2004.13824 (2020)

  22. Isola, P., Zhu, J.Y., Zhou, T., et al.: Image-to-image translation with conditional adversarial networks. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1125–1134. San Juan, Argentina, IEEE (2017)

  23. Durgadevi, M. Generative Adversarial Network (GAN): a general review on different variants of GAN and applications. In: 2021 6th International Conference on Communication and Electronics Systems (ICCES), pp. 1–8. Coimbatore, India, IEEE (2021)

  24. Mi, Q., Xiao, Y., Cai, Z., et al.: The effectiveness of data augmentation in code readability classification. Inf. Softw. Technol. 129, 106378 (2021)

    Article  Google Scholar 

  25. Han, K., Wang, Y., Tian, Q., et al.: Ghostnet: more features from cheap operations. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1580–1589. IEEE (2020)

  26. Wu, W., Zhang, Y., Wang, D., et al.: SK-Net: deep learning on point cloud via end-to-end discovery of spatial keypoints: In: Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34(04), pp. 6422–6429. New York, USA, AAAI (2020)

  27. Fukui, H., Hirakawa, T., Yamashita, T., et al.: Attention branch network: learning of attention mechanism for visual explanation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10705–10714. Long Beach, USA, IEEE (2019)

  28. Hore, A., Ziou, D.: Image quality metrics: PSNR vs. SSIM. In: 2010 20th International Conference on Pattern Recognition, pp. 2366–2369. Istanbul, Turkey, IEEE (2010)

  29. Yu, D., Li, X., Zhang, C., et al.: Towards accurate scene text recognition with semantic reasoning networks. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12113–12122. IEEE (2020)

  30. Mei, J., Wu, Z., Chen, X., et al.: Deepdeblur: text image recovery from blur to sharp. Multimedia Tools Appl 78, 18869–18885 (2019)

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported by 2022 Jiangsu Provincial Postgraduate Research and Innovation Program (KYCX22_0921).

Author information

Authors and Affiliations

Authors

Contributions

Wencheng Gu and Kexue Sun wrote the main manuscript text and Zhipeng Jiang and Li Sun prepared charts and some experiments. All authors reviewed the manuscript.

Corresponding author

Correspondence to Kexue Sun.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Communicated by C. Yan.

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Gu, W., Sun, K., Jiang, Z. et al. Gs-DeblurGANv2: a QR code deblurring algorithm based on lightweight network structure. Multimedia Systems 30, 87 (2024). https://doi.org/10.1007/s00530-024-01292-1

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s00530-024-01292-1

Keywords

Navigation