<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Testing a Banknote Checking System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Bernhard Blaschitz</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Daniel Soukup</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Harald Penz</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Reinhold Huber-Mo¨ rk</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Digital Safety &amp; Security Department, AIT Austrian Institute of Technology GmbH</institution>
          ,
          <addr-line>Donau-City-Straße 1, 1220 Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We present our work in progress in the direction of generating realistic, challenging and diverse test data in order to evaluate a banknote checking system. Test image generation can be divided into, firstly, the design and composition of highly diverse patterns to form the digital design of a banknote, secondly, the application of different variations which are caused by ink, paper and physically printing the note and, thirdly, the simulation of the subsequent image acquisition, which includes variations due to banknote transport, illumination, camera optics and electronics. These simulations are based on and compared to scans of demo banknotes. We present initial results in simulation of banknote paper, printing and image acquisition. We demonstrate the approach in an initial investigation on synthetic defect generation and its impact on banknote checking results. Algorithmic validation of checking routines is also demonstrated. First conclusions are drawn and further work is discussed.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        High quality standards in banknote production are commonly
achieved by optical inspection systems. As large numbers of
banknotes are printed each year, e.g. 8 billion notes in Eurosystem in
2014, the quality inspection system has to run at high speed. Please
note that counterfeit detection is not an issue for our work. The
variety of printing processes, e.g. intaglio and offset printing [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], and
security features complicates the inspection system. Additional
variations are introduced by different printing presses as well as
variation in banknote paper etc. Finally, the image acquisition process
itself also introduces variations. The common approach in optical
banknote inspection is to define a set of so called fit banknotes to be
accepted by the banknote inspection system, i.e. the system is trained
on these. Any significant deviation from this set renders a banknote
unfit [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>
        In this paper we present our work in progress in the direction of
generating realistic, challenging and diverse test data [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] in order to
evaluate a banknote checking system. For this, a software framework
has been set up with two main goals in mind. Firstly, to evaluate
the results of banknote checking systems when certain defects are
applied to its input images and, secondly, to experiment with and
improve on existing algorithms. Fig. 1 shows the components of the
presented test system for banknote checking.
      </p>
      <p>This paper is organized as follows. Sec. 2 introduces our modular
approach to generate test data. Some use cases of our tool are
discussed in Sec. 3, and Sec. 4 summarizes the state of the work and
suggests future work.</p>
      <sec id="sec-1-1">
        <title>Paper,</title>
      </sec>
      <sec id="sec-1-2">
        <title>Printing,</title>
      </sec>
      <sec id="sec-1-3">
        <title>Printing Defects</title>
      </sec>
      <sec id="sec-1-4">
        <title>Transport,</title>
      </sec>
      <sec id="sec-1-5">
        <title>Illumi</title>
        <p>nation,</p>
      </sec>
      <sec id="sec-1-6">
        <title>Camera Optics</title>
      </sec>
      <sec id="sec-1-7">
        <title>Generate print patterns</title>
      </sec>
      <sec id="sec-1-8">
        <title>Simulate paper and printing</title>
      </sec>
      <sec id="sec-1-9">
        <title>Simulate image acquisition</title>
      </sec>
      <sec id="sec-1-10">
        <title>Banknote checking system</title>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Test Data Generation</title>
      <p>The central aspect of this work is to generate realistic, challenging
and diverse test data that is then entered into the banknote checking
system.</p>
      <p>Test image generation can be divided into
1. the design and composition of patterns to form the digital design
of a banknote with a high variability, which will be presented in
Sec. 2.1,
2. application of different variations which are caused by physically
printing the note, which usually happens in different phases and
includes variabilities due to paper, ink and the press itself, see
Sec. 2.2 and
3. image acquisition, which includes transport, (varying)
illumination conditions and camera optics and electronics, as well as the
sensing itself, see Sec. 2.3.</p>
      <p>The banknote checking system receives digital images of a
banknote as an input, performs several tests and returns a fit/unfit
decision. With the aid of this work, we can evaluate and improve existing
algorithms, see Sec. 3.
2.1</p>
    </sec>
    <sec id="sec-3">
      <title>Pattern Generation</title>
      <p>
        In order to have test images, whose print and acquisition could be
simulated, a set of exemplary patterns was developed. Our print
patterns are subdivided into tiles. The reference image in Fig. 2 mimic
especially high-resolution features of intaglio printing [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], e.g.
Guilloche patterns. Some tiles with extreme artificial test patterns are also
included.
      </p>
      <p>
        The considered resolution is 0.2 mm/pixel (127 dpi), which is
typical for current banknote checking systems [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. However, the
reference images (see Fig. 2) are designed in eightfold precision, that
is 0.025 mm/pixel (1016 dpi), which allows for introducing errors in
sub-pixel accuracy and simulating aliasing and other digitizing
problems. The high resolution images are rotated in the range from 5
to +5 with an interval of 0:05 and (separately) shifted by 0 to 15
pixels in x- and y-direction with an interval of 1 pixel (0.025 mm).
The reason for using the range of 0 to 15 pixels for shifting is that
this covers the range of 2 pixel in the considered resolution. These 2
pixels are advisable because of a following down-sampling step.
To derive a realistic model of all the different factors that cause
prints to look differently, we took a reverse engineering approach
and scanned the front and back side of 110 demo banknotes at a
resolution of 1016 dpi with a standard Epson scanner, see Fig. 3.
      </p>
      <p>We then cut out blank banknote regions; the average pixel value
in a blank region of a banknote (”allonge”) allows for calibrating the
color values. After subtracting this average, the remaining deviations
show how inhomogeneous white paper is.</p>
      <p>
        The material shows a certain ”cloudiness” that can be seen when the
contrast in the gray value image is enlarged (see Fig. 4, top). This
behavior can be quantified using a set of co-occurrence matrices [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
From the 110 scanned images, which show quite some variety, we
generate an even larger number by taking convex combinations of
these and then use the texture synthesis algorithm of [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] to generate
new synthetic paper images (see Fig. 4, bottom).
      </p>
      <p>We plan to do the same with printed regions of the banknote scans
in order to receive a model for color variations.
2.3</p>
    </sec>
    <sec id="sec-4">
      <title>Simulating Image Acquisition</title>
      <p>
        There is a number of effects that have to be considered when
modeling the image acquisition process [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ]. Besides of optical effects
e.g. focus, lens distortions, and lens aberrations, there are further
effects caused by the camera chip like camera-noise, dynamic range,
quantization, integration over the pixel area and, as the case may be,
demosaicing. Also illumination variations – e.g. caused by aging of
illumination units – influence the appearance of images. Moreover,
as banknotes are often acquired in a line-scan inspection process,
distortions caused by the transport play a crucial role.
      </p>
      <p>
        We started modeling the image sharpness given a certain camera
and optics. The image sharpness results from the lens’ sharpness
combined with the pixel resolution of the camera chip and
possible transport blur. Measuring the sharpness of an image is done by
means of the slanted edge method [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] for digital camera and scanner
analysis. The slanted edges are sharp black/white edges on a
calibration chart (Fig. 5). In the camera image that edge appears blurred due
to the mentioned effects. By measuring the blur of the edge within
the image perpendicular to the edge itself, one can derive the
spatial resolution, i.e. sharpness, of the camera system. A robust edge
spread function (ESF) measurement can be obtained by combining a
number of measurements along an edge.
      </p>
      <p>The calibration sheet image, artificially generated in
highresolution, is blurred with a number of different Gaussian kernels.
Each blurred image is down-sampled to target resolution and the
result’s sharpness is measured in horizontal and vertical directions.
Those measures are compared with the measured sharpness values
from the camera system’s image. The chosen Gauss-Kernel is the
one resulting in the smallest sharpness difference. By means of that
identified blurring kernel it is possible to simulate the sharpness of
the target camera system for arbitrary patterns, artificially generated
or scanned ones.</p>
      <p>Additionally we modeled the camera noise, as this effect can be
relatively easily measured for the real camera system. A noise pattern
comprising the same statistical data was then be generated and added
to modeled target images.
3</p>
    </sec>
    <sec id="sec-5">
      <title>Testing the Banknote Checking System</title>
      <p>With the synthetic images of Sec. 2, we carried out experiments for
the two main goals of our testing software, namely evaluate banknote
checking systems and experiment with inspection algorithms.
3.1</p>
    </sec>
    <sec id="sec-6">
      <title>Evaluating the System with Synthetic Data</title>
      <p>We placed 8 16 = 128 exemplary defects in form of red dots on our
synthetic banknote, see Fig. 6, top. This was done at high resolution,
where each dot has a diameter of 48 pixels (1.2 mm). The red dots in
the top row have sharp edges. The sharpness decreases from top to
bottom. The blending factor decreases for each column from = 1
on the left to = 1=16 on the right.</p>
      <p>The banknote checking system was trained using 456 synthetic
generated banknotes (256 translations and 200 rotations) with added
random noise. The banknote with the added red dot defects was then
checked resulting in Fig. 6, bottom. The red and green markings show
found defects. Each severe defects (red marking) alone would be
sufficient to classify the banknote as unfit. Moderate defects (green
marking) are acceptable if there number is not too big.
The camera resolution is 0.2 mm/pixel, but in our inspection system
the pixel by pixel inspection is done in 0.4 mm/pixel. The images are
warped (rectification to compensate shifts and rotations) and reduced
to this resolution. The reduction is done by applying a smoothing
filter and selecting every second pixel (we call this shrinking). We
have therefore the steps warp, smooth and shrink. It is inevitable to
smooth before shrinking but it is not that clear when warping should
be done. It has been suspected that it is best to warp first. We verified
this with our test system.</p>
      <p>The currently checking system is heavily adopted and optimized to
specialized hardware. We have therefore reimplemented some parts
of the inspection process in our simulation. This code is less
efficient but much more flexible. It was then easy to test different orders
of warp, smooth and shrink. The results are presented in Fig. 7. It
shows pixel by pixel the gaps between lowest and highest intensity
values in the training set. Large differences (dark pixels in Fig. 7)
indicate wide ranges of allowed pixel values which means less sensible
inspection. It can be observed that is best to warp first (Fig. 7 (e) and
(f)). But it is acceptable to warp between smoothing and shrinking.
This may not look very appropriate but can help to optimize
runtime when warping (pixel interpolation) is computational expensive
with the used hardware. The gray backgrounds in the images on the
right side of Fig. 7 are caused by the artificial noise added to the test
images.
4</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusions &amp; Future Work</title>
      <p>As most of this paper is work-in-progress, only preliminary results
in test data validation could be presented here. However, it could
be shown that banknote checking systems can be benchmarked
with simulated printing defects using synthetic data. Furthermore,
an evaluation for the order in which specific steps of the checking
system should be applied, was carried out.</p>
      <p>Aside from implementing missing steps that were already
described in the previous sections, we plan
1. to carry out the whole testing with synthetic color images and to
inspect the color of the print itself,
2. to use more realistic printing defects like blank spots/streaks,
blade streaks or hickeys and
3. to investigate relative shifts of the printing plates, i.e. incorporate
different printing phases and the alignment of the printing plate
w.r.t. the paper sheet.
(a) kimagek = 34:5
(b) kimagek = 62:5
(c) kimagek = 12:5
(d) kimagek = 44:0
(e) kimagek = 9:5
(f) kimagek = 43:3</p>
    </sec>
    <sec id="sec-8">
      <title>ACKNOWLEDGEMENTS</title>
      <p>We thank Oesterreichische Banknoten und Sicherheitsdruckerei
(OeBS) for providing the demo banknotes.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Kevin</given-names>
            <surname>Bowyer</surname>
          </string-name>
          and
          <string-name>
            <given-names>P Jonathon</given-names>
            <surname>Phillips</surname>
          </string-name>
          ,
          <article-title>Empirical evaluation techniques in computer vision</article-title>
          , IEEE Computer Society Press,
          <year>1998</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Peter</surname>
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Burns</surname>
          </string-name>
          , '
          <article-title>Slanted-edge MTF for digital camera and scanner analysis</article-title>
          .',
          <source>in Proc. of PICS</source>
          , pp.
          <fpage>135</fpage>
          -
          <lpage>138</lpage>
          . IS&amp;T, (
          <year>2000</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Alexei</surname>
            <given-names>A Efros</given-names>
          </string-name>
          and
          <article-title>Thomas</article-title>
          K Leung, '
          <article-title>Texture synthesis by nonparametric sampling'</article-title>
          ,
          <source>in Proc. ICCV</source>
          , volume
          <volume>2</volume>
          , pp.
          <fpage>1033</fpage>
          -
          <lpage>1038</lpage>
          . IEEE, (
          <year>1999</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>EMVA.</surname>
          </string-name>
          <article-title>Standard 1288, standard for characterization of image sensors and cameras</article-title>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Robert</surname>
            <given-names>D</given-names>
          </string-name>
          <string-name>
            <surname>Fiete</surname>
          </string-name>
          ,
          <article-title>Modeling the imaging chain of digital cameras</article-title>
          , SPIE, Bellingham,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Jan-Mark</surname>
            <given-names>Geusebroek</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Peter</given-names>
            <surname>Markus</surname>
          </string-name>
          , and Peter Balke, '
          <article-title>Learning banknote fitness for sorting'</article-title>
          ,
          <source>in Proc. of International Conference on Pattern Analysis and Intelligent Robotics (ICPAIR)</source>
          , volume
          <volume>1</volume>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>46</lpage>
          . IEEE, (
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Giesecke</surname>
          </string-name>
          &amp; Devrient, www.gi-de.com/gd_media/media/ en/documents/brochures/processing_1/OBIS-3.pdf,
          <article-title>OBIS 3 - High-resolution Optical Banknote Inspection System for BPS R 2000 OBIS</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Robert</surname>
            <given-names>M Haralick</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Karthikeyan</given-names>
            <surname>Shanmugam</surname>
          </string-name>
          , et al.,
          <article-title>'Textural features for image classification'</article-title>
          ,
          <source>IEEE Transactions on systems, man, and cybernetics</source>
          , (
          <volume>6</volume>
          ),
          <fpage>610</fpage>
          -
          <lpage>621</lpage>
          , (
          <year>1973</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>J.</given-names>
            <surname>Hofmann</surname>
          </string-name>
          , E. Gillich, H. Do¨rksen, D. Chassot, Th. Tu¨rke, and
          <string-name>
            <given-names>V.</given-names>
            <surname>Lohweg</surname>
          </string-name>
          , '
          <article-title>New strategies in image processing for standardized intaglio quality analysis in the printing process'</article-title>
          ,
          <source>in Proc. ODS</source>
          , (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>R. L. van Renesse</surname>
          </string-name>
          ,
          <article-title>Optical document security</article-title>
          ,
          <source>Artech House</source>
          , Boston/London, 3rd edn.,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>