The invention relates to a method for determining the exact centre of a coin introduced into a coin acceptor unit according to the preamble of the main claim.
A method for detecting coins is known from WO 2004/075124 A1, in which the image of a coin is recorded by an image sensor. In order to determine the size of the recording region, i.e. the overlapping region of the image sensor by the coin, the diameter of the coin is determined by scanning the vertex by means of a column of the image sensor. In the known prior art, the speed is calculated by scanning the front edge on a line in the centre of the coin in order to determine in addition the time. At the overlapping region, the image of the coin is recorded, recognition of the embossing or pattern being implemented in a further processing step. This pattern recognition is based on analysis of a transformed image of the coin in which the circular area or approximate circular area of the coin is developed by 360° around the centre. It is thereby important that the exact centre is known since an imprecise definition of the centre directly affects the reproducibility of the mentioned evaluation process. It has been shown that the detection of the centre corresponding to the mentioned prior art is not sufficiently exact.
The object therefore underlying the invention is to produce a method for determining the exact centre of a coin introduced into a coin acceptor unit, which, starting from detection of the probable centre corresponding to the known state of the art, determines the exact centre without particularly great evaluation complexity.
This object is achieved according to the invention by the characterising features of the main claim in conjunction with the features of the preamble.
Advantageous developments and improvements are possible as a result of the measures indicated in the sub-claims.
As a result of the fact that a development of the edge region of the coin is undertaken around the probable centre and beyond the probable edge thereof, an image of the edge as an at least approximately sinusoidal line is produced upon displacement of the probable centre to the exact centre, the exact centre being able to be determined from the analysis of the at least approximately sinusoidal line using the amplitude and the phase angle of a chosen starting point. Therefore with low computing complexity, the precise determination of the centre can therefore be undertaken by a reduced transformation of the edge region beyond the probable edge.
Advantageously, the size of the deviation or of the offset between probable centre and exact centre is determined from the difference of the greatest and smallest amplitude, the phase angle of the offset is determined as the average of the phase angle of the greatest amplitude and of the phase angle of the counter-direction to the smallest amplitude. The exact radius of the coin is determined as the sum of the inner radius of the edge region and the average of the smallest and greatest amplitude.
The size of the deviation or of the offset and the direction of the offset can also be determined in other ways, if necessary the quality of the sinusoidal line having an influence.
For example, the phase angle can be determined by determining the location of the greatest or the smallest amplitude, the size of the deviation can be determined from the difference of the greatest amplitude at a given phase angle and the amplitude determined at a phase angle of −90° or +90° to the phase angle of the maximum or of the minimum. The exact radius of the coin can be determined as the sum of the inner radius of the edge region and of the amplitude at a phase angle of −90° or +90° to the phase angle of the location of the maximum amplitude.
It is possible to determine the centre with only a part of the image, e.g. with only the upper half of the imaged coin in order to save time for transmission of the image data. The transformed development is thereby only half of the sine function.
Advantageously, the method according to the invention can be applied also in the case of coins with corners or undulations, the sinusoidal line of the edge of the coin and a curve overlapping, the period of said curve representing the number of corners or undulations or the amplitude thereof for the depth of the corners or undulations.
The size of the deviation, the phase angle and the number of undulations or corners of a coin can thereby be determined for example by a Fourier transform of the transformed edge line.
Basically the inventive idea resides in the fact that an essentially sinusoidal curve is produced with the help of a polar transformation from an edge line of the coin, with the analysis of which the centre of the coin is determined in a rapid and exact manner. In addition to the already indicated methods, other known methods can be used to determine the parameters of the edge line.
In addition to the exact calculation form, approximations can be used which provide adequate results for the boundary conditions given by the respective application, such as reproducibility in series production and the like.
Other aspects, features, and advantages of the present invention will be apparent to one skilled in the art from the description herein taken in conjunction with the accompanying drawings.
The method according to the invention is explained in more detail in the subsequent description with reference to the drawing. There are shown
As was described already with respect to the state of the art of WO 2004/075124, the disclosure content of which is intended to be a component of the application, the centre or the diameter can be determined by the method disclosed there. However the diameter or the centre can also be found by light barriers and sensors. This determination is however not exact enough for pattern recognition by means of image recording and developing the circular area over 360° around the centre, i.e. for a polar transformation. Therefore this centre is described as probable centre. The centre which is actually present during recording of the coin by an image sensor is described as exact centre.
In
In
R
1
<R
O
−ΔR
max and R2>RO+ΔRmax
ΔRmax is thereby the sum of the maximum possible errors when determining the probable centre δRmax and when determining the probable radius of the coin dRmax:
ΔRmax=δRmax+dRmax
In the case of correspondence of the probable and the exact centre, the edge of the coin 1, in the transformed representation, produces a straight line 4 corresponding to
With reference to
An equation for the distance from the centre of the transformation r1 (ordinate in the transformed coordinate system of the images
r
1=√{square root over (r02d2+2dr0 cos φ0)}
If it is assumed that the offset between the transformation centre O1 and the centre of the coin O0 is much smaller than the radius of the coin r0 (d<<r0), then the difference between the phase angles is also small:
φ1≈φ0
The above equation can be transformed as follows:
or if only variations of the distance are considered
r
1−r0≈d cos φ1
It is thus clear that, at least in the case of a small offset between the centre of the coin and the centre of the transformation in comparison with the radius of the coin, variations in the edge line in the transformed image by a value r0 can be described in fact with a sine function (or cosine function).
However the greater the offset between the centres, the further the edge curve deviates from a sine function. From illustration
According to a development which is effected in the clockwise direction and begins with a starting phase angle which is Φ=0°, the amplitude is examined for the sinusoidal line with reference to
From the ordinate of the maximum Amax, the ordinate of the minimum Amin and the phase angles thereof, both the exact radius RM of the coin and the size of the deviation or of the offset of the probable centre from the exact centre δR and the phase angle δΦ of the offset can be calculated in order to bring the centre of the transformation into the exact centre of the coin.
Φ′min being the phase angle in the counter-direction to the minimum. With reference to
The method according to the invention can also be applied with coins which have a non-round contour but are provided with corners or undulations. Such a coin is represented for example in
In
For determination of the number of undulations, the depth T thereof and the period P, the current edge line (
As an example, method steps are intended to be cited in the following in order to calculate the exact centre and exact radius of an introduced coin:
a) Original image of a coin is subjected to a polar transformation, previous knowledge with respect to probable radius and centre of the coin being thereby used to delimit the transformation region. In practice, it is possible to convert the relevant regions around the edge line of the coin on an original image of the size 400×600 pixels into a transformed image of the size approx. 40×60 pixels (i.e. reduction of the data quantity by the factor 100) which nevertheless contains all the relevant information.
b) In the transformed image, the edge line is sought, the position of the first maximum which exceeds a prescribed threshold (background) is recorded for this for example in each column from top to bottom.
c) Edge line is cleaned (freak values deleted) and balanced. In order to record undulations and corners of the edge in the case of “angular” coins (FIGS. 3+4), two different adjusted copies of the edge line are produced. For example an adjusted edge curve can be produced by a one-dimensional average value filter of the size 3 pixels, and a further copy of the edge curve by a substantially greater average value filter (e.g. of the size 15 pixels). Then by comparison of the slightly and greatly adjusted edge lines, the information about the number and form of the corners can be obtained (see illustrations FIGS. 3+4).
d) Maximum and minimum of the adjusted edge line are calculated and then the sought parameters (centre and radius) are found.
Points b) and c) can be produced with different known methods, therefore they are not dealt with in more detail.
Although the invention herein has been described with reference to particular embodiments, it is to be understood that these embodiments are merely illustrative of the principles and applications of the present invention. It is therefore to be understood that numerous modifications may be made to the illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
102005006018.8 | Feb 2005 | DE | national |
PCT/EP2006/001122 | Feb 2006 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP06/01122 | 2/3/2006 | WO | 00 | 10/11/2007 |