0
0.2
0.4
0.6
0.8
1
0 2 4 6 8 10 12 14 16 18 20
precision
hit rate
Figure 11: Performance of the FIS on sparse data. Values
of the x axis mean that only every n-th pixel is read with
respect to rows and columns.
ing large sampling factor is considered unreliable in
general. Furthermore, chosen block size gives an up-
per limit to sampling, since calculation of the FIS in-
put attributes are based on statistics and therefore re-
quire tens of pixels for each block. In order to stabi-
lize the FIS output by region compactness, we could
take adjacent blocks into consideration. To avoid
large increase of computation time, evaluation of this
condition is recommended to be performed outside
the FIS, in the feature matrix. Small “holes” of the
matrix, values surrounded by blocks of high values,
are likely to be false negatives. Similarly, “lonely”
blocks of high value can be safely zeroed out, since
they probably do not participate in any QR code can-
didate. Morphological filtering, or as a simpler opera-
tion, median filtering are suitable for this task (Fig. 7).
In most cases, the latter seems sufficient according to
experimental results, however, using morphology at
this step is also acceptable, since the size of the fea-
ture matrix is only a small fraction of that of the orig-
inal input image.
4 CONCLUDING REMARKS
In this paper, we have shown that Fuzzy Inference
Systems can be used to rapidly localize QR codes in
the image domain. We have examined efficiency of
Fuzzy Inference Systems that has membership func-
tions created by preliminary assumptions based on
statistics of a few sample images of the expected sce-
nario. For industrial setups, making this assumption
is easy, since variability of the content is smaller. For
smartphone applications, parameters can be tuned us-
ing camera properties. Performance has been evalu-
ated on public test image sets.
Block size and amount of overlap has also been
evaluated, thus giving information about the robust-
ness of the approach. FIS can be replaced by lookup
tables that leads to constant-time evaluation. Calcu-
lation of the input features can be further accelerated
using approximations with only a subset of intensity
values. These properties can make FIS-based local-
ization a preferred choice over other algorithms.
The proposed algorithm can also be used to effi-
ciently localize other popular two-dimensional code
types as well, like Aztec codes or Data matrix codes,
without major modification.
ACKNOWLEDGEMENT
This publication is supported by the European Union
and co-funded by the European Social Fund. Project
title: Telemedicine-oriented research activities in
the fields of mathematics, informatics and medi-
cal sciences. Project number: T
´
AMOP-4.2.2.A-
11/1/KONV-2012-0073.
REFERENCES
Belussi, L. F. F. and Hirata, N. S. T. (2011). Fast QR code
detection in arbitrarily acquired images. In Graphics,
Patterns and Images (Sibgrapi), 2011 24th SIBGRAPI
Conference on, pages 281–288.
Bodn
´
ar, P. and Ny
´
ul, L. G. (2012). Improving barcode de-
tection with combination of simple detectors. In The
8th International Conference on Signal Image Tech-
nology (SITIS 2012), pages 300–306.
Bodn
´
ar, P. and Ny
´
ul, L. G. (2013). A novel method for
barcode localization in image domain. In Image Anal-
ysis and Recognition, volume 7950 of Lecture Notes
in Computer Science, pages 189–196.
Chu, C.-H., Yang, D.-N., Pan, Y.-L., and Chen, M.-S.
(2011). Stabilization and extraction of 2D barcodes
for camera phones. Multimedia Systems, 17:113–133.
Dubsk
´
a, M., Herout, A., and Havel, J. (2013). Real-time
precise detection of regular grids and matrix codes.
Journal of Real-Time Image Processing, pages 1–8.
Lin, D.-T. and Lin, C.-L. (2013). Automatic location
for multi-symbology and multiple 1D and 2D bar-
codes. Journal of Marine Science and Technology,
21(6):663–668.
Lindeberg, T. (1993). Scale-space theory in computer vi-
sion. Springer.
Ohbuchi, E., Hanaizumi, H., and Hock, L. A. (2004).
Barcode readers using the camera device in mobile
phones. In Cyberworlds, 2004 International Confer-
ence on, pages 260–265.
Rubner, Y., Tomasi, C., and Guibas, L. J. (2000). The earth
mover’s distance as a metric for image retrieval. Inter-
national Journal of Computer Vision, 40(2):99–121.
S
¨
or
¨
os, G. and Fl
¨
orkemeier, C. (2013). Blur-resistant joint
1D and 2D barcode localization for smartphones. In
Proceedings of the 12th International Conference on
Mobile and Ubiquitous Multimedia, MUM ’13, pages
11:1–11:8, New York, NY, USA. ACM.
Swain, M. J. and Ballard, D. H. (1991). Color indexing. Int.
J. Comput. Vision, 7(1):11–32.
VISAPP2015-InternationalConferenceonComputerVisionTheoryandApplications
352