Skip to main content

New Benchmarks for Barcode Detection Using Both Synthetic and Real Data

  • Conference paper
  • First Online:
Document Analysis Systems (DAS 2020)

Abstract

Given the wide use of barcodes, there is a growing demand for their efficient detection and recognition. However, the existing publicly available datasets are insufficient and of poor quality. Moreover, recently proposed approaches were trained on different private datasets, which makes the comparison of proposed methods even more unfair. In this paper, we propose a simple yet efficient technique to generate realistic datasets for barcode detection problem. Using the proposed method, we synthesized a dataset of \(\sim \)30,000 barcodes that closely resembles real barcode data distribution in terms of size, location, and number of barcodes on an image. The dataset contains a large number of different barcode types (Code128, EAN13, DataMatrix, Aztec, QR, and many more). We also provide a new real test dataset of 921 images, containing both document scans and in-the-wild photos, which is much more challenging and diverse compared to existing benchmarks. These new datasets allow a fairer comparison of existing barcode detection approaches. We benchmarked several deep learning techniques on our datasets and discuss the results. Our code and datasets are available at https://github.com/abbyy/barcode_detection_benchmark.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Creusot, C., Munawar, A.: Real-time barcode detection in the wild. In: 2015 IEEE Winter Conference on Applications of Computer Vision, pp. 239–245, January 2015. https://doi.org/10.1109/WACV.2015.39

  2. Creusot, C., Munawar, A.: Low-computation egocentric barcode detector for the blind. In: IEEE International Conference on Image Processing (ICIP), pp. 2856–2860, September 2016. https://doi.org/10.1109/ICIP.2016.7532881

  3. Gallo, O., Manduchi, R.: Reading 1D barcodes with mobile phones using deformable templates. IEEE Trans. Pattern Anal. Mach. Intell. 33, 1834–1843 (2011)

    Article  Google Scholar 

  4. He, K., Girshick, R., Dollar, P.: Rethinking imagenet pre-training. In: The IEEE International Conference on Computer Vision (ICCV), October 2019

    Google Scholar 

  5. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2016

    Google Scholar 

  6. Iglovikov, V.I., Seferbekov, S., Buslaev, A.V., Shvets, A.: TernausNetV2: fully convolutional network for instance segmentation (2018)

    Google Scholar 

  7. Katona, M., Nyúl, L.G.: Efficient 1D and 2D Barcode detection using mathematical morphology. In: Hendriks, C.L.L., Borgefors, G., Strand, R. (eds.) ISMM 2013. LNCS, vol. 7883, pp. 464–475. Springer, Heidelberg (2013). https://doi.org/10.1007/978-3-642-38294-9_39

    Chapter  MATH  Google Scholar 

  8. Hansen, D.K., Nasrollahi, K., Rasmusen, C.B., Moeslund, T.: Real-time barcode detection and classification using deep learning, pp. 321–327, January 2017. https://doi.org/10.5220/0006508203210327

  9. Namane, A., Arezki, M.: Fast real time 1D barcode detection from webcam images using the bars detection method, July 2017

    Google Scholar 

  10. Ohbuchi, E., Hanaizumi, H., Hock, L.A.: Barcode readers using the camera device in mobile phones. In: International Conference on Cyberworlds, pp. 260–265, November 2004. https://doi.org/10.1109/CW.2004.23

  11. Redmon, J., Farhadi, A.: YOLO9000: better, faster, stronger (2016)

    Google Scholar 

  12. Ronneberger, O., Fischer, P., Brox, T.: U-net: convolutional networks for biomedical image segmentation. ArXiv abs/1505.04597 (2015)

    Google Scholar 

  13. Sörös, G., Flörkemeier, C.: Blur-resistant joint 1D and 2D barcode localization for smartphones. In: Proceedings of the 12th International Conference on Mobile and Ubiquitous Multimedia, MUM 2013, pp. 11:1–11:8. ACM, New York (2013). https://doi.org/10.1145/2541831.2541844

  14. Zamberletti, A., Gallo, I., Albertini, S.: Robust angle invariant 1d barcode detection. In: 2013 2nd IAPR Asian Conference on Pattern Recognition, pp. 160–164, November 2013. https://doi.org/10.1109/ACPR.2013.17

  15. Zhao, Q., Ni, F., Song, Y., Wang, Y., Tang, Z.: Deep dual pyramid network for barcode segmentation using barcode-30k database (2018)

    Google Scholar 

  16. Zharikov, I., Nikitin, F., Vasiliev, I., Dokholyan, V.: DDI-100: dataset for text detection and recognition (2019)

    Google Scholar 

  17. Zharkov, A., Zagaynov, I.: Universal barcode detector via semantic segmentation. In: 15th International Conference on Document Analysis and Recognition (ICDAR), Sydney, Australia, pp. 837–843, September 2019. https://doi.org/10.1109/ICDAR.2019.00139

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Andrey Zharkov .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Zharkov, A., Vavilin, A., Zagaynov, I. (2020). New Benchmarks for Barcode Detection Using Both Synthetic and Real Data. In: Bai, X., Karatzas, D., Lopresti, D. (eds) Document Analysis Systems. DAS 2020. Lecture Notes in Computer Science(), vol 12116. Springer, Cham. https://doi.org/10.1007/978-3-030-57058-3_34

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-57058-3_34

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-57057-6

  • Online ISBN: 978-3-030-57058-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics