The invention relates to a method and apparatus for processing signals, especially signals derived from testing a document, such as banknotes or other similar value sheets, or currency items.
Known methods of testing currency items such as banknotes and coins involve sensing characteristics of the currency item and then using the signals derived from the sensing. For example, it is known to test banknotes by emitting light from light sources towards a banknote and sensing light reflected or transmitted from the banknote using light sensors. Signals derived from the light sensors are processed and used to determine, for example, what denomination the banknote is and whether or not it is genuine.
A problem with prior art systems is accessing the sensed items to a high enough resolution, bearing in mind the size, spacing and arrangement of the sensors. For example, it may be desired to take a measurement at a specific point on a banknote, but the resolution of the sensors means that only a measurement in the region of the point can be taken. This problem is exacerbated when the document is skewed relative to the sensor array.
Conversely, another problem is that the resolution may be higher than necessary for the specific application, for example, when deciding which is or are the most likely denomination or denominations a banknote belongs to, without testing the validity. This increases the complexity, time and cost of the processing because of the amount of data being handled.
Aspects of the invention are set out in the accompanying claims.
Preferably, the invention is for testing banknotes and/or other types of value sheets.
Generally, the invention provides methods of signal processing in a currency tester in order to change the resolution, of measurements of the currency item, to a higher or lower resolution. In other words, the invention provides methods of varying, increasing or decreasing, the resolution.
In this specification, the term “resolution” is intended to cover resolution in various domains such as spatial resolution (such as the sampling rate or number of measurements per unit length or time) or resolution in a spectral domain, such as the frequency domain (number of spectral components or bandwidth).
Also, the term measurements includes, for example, values output by item sensors and values derived from measured or sensed values.
According to a first preferred aspect, the resolution is increased in the spatial domain, using an interpolation method, related to Nyquist theorem, which allows reconstruction of the signal at positions where there are no measurements, which can improve recognition.
According to a second preferred aspect, the resolution in the frequency domain is decreased with limited loss of useful information, in the context of document recognition, using a filtering method and reduction of the results of a Fourier transform. This enables items, for example, documents of different sizes (eg, different lengths and/or widths) to be handled in a similar manner, especially in a denomination or classification procedure, whilst preserving denomination or classification performance.
The first and second aspects may be combined.
Embodiments of the invention will be described with reference to the accompanying drawings, of which:
A banknote sensing system according to an embodiment of the invention is shown schematically in
In operation, a banknote is transported by the rollers 6, under control of the controller 12, along the transport path between the source and sensor arrays 2, 4. The banknote is transported by a predetermined distance then stopped. All the light sources of one wavelength are operated and, after mixing of the light in the diffuser 14 to spread it uniformly over the width of the banknote, the light impinges on the banknote. Light transmitted through the banknote is sensed by the sensor array 4, and signals are derived from the sensors for each measurement spot on the banknote corresponding to each sensor. Similarly, the light sources of all the other wavelengths are similarly operated in succession, with measurements being derived for the sensors for each wavelength, for the corresponding line.
Next, the rollers 6 are activated to move the banknote again by the predetermined distance and the sequence of illuminating the banknote and taking measurements for each wavelength for each sensor is repeated.
By repeating the above steps across the length of the banknote, line by line, measurements are derived for each of the six wavelengths for each sensor for each line of the banknote, determined by the predetermined distance by which the banknote is moved.
The measured values for the measurement spots are processed by the processor 10 as discussed below.
The resolution of the measured values is determined by the spacing of the sensor elements (here 7 mm) and the shifting of the banknote between each set of measurements (here 1.75 mm).
According to the embodiment, the spatial resolution is increased by processing, as discussed below.
Suppose it is desired to know the value at point A in
In this embodiment, a one-dimensional interpolation is carried out along the width direction (x axis). In the present case, the spacing along the y axis is adequate for practical purposes. Alternatively, an interpolation may be performed in the y direction, as well as or instead of in the x direction.
Firstly, the nearest width line to point A is selected, on the basis of the nearest neighbour in the y direction. The measured values for each of the sensors in the selected line are retrieved.
It is preferred not to alter the measured raw data and accordingly interpolation is performed at spacings which are an integral divisor of the sensor spacings. Here, interpolation is performed for each 1.75 mm, so there are 3 interpolation points between each pair of adjacent measurement spots. As a result, the resolution over the bill in the x-y directions is 1.75×1.75 mm.
According to Nyquist's theorem, a signal can be reconstructed exactly as if it was measured assuming that the highest frequency of the signal is smaller than half of the sampling frequency (0<fmax<fs/2, fs is the sampling frequency).
Assuming that Nyquist's theorem applies, the measured values or samples are interpolated using a cubic convolution by fitting the curve of Sinc(x)=sin(x)/x. Thus, the interpolated value of the signal at the position x is given by:
Where n is the number of samples and Δx is the sampling step. It should be noted that when x is equal to an exact multiple of steps, i.e. when x=k1Δx, the interpolated value is equal to the sampled value.
In other words, the interpolated function passes through the sampling points.
In order to reduce the edge effect due to the oscillation of the Sinc function (Gibbs phenomena), the raw samples are weighted by the Hamming window. The window gives more important weights to the points in the middle of the window and small weights to the points at the edge of the window. These weights are given by:
Where n is the number of samples.
Other type of windows could be used such as the Hanning window or the Kaiser-Bessel window, or other similar known types of weighting window for compensating for edge effects. The choice of the window is a tradeoff between the complexity of the window and its performance of detection of harmonic signal in the presence of noise. In the present case, the Hamming window leads to good frequency selectivity versus side lobe attenuation (Gibbs phenomena).
The window is applied to all points to obtain new samples. Afterwards, the previous cubic convolution interpolation function is applied to these new samples. The result is divided by the value of the window at the x position in order to retrieve the interpolated value at the same level as the original signal.
The mean of the measures is removed before interpolation in order to reduce the effect of the D.C. component in the frequency domain. The mean is then added back after interpolation. The interpolated value of the signal at the position x using the window is given by:
Where n is the number of samples, Δx is the sampling rate and m is the mean of the samples. k·Δx is the position of the samples.
As the interpolation is performed along a horizontal line and due to the skew, the number n varies according to the maximum usable spots along one line that fall entirely in the banknote area. Also the size of the window depends on n. The values of the window can be stored into a lookup table for different values of n.
For instance, if the number of measurements is 8 and the interpolation rate is Δx=4, the window is stored for 0≦h≦(8−1)*4−1.
In this case for example, the reconstruction error defined by the mean of the relative absolute error between the reconstructed bill and the scanned bill without the Hamming window is 11%, and using the Hamming window the error drops to 6%.
The above approach can be used to derive a reconstructed value at a specific point or points for a specific wavelength or wavelengths, for example, points relating to specific security features. Similarly, the method can be used to increase the resolution over specific areas of a banknote. Alternatively, the resolution can be increased over the whole of a banknote, without needing to increase the number of sensors.
The signals derived from the banknote either directly from measurements and/or after processing to increase the resolution, are then used to classify (denominate or validate) the banknote in a known manner. For example, the signals are compared, usually after further processing, with windows, thresholds or boundaries defining valid examples of target denominations. Numerous techniques for processing signals derived from measurements of banknotes to denominate and/or validate the banknote are known, and will not be described further in this specification.
Various other interpolation methods could be used. In a simple example, the signal of the nearest neighbor point is assigned to the desired point. The result of the interpolation method discussed above as an embodiment can also be approximated by performing the interpolation into the frequency domain instead of the time domain. In fact, the convolution with a Sinc function in the time domain corresponds to applying a perfect low pass (LP) filter (cut off frequency Fc=Fs/2) to the Fourier transform and computing the inversion of DFT (discrete Fourier transform) to get the interpolated value. If the Nyquist theorem is respected, this method gives only an approximation that depends on how the inversion of the Fourier transform is approximated.
A second embodiment of the invention will now be described.
The second embodiment involves an apparatus as shown in
This embodiment uses signals derived from the banknote to denominate a banknote, that is, to determine which denomination (or denominations) the banknote is likely to belong to. It is known to use neural networks such as a backpropagation network or an LVQ classifier to denominate banknotes. An example of a neural network for classifying banknotes is described in EP 0671040. In general terms, an n-dimensional feature vector is derived from measurements of characteristics of a banknote, and the feature vector is input to the neural network for classification. Various characteristics and measurements can be used to form the feature vector.
Different denominations of banknotes are usually different sizes (different lengths and/or widths), but the feature vectors input to the neural network are the same dimension for each banknote. Therefore the data forming the feature vector must be independent of the size of the measured banknote but also chosen to contain sufficient information to classify the banknotes accurately.
The present embodiment derives data for input to a neural network, as follows.
Measurements are derived from the sensors 4 for each of a plurality of lines across the transport path for each of a plurality of wavelengths as in the first embodiment. The data is then processed in the processor 10.
The data are collected into lines parallel to the transport path in a given wavelength with a sampling period of 1.75 mm. Then each line is normalized, for example, by dividing by the mean value for the line for the corresponding wavelength. A FFT with 128 coefficients is computed for each normalized line and each wavelength. The points outside the usable part of the banknote are filled with zeros.
As the data are normalized by removing the mean, the first complex value of the Fourier transform is 0. The data for the real and imaginary components from the indexes 1 to 14 (assuming the D.C. index is 0) are selected, which provides 14 complex values. Thus, the resolution in the frequency domain is reduced. For example, for 2 wavelengths and 2 lines along the length, the total of variables is 112 variables. This is the vector given to the neural network for classification. Other numbers of wavelengths and lines can be used, as appropriate.
The Fourier transform is applied to normalized lines defined along the length of the bill in one or more wavelengths. As far as the denomination is concerned, tests have shown that the frequency content can be reduced.
The reconstruction is very close to the original signal, and uses less data than the original signal, showing that the filtering by selecting a subset of the frequency spectrum after a Fourier transform, retains most of the useful information in the signal. This is possible if the sampling in the time space respects the Nyquist theorem, which applies along the length of the bill in this case. As a matter of fact, the sampling rate along the length is very high which is useful for feature security but can be reduced for denomination purpose.
The results of the filtering method using the FFT can also be obtained by applying a Sinc function to the signal in the time domain and perform a time decimation, but this method is more time consuming.
The first and second embodiments may be combined, so that, for example, the resolution is increased in the spatial domain and decreased in the frequency domain. The increased resolution in the spatial domain could be used, for example, for validating a currency item, while the reduced resolution in the frequency domain used for denominating the item. The transform to the frequency domain could be done on the data in the spatial domain after interpolation to increase the resolution. The invention is not limited to the type of sensing system shown and described and any suitable sensing system can be used.
References to banknotes include other similar types of value sheets such as coupons, cheques, and includes genuine and fake examples of such documents. A system may involve the use of means, such as edge-detectors, for detecting the orientation, such as skew and offset of a banknote relative to, eg, the transport direction and/or the sensor array or a fixed point(s). Alternatively, a system may include means for positioning a banknote in a desired orientation, such as with the length of the bill along the transport path with edges parallel to the transport direction, or at a desired angle relative to the transport direction and/or sensor array.
The described embodiments are banknote testers. However, the invention may also be applied to other types of currency testers, such as coin testers. For example, signals from a coin tester taking measurements of coin characteristics, such as material, at a succession of points across a coin may be interpolated to produce a signal representative of the characteristic across the coin.
The term “coin” is employed to mean any coin (whether valid or counterfeit), token, slug, washer, or other metallic object or item, and especially any metallic object or item which could be utilised by an individual in an attempt to operate a coin-operated device or system. A “valid coin” is considered to be an authentic coin, token, or the like, and especially an authentic coin of a monetary system or systems in which or with which a coin-operated device or system is intended to operate and of a denomination which such coin-operated device or system is intended selectively to receive and to treat as an item of value.
Number | Date | Country | Kind |
---|---|---|---|
02254425 | Jun 2002 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/IB03/03456 | 6/24/2003 | WO | 00 | 8/9/2005 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO04/001685 | 12/31/2003 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5444793 | Kelland | Aug 1995 | A |
5479570 | Imagawa et al. | Dec 1995 | A |
5757001 | Burns | May 1998 | A |
5771315 | Matsuyama | Jun 1998 | A |
6084985 | Dolfing et al. | Jul 2000 | A |
6128402 | Jones et al. | Oct 2000 | A |
6157731 | Hu et al. | Dec 2000 | A |
6163618 | Mukai | Dec 2000 | A |
6343138 | Rhoads | Jan 2002 | B1 |
6400833 | Richert | Jun 2002 | B1 |
6438262 | Bernardini et al. | Aug 2002 | B1 |
6459806 | Raterman et al. | Oct 2002 | B1 |
6483576 | Gardner | Nov 2002 | B1 |
6650767 | Jones et al. | Nov 2003 | B2 |
6661910 | Jones et al. | Dec 2003 | B2 |
6724926 | Jones et al. | Apr 2004 | B2 |
6731785 | Mennie et al. | May 2004 | B1 |
6757419 | Ross et al. | Jun 2004 | B1 |
6778693 | Jones et al. | Aug 2004 | B2 |
6819410 | Adameck et al. | Nov 2004 | B2 |
6891180 | Holl et al. | May 2005 | B2 |
6899215 | Baudat et al. | May 2005 | B2 |
7266231 | Christophersen et al. | Sep 2007 | B2 |
7555155 | Levenson et al. | Jun 2009 | B2 |
20020003619 | Ahlers et al. | Jan 2002 | A1 |
20030035565 | Rhoads | Feb 2003 | A1 |
20030117796 | Voser | Jun 2003 | A1 |
20030161523 | Moon et al. | Aug 2003 | A1 |
20040228514 | Houle et al. | Nov 2004 | A1 |
20070278065 | Voser | Dec 2007 | A1 |
20070291993 | Nisper et al. | Dec 2007 | A1 |
Number | Date | Country |
---|---|---|
0671040 | Sep 1995 | EP |
11-154254 | Aug 1999 | JP |
2003-200647 | Jul 2003 | JP |
2003-246134 | Sep 2003 | JP |
WO 9412951 | Jun 1994 | WO |
WO 03061981 | Jul 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20060098859 A1 | May 2006 | US |