Folded bill identification method and device

10319170 ยท 2019-06-11

Assignee

Inventors

Cpc classification

International classification

Abstract

A folded bill recognizing method and a folded bill recognizing device are provided. The folded bill recognizing device includes: a bill input port configured to receive a to-be-recognized bill or a sample bill; a signal collecting module configured to collect a CIS image of the bill, to obtain an infrared transmission image T and an infrared reflection image F; a signal recognizing module configured to recognize whether the to-be-recognized bill has a fold; and a receiving/rejecting module configured to perform a receiving or rejecting operation on the to-be-recognized bill. The device can effectively recognize a folded bill.

Claims

1. A method for recognizing a folded bill, performed by a folded bill recognizing device, comprising: obtaining an infrared transmission image T.sub.s and an infrared reflection image F.sub.s of a to-be-recognized bill; performing high-pass filtering on the infrared transmission image T.sub.s to obtain a high-pass infrared transmission filtering image gT.sub.s; performing low-pass filtering on the infrared transmission image T.sub.s to obtain a low-pass infrared transmission filtering image dT.sub.s; performing high-pass filtering on the infrared reflection image F.sub.s, to obtain a high-pass infrared reflection filtering image gF.sub.s, wherein the high-pass filtering on the infrared reflection image F.sub.s and the low-pass filtering on the infrared transmission image T.sub.s are performed synchronously according to a geometric coordinate mapping relationship; performing low-pass filtering on the infrared reflection image F.sub.s, to obtain a low-pass infrared reflection filtering image dF.sub.s, wherein the low-pass filtering on the infrared reflection image F.sub.s and the high-pass filtering on the infrared transmission image T.sub.s are performed synchronously according to the geometric coordinate mapping relationship; performing a differential operation on the high-pass infrared reflection filtering image gF.sub.s and the low-pass infrared transmission filtering image dT.sub.s to obtain a differential image cFT.sub.s; performing a first characteristic extraction on the high-pass infrared transmission filtering image gT.sub.s by calculating an average gray value gT_G.sub.s of the gT.sub.s as a characteristic value; performing a second characteristic extraction on the low-pass infrared reflection filtering image dF.sub.s by calculating an average gray value dF_G.sub.s of the dF.sub.s as a characteristic value; performing a third characteristic extraction on the differential image cFT.sub.s by calculating an average gray value cFT_G.sub.s of the cFT.sub.s as a characteristic value; substituting the characteristic value gT_G.sub.s, the characteristic value dF_G.sub.s and the characteristic value cFT_G.sub.s respectively into three models y.sub.1,y.sub.2,y.sub.3 for distinguishing folded bills and non-folded bills,
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G)
y.sub.3=f.sub.3(cFT_G)
to obtain
p.sub.1=f.sub.1(gT_G.sub.s);
p.sub.2=f.sub.2(dF_G.sub.s)
p.sub.3=f.sub.3(cFT_G.sub.s); wherein p.sub.1, p.sub.2 and p.sub.3 are confidence levels for determining the to-be-recognized bill as a folded bill; f1, f2 and f3 indicate learnt multi-characteristic classifying probability distribution models; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are all true, the to-be-recognized bill is recognized as a folded bill; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are not all true, the to-be-recognized bill is recognized as a non-folded bill, where T.sub.1, T.sub.2 and T.sub.3 are three confidence level thresholds.

2. The method according to claim 1, wherein the substituting further comprises: assigning different weighted values ,, to p.sub.1, p.sub.2 and p.sub.3, wherein ++=1,0,0,0; and determining a threshold T.sub.s, wherein the bill classifying decision model is: p s = * p 1 + * p 2 + * p 3 , { > T s folded bill T s non - folded bill .

3. The method according to claim 1, further comprising obtaining the three models y.sub.1,y.sub.2,y.sub.3 for distinguishing folded bills and non-folded bills, the obtaining comprising: collecting a certain number of samples of folded bills and non-folded bills; obtaining, for each of the samples, a characteristic value of an average gray value gT_G of a high-pass infrared transmission filtering image gT, a characteristic value of an average gray value dF_G of a low-pass infrared reflection filtering image dF and a characteristic value of an average gray value cFT_G of a differential filtering image cFT; counting the characteristic value of the gT_G, the characteristic value of the dF_G and the characteristic value of the cFT_G respectively, to obtain a probability distribution graph of the gT_G, a probability distribution graph of the dF_G and a probability distribution graph of the cFT_G corresponding to the folded bills as the following formulas:
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G)
y.sub.3=f.sub.3(cFT_G); wherein y.sub.1,y.sub.2,y.sub.3 are the three models for distinguishing folded bills and non-folded bills respectively.

4. The method according to claim 3, wherein a method for obtaining, for each of the samples, the characteristic value of the average gray value gT_G of the high-pass infrared transmission filtering image gT, the characteristic value of the average gray value dF_G of the low-pass infrared reflection filtering image dF and the characteristic value of the average gray value cFT_G of the differential filtering image cFT is the same as the method for obtaining the characteristic value of the average gray value gT_G.sub.s of the high-pass infrared transmission filtering image gT.sub.s, the characteristic value of the average gray value dF_G.sub.s of the low-pass infrared reflection filtering image dF.sub.s and the characteristic value of the average gray value cFT_G.sub.s of the differential filtering image cFT.sub.s of the to-be-recognized bill.

5. The method according to claim 3, wherein a method for obtaining the three models y.sub.1,y.sub.2,y.sub.3 for distinguishing folded bills and non-folded bills comprises: collecting a certain number of samples of folded bills and non-folded bills; obtaining, for each of the samples, a characteristic value of an average gray value gT_G of a high-pass infrared transmission filtering image gT, a characteristic value of an average gray value dF_G of a low-pass infrared reflection filtering image dF and a characteristic value of an average gray value cFT_G of a differential filtering image cFT; counting the characteristic value of the gT_G, the characteristic value of the dF_G and the characteristic value of the cFT_G respectively, to obtain a probability distribution graph of the gT_G, a probability distribution graph of the dF_G and a probability distribution graph of the cFT_G corresponding to the folded bills as the following formulas:
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G);
y.sub.3=f.sub.3(cFT_G); wherein y.sub.1,y.sub.2,y.sub.3 are the three models for distinguishing folded bills and non-folded bills respectively.

6. The method according to claim 5, wherein a method for obtaining, for each of the samples, the characteristic value of the average gray value gT_G of the high-pass infrared transmission filtering image gT, the characteristic value of the average gray value dF_G of the low-pass infrared reflection filtering image dF and the characteristic value of the average gray value cFT_G of the differential filtering image cFT is the same as the method for obtaining the characteristic value of the average gray value gT_G.sub.s of the high-pass infrared transmission filtering image gT.sub.s, the characteristic value of the average gray value dF_G.sub.s of the low-pass infrared reflection filtering image dF.sub.s and the characteristic value of the average gray value cFT_G.sub.s of the differential filtering image cFT.sub.s of the to-be-recognized bill.

7. The method according to claim 1, wherein the method further comprises: prior to performing the high-pass filtering-on the infrared transmission image T.sub.s, calculating a high-pass filter threshold and a low-pass filter threshold for the image signals T.sub.s and F.sub.s by: calculating an average gray value of the T.sub.s as: avG = .Math. i = 1 w * h pix ( i ) / ( w * h ) ; where pix(i) is a gray value corresponding to a pixel of T.sub.s, w is the width of the image signal T.sub.s, h is the height of the image signal T.sub.s; and calculating the high-pass filter threshold corresponding to T.sub.s as T.sub.11=j*avG,1j(255/avG), and the low-pass filter threshold corresponding to T.sub.s as T.sub.22=k*avG,0k1.

8. The method according to claim 7, wherein a calculating model for calculating the average gray value gT_G.sub.s of the gT.sub.s, a calculating model for calculating the average gray value dF_G.sub.s of the dF.sub.s and a calculating model for calculating the average gray value cFT_G.sub.s of the cFT.sub.s are the same as the calculating models for calculating the average gray values of the T.sub.s.

9. A method for recognizing a folded bill, comprising: obtaining an infrared transmission image T.sub.s and an infrared reflection image F.sub.s of a to-be-recognized bill; performing high-pass filtering on the infrared transmission image T.sub.s to obtain a high-pass infrared transmission filtering image gT.sub.s; performing low-pass filtering on the infrared transmission image T.sub.s to obtain a low-pass infrared transmission filtering image dT.sub.s; performing a first characteristic extraction on the high-pass infrared transmission filtering image gT.sub.s by calculating an average gray value gT_G.sub.s of the gT.sub.s as a characteristic value; performing high-pass filtering on the infrared reflection image F.sub.s, to obtain a high-pass infrared reflection filtering image gF.sub.s, wherein the high-pass filtering on the infrared reflection image F.sub.s and the low-pass filtering on the infrared transmission image T.sub.s are performed synchronously according to a geometric coordinate mapping relationship; performing low-pass filtering on the infrared reflection image F.sub.s to obtain a low-pass infrared reflection filtering image dF.sub.s, wherein the low-pass filtering on the infrared reflection image F.sub.s and the high-pass filtering on the infrared transmission image T.sub.s are performed synchronously according to the geometric coordinate mapping relationship; performing a second characteristic extraction on the low-pass infrared reflection filtering image dF.sub.s by calculating an average gray value dF_G.sub.s of the dF.sub.s as a characteristic value; performing a differential operation on the high-pass infrared reflection filtering image gF.sub.s and the low-pass infrared transmission filtering image dT.sub.s to obtain a differential image cFT.sub.s; performing a third characteristic extraction on the differential image cFT.sub.s by calculating an average gray value cFT_G.sub.s of the cFT.sub.s as a characteristic value; and substituting the characteristic value gT_G.sub.s, the characteristic value dF_G.sub.s and the characteristic value cFT_G.sub.s respectively into three models y.sub.1,y.sub.2,y.sub.3 for distinguishing rippled bills and non-rippled bills,
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G)
y.sub.3=f.sub.3(cFT_G);
to obtain
p.sub.1=f.sub.1(gT_G.sub.s);
p.sub.2=f.sub.2(dF_G.sub.s)
p.sub.3=f.sub.3(cFT_G.sub.s); wherein p.sub.1, p.sub.2 and p.sub.3 are confidence levels for determining the to-be-recognized bill as a rippled bill; f1, f2 and f3 indicate learnt multi-characteristic classifying probability distribution models; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are all true, the to-be-recognized bill is recognized as a rippled bill; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are not all true, the to-be-recognized bill is recognized as a non-rippled bill, where T.sub.1, T.sub.2 and T.sub.3 are three confidence level thresholds.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIG. 1 is a schematic structural diagram of a folded bill recognizing device according to a preferred embodiment of the disclosure; and

(2) FIG. 2 is a flow chart of a folded bill recognizing method according to a preferred embodiment of the disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

(3) In order to further illustrate the method and folded bill recognizing device provided in the disclosure, an embodiment is described specifically in conjunction with figures.

(4) A folded bill recognizing device is provided according to an embodiment. As shown in FIG. 1, the folded bill recognizing device include a bill input port 10, a signal collecting module 20, a signal recognizing module 30 and a receiving/rejecting module 40.

(5) The bill input port 10 is configured to receive a to-be-recognized bill or a sample bill and convey the bill to a next module. The signal collecting module 20 is configured to collect a CIS image of the bill to obtain an infrared transmission image T and an infrared reflection image F. The signal recognizing module 30 is configured to recognize whether the to-be-recognized bill has a fold. The receiving/rejecting module is configured to perform a receiving or rejecting operation on a to-be-recognized bill.

(6) In particular, the signal recognizing module 30 further includes: a first high-pass filtering unit, a first low-pass filtering unit, a second high-pass filtering unit, a second low-pass filtering unit, a differential filtering image unit, a first characteristic extraction unit, a second characteristic extraction unit, a third characteristic extraction unit, a recognition decision unit. The first high-pass filtering unit is configured to filter the infrared transmission image T to obtain a high-pass infrared transmission filtering image gT. The first low-pass filtering unit is configured to filter the infrared transmission image T to obtain a low-pass infrared transmission filtering image dT. The second high-pass filtering unit is configured to perform high-pass filtering on the infrared reflection image F synchronously to the low-pass filtering performed on the infrared transmission image T according to a geometric coordinate point to point mapping relationship, to obtain a high-pass infrared reflection filtering image gF. The second low-pass filtering unit is configured to perform low-pass filtering on the infrared reflection image F synchronously to the high-pass filtering performed on the infrared transmission image T according to the geometric coordinate point to point mapping relationship, to obtain a low-pass infrared reflection filtering image dF. The differential filtering image unit is configured to perform a differential operation on the high-pass infrared reflection filtering image gF and the low-pass infrared transmission filtering image dT to obtain a differential filtering image cFT. The first characteristic extraction unit is configured to perform characteristic extraction on the high-pass infrared transmission filtering image gT by calculating an average gray value gT_G of the gT as a characteristic value. The second characteristic extraction unit is configured to perform characteristic extraction on the low-pass infrared reflection filtering image dF by calculating an average gray value dF_G of the dF as a characteristic value. The third characteristic extraction unit is configured to perform characteristic extraction on the differential filtering image cFT by calculating an average gray value cFT_G of the cFT as a characteristic value. The recognition decision unit is configured to calculate models for distinguishing folded bills and non-folded bills based on the characteristic value gT_G, the characteristic value dF_G and the characteristic value cFT_G of the sample bills and make a decision whether the to-be-recognized bill has a fold based on a bill classifying decision model. The bill classifying decision model is: in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are all true, the to-be-recognized bill is recognized as a folded bill; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are not all true, the to-be-recognized bill is recognized as a non-folded bill, where p.sub.1, p.sub.2 and p.sub.3 are confidence levels for determining the to-be-recognized bill as a folded bill, and T.sub.1, T.sub.2 and T.sub.3 are three confidence level thresholds.

(7) The bill classifying decision model may be further amended as:

(8) p s = * p 1 + * p 2 + * p 3 , { > T s folded bill T s non - folded bill ;

(9) where, p.sub.1, p.sub.2 and p.sub.3 are the confidence levels for determining the to-be-recognized bill as a folded bill, ,, are different weighted values assigned to p1, p2 and p3 respectively, and ++=1, 0, 0, 0, T.sub.s is a threshold and has an empirical value of 0.5.

(10) Hereinafter, a folded bill recognizing method executed by the folded bill recognizing device is described in detail.

(11) As shown in FIG. 2, the folded bill recognizing method includes the following step 1 to step 11. In step 1, a bill input port receives a to-be-recognized bill, and conveys the to-be-recognized bill to a signal collecting module. In step 2, a signal collecting module collects a CIS image signal of the to-be-recognized bill to obtain an infrared transmission image T.sub.s and an infrared reflection image F.sub.s. In step 3, a first high-pass filtering unit filters the infrared transmission image T.sub.s to obtain a high-pass infrared transmission filtering image gT.sub.s. In step 4, a first low-pass filtering unit filters the infrared transmission image to obtain a low-pass infrared transmission filtering image dT.sub.s. In step 5, a second high-pass filtering unit performs high-pass filtering on the infrared reflection image F.sub.s synchronously to the low-pass filtering performed on the infrared transmission image T.sub.s according to a geometric coordinate point to point mapping relationship, to obtain a high-pass infrared reflection filtering image gF.sub.s. In step 6, a second low-pass filtering unit performs low-pass filtering on the infrared reflection image F.sub.s synchronously to the low-pass filtering performed on the infrared transmission image T.sub.s according to a geometric coordinate point to point mapping relationship, to obtain a low-pass infrared reflection filtering image dF.sub.s. In step 7, a differential filtering image unit performs a differential operation on the high-pass infrared reflection filtering image gF.sub.s and the low-pass infrared transmission filtering image dT.sub.s to obtain a differential filtering image cFT.sub.s. In step 8, a first characteristic extraction unit performs characteristic extraction on the high-pass infrared transmission filtering image gT.sub.s by calculating an average gray value gT_G.sub.s of the gT.sub.s as a characteristic value. In step 9, a second characteristic extraction unit performs characteristic extraction on the low-pass infrared reflection filtering image dF.sub.s by calculating an average gray value dF_G.sub.s of the dF.sub.s as a characteristic value. In step 10, a third characteristic extraction unit performs characteristic extraction on the differential filtering image cFT.sub.s by calculating an average gray value cFT_G.sub.s of the cFT.sub.s as a characteristic value. In step 11, the characteristic value gT_G.sub.s, the characteristic value dF_G.sub.s and the characteristic value cFT_G.sub.s are substituted respectively into three models y.sub.1,y.sub.2,y.sub.3 for distinguishing folded bills and non-folded bills,
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G);
y.sub.3=f.sub.3(cFT_G);
to obtain
p.sub.1=f.sub.1(gT_G.sub.s);
p.sub.2=f.sub.2(dF_G.sub.s);
p.sub.3=f.sub.3(cFT_G.sub.s);

(12) where p.sub.1, p.sub.2 and p.sub.3 are confidence levels for determining the to-be-recognized bill as a folded bill. Then whether the bill has a fold is determined according to the bill classifying decision module. The bill classifying decision module is: in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are all true, the to-be-recognized bill is recognized as the folded bill; in a case that p.sub.1>T.sub.1, p.sub.2>T.sub.2, p.sub.3>T.sub.3 are not all true, the to-be-recognized bill is recognized as a non-folded bill, where T.sub.1, T.sub.2 and T.sub.3 are three confidence level thresholds. That is the end of the process.

(13) Preferably, the step 11 further includes: assigning different weighted values ,, to p.sub.1, p.sub.2 and p.sub.3, where ++=1, 0, 0, 0. Then a threshold T.sub.s is determined. A bill classifying decision model is as follows:

(14) p s = * p 1 + * p 2 + * p 3 , { > T s folded bill T s non - folded bill .

(15) Step 1 to step 10 are not executed in the listed sequence. Step 3 and step 4 may be executed at the same time. Step 5 and step 6 may be executed at the same time. Step 8 may be executed right after step 3. Step 9 may be executed right after step 6. Step 10 may be executed right after step 7.

(16) Besides, the method for obtaining the three models y.sub.1,y.sub.2,y.sub.3 for distinguishing folded bills and non-folded bills includes: collecting a certain number of samples of folded bills and non-folded bills; obtaining, for each of the samples, a characteristic value of an average gray value gT_G of a high-pass infrared transmission filtering image gT, a characteristic value of an average gray value dF_G of a low-pass infrared reflection filtering image dF and a characteristic value of an average gray value cFT_G of a differential filtering image cFT; counting the characteristic value of the gT_G, the characteristic value of the dF_G and the characteristic value of the cFT_G respectively, to obtain a probability distribution graph of the gT_G, a probability distribution graph of the dF_G and a probability distribution graph of the cFT_G corresponding to the folded bills as the following formulas:
y.sub.1=f.sub.1(gT_G);
y.sub.2=f.sub.2(dF_G);
y.sub.3=f.sub.3(cFT_G);

(17) where y.sub.1,y.sub.2,y.sub.3 are the three models for distinguishing folded bills and non-folded bills respectively.

(18) Particularly, the method for obtaining the characteristic value of the average gray value gT_G of the high-pass infrared transmission filtering image gT, the characteristic value of the average gray value dF_G of the low-pass infrared reflection filtering image dF and the characteristic value of the average gray value cFT_G of the differential filtering image cFT of each of the samples is the same as the method for obtaining the characteristic value of the average gray value gT_G.sub.s of the high-pass infrared transmission filtering image gT.sub.s, the characteristic value of the average gray value dF_G.sub.s of the low-pass infrared reflection filtering image dF.sub.s and the characteristic value of the average gray value cFT_G.sub.s of the differential filtering image cFT.sub.s of the to-be-recognized bill, i.e., step 1-step 10.

(19) The folded bill recognizing method is illustrated with an example of a bill A.

(20) Corresponding to step 1, the folded bill A is inputted to a receiving port of a self-service device.

(21) Corresponding to step 2, when the bill A passes through the signal collecting module 20 by means of mechanical conveying, the signal collecting module 20 collects signals of the bill A. A collected CSI infrared transmission image signal is rT, and an infrared reflection image signal is rF.

(22) Before step 3, a high-pass filter threshold and a low-pass filter threshold for the image signal rT and rF are calculated firstly. An average gray value of the rT is calculated first as:

(23) avG = .Math. i = 1 w * h pix ( i ) / ( w * h ) ( 9 )

(24) where pix(i) is a gray value corresponding to a pixel of rT, w is the width of the image signal rT, h is the height of the image signal rT.

(25) The high-pass filter threshold corresponding to rT is T.sub.11=j*avG,1j(255/avG), the low-pass filter threshold corresponding to rT is T.sub.22=k*avG,0k1.

(26) Corresponding to step 3, high-pass filtering is performed on rT by the first high-pass filtering unit to obtain a high-pass filtering image GT.

(27) Corresponding to step 4, low-pass filtering is performed on rT by the first low-pass filtering unit to obtain a low-pass filtering image DT.

(28) Corresponding to step 5, corresponding high-pass filtering is performed on rF according to a geometric coordinate mapping relationship, to obtain a high-pass filtering image GF.

(29) Corresponding to step 6, corresponding low-pass filtered is performed on rF according to a geometric coordinate mapping relationship, to obtain a low-pass filtering image DF.

(30) Corresponding to step 7, differential operation is performed on the high-pass filtering image GF and the loss-pass filtering image DT, to obtain a differential filtering image CFT.

(31) Corresponding to step 10, an average gray value cAVG of the differential filtering image CFT is calculated as a characteristic value, with the same calculating model as formula (9).

(32) Corresponding to step 9, an average gray value dAVG of the loss-pass filtering image DF is calculated as a characteristic value, with the same calculating model as formula (9).

(33) Corresponding to step 8, an average gray value gAVG of the high-pass filtering image GT is calculated as a characteristic value, with the same calculating model as formula (9).

(34) Corresponding to step 11, the calculated cAVG, dAVG and gAVG are input to a multi-characteristic fusion decision unit, and classification is performed by learnt multi-characteristic classifying probability distribution models f.sub.1(x.sub.1), f.sub.2(x.sub.2), f.sub.3(x.sub.3). If f.sub.1(cABG)>T.sub.1, f.sub.2(dAVG)>T.sub.2, f.sub.3(gAVG)>T.sub.3, where T.sub.1, T.sub.2 and T.sub.3 are empirical thresholds which generally are 0.5, that is, if an output of the decision making unit is true, the bill A is recognized as a folded bill, and if an output of the decision making unit is false, the bill A is recognized as a non-folded bill. The process of recognizing ends.

(35) In the folded bill recognizing method and folded bill recognizing device provided by the embodiment, a method of high/low pass filters are adopted to effectively classify characteristics, a distinguishability of the characteristics is highly improved. Particularly, different characteristics correspond to different classifiers. Among the classifiers, they have functions similar to the Adaboost classifier, which may ensure a recognition confidence level of the recognizing device of the disclosure and make the recognition system more robustly compatible with complex situations such as an environmental interference, a fouled bill. The folded bill recognizing method and device can effectively recognize a folded bill.

(36) The above is only description of the preferred embodiments of the disclosure. It should be noted that, the above preferred embodiments should not be considered as the limits to the disclosure. The protective scope of the disclosure should be based on the scope limited by the claims. For those skilled in the art, modifications and retouching can be made without departing from the spirit or scope of the disclosure. The modifications and retouching are also in the protective scope of the disclosure.