Banknote recognition method based on sorter dust accumulation and sorter
09928677 ยท 2018-03-27
Assignee
Inventors
Cpc classification
G07D13/00
PHYSICS
G07D7/2008
PHYSICS
G07D7/2016
PHYSICS
International classification
G07D11/00
PHYSICS
Abstract
A banknote recognition method based on sorter dust accumulation and a sorter. An effective region boundary is determined by using a gray-scale difference between a foreground and a background of a sensor image signal, an edge is searched for by comprehensive means of signal features of various sensors, detection direction change and secondary scanning, and finally the effective boundary of the image region is relocated, so that the detection rate and recognizing accuracy of the sorter can be greatly improved. The sorter comprises a banknote inlet, a banknote outlet, a banknote exit port, a conveying rail and a recognizing module. The recognizing module comprises two sets of CIS image sensors arranged oppositely, two sets of light transmitting plates arranged oppositely, a storage module, a detection module and a display module.
Claims
1. A banknote recognition method based on sorter dust accumulation, comprising: S1, collecting, by a collecting module, a reflection spectrum image and a transmission spectrum image of a banknote; S2, positioning, by a positioning and determining module, four edges of the reflection spectrum image and determining whether the four edges of the reflection spectrum image are positioned successfully, obtaining a positioned image and performing steps S3 and S4 if the four edges of the reflection spectrum image are positioned successfully, and performing step S5 if the four edges of the reflection spectrum image are not positioned successfully; S3, performing, by a first rotation mapping module, angular rotation mapping on the positioned image, to obtain a positive image of the reflection spectrum image; S4, determining, by a second determining module, whether the positive image of the reflection spectrum image is normal, performing step S7 if the positive image of the reflection spectrum image is normal, and performing step S5 if the positive image of the reflection spectrum image is not normal; S5, positioning, by a positioning module, four edges of the transmission spectrum image, performing steps S6 and S7 if the four edges of the transmission spectrum image are positioned successfully, and performing step S8 if the four edges of the transmission spectrum image are not positioned successfully; S6, mapping, by a second rotation mapping module, the four edges of the transmission spectrum image to the reflection spectrum image and performing angular rotation mapping, to obtain the positive image of the reflection spectrum image; S7, recognizing, by a recognizing module, the banknote; and S8, returning, by a returning module, the banknote.
2. The banknote recognition method based on sorter dust accumulation according to claim 1, wherein step S4 comprises: accumulating sum(j) (0<j<1/5W) each time when a pixel point of the positive image of the reflection spectrum image meets the following criterion: notegray(i,Wj)notegray(i, j)>Threshold(0<i<H,0<j<1/5W), or notegray(i, j)notegray(i,Wj)>Threshold(0<i<H,0<j<1/5W); determining that the positive image is a dust image and accumulating a statistical variable SUM if sum(j)>T; and determining that the positive image is an abnormal edge detection image and performing step S5 if SUM>T.sub.1, otherwise performing step S7, wherein notegray(i, j) denotes a gray value of the pixel point in the i-th row and the j-th column of the reflection spectrum image, H denotes a height of the reflection spectrum image, W denotes a width of the reflection spectrum image, Threshold denotes a set threshold, T denotes a threshold of a number of dust accumulation points in a single column, and T.sub.1 denotes a threshold of a number of dust accumulation columns.
3. The banknote recognition method based on sorter dust accumulation according to claim 1, wherein step S7 comprises performing denomination recognition, orientation recognition, authentication, and recognition for sorting function on the banknote.
4. The banknote recognition method based on sorter dust accumulation according to claim 1, wherein step S2 comprises: S21, positioning the four edges of the reflection spectrum image; and S22, determining whether the four edges of the reflection spectrum image are positioned successfully, obtaining the positioned image and performing steps S3 and S4 if the four edges of the reflection spectrum image are positioned successfully, and performing step S5 if the four edges of the reflection spectrum image are not positioned successfully.
5. The banknote recognition method based on sorter dust accumulation according to claim 4, wherein the four edges comprises a left edge, a right edge, an upper edge and a lower edge, and step S21 comprises: searching from a left side of the reflection spectrum image, suspending the searching if the following criterion is met for a pixel point:
6. The banknote recognition method based on sorter dust accumulation according to claim 4, wherein step S22 comprises: determining that the four edges of the reflection spectrum image are positioned successfully, obtaining the positioned image and performing steps S3 and S4 if the following criterions are met for an image enclosed by the four edges:
7. The banknote recognition method based on sorter dust accumulation according to claim 4, wherein step S22 comprises: determining that the four edges of the reflection spectrum image are positioned successfully, obtaining the positioned image and performing steps S3 and S4 if the following criterion is met for an image enclosed by the four edges:
8. A sorter, comprising: a collecting module, configured to collect a reflection spectrum image and a transmission spectrum image of a banknote; a positioning and determining module, configured to position four edges of the reflection spectrum image and determine whether the four edges of the reflection spectrum image are positioned successfully, and obtain a positioned image if the four edges of the reflection spectrum image are positioned successfully; a first rotation mapping module, configured to perform angular rotation mapping on the positioned image to obtain a positive image of the reflection spectrum image; a second determining module, configured to determine whether the positive image of the reflection spectrum image is normal; a positioning module, configured to position four edges of the transmission spectrum image; a second rotation mapping module, configured to map the four edges of the transmission spectrum image to the reflection spectrum image and perform angular rotation mapping to obtain the positive image of the reflection spectrum image; a recognizing module, configured to recognize the banknote; and a returning module, configured to return the banknote.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE EMBODIMENTS
(15) The present disclosure provides a banknote recognition method based on sorter dust accumulation and a sorter. An effective region boundary is determined by using a gray difference between a foreground and a background of a sensor image signal, an edge is searched for by comprehensive means of signal features of various sensors, detection direction change and secondary scanning, and finally the effective boundary of the image region is relocated. Therefore, the detection rate and recognizing accuracy of a sorter can be greatly improved.
(16) It is noted that, the method according to the embodiments of the present disclosure can be applied to detect not only banknotes, but also checks and other sheet-like valuable magnetic documents. An apparatus according to the embodiments of the present disclosure can be applied to an ATM machine and bill processing equipment such as a sorter. Hereinafter, the method according to the embodiments of the present disclosure will be described with an example of a sorter. Although only the sorter is described as an example, it should not be construed as a limitation to the method in the present disclosure.
(17) Referring to
(18) In step S1, a reflection spectrum image and a transmission spectrum image of the banknote are collected.
(19) Spectrum signals collected by a sensor of a sorter include white spectrum signals, reflection spectrum signals, transmission spectrum signals, ultraviolet signals, magnetic signals, thickness signals, and the like. In this disclosure, a banknote is detected and recognized by treating a reflection spectrum image and a transmission spectrum image of the banknote as target images, and thus the reflection spectrum image and the transmission spectrum image of the banknote are collected first.
(20) In step S2, four edges of the reflection spectrum image are positioned and it is determined whether the four edges are positioned successfully. If the four edges are positioned successfully, a positioned image is obtained and steps S3 and S4 are performed, otherwise step S5 is performed.
(21) After obtaining the reflection spectrum image of the banknote, the four edges of the reflection spectrum image are positioned, to determine the image area of the banknote. Steps S3 and S4 are performed if it is determined that the four edges are positioned successfully, otherwise step S5 is performed.
(22) In step S3, angular rotation mapping is performed on the positioned image, to obtain a positive image of the reflection spectrum image.
(23) If it is determined that the four edges of the reflection spectrum image are positioned successfully, the angular rotation mapping is performed on the positioned image to obtain the positive image of the above reflection spectrum image.
(24) In step S4, it is determined whether the positive image of the reflection spectrum image is normal. If the positive image is normal, step S7 is performed, otherwise step S5 is performed.
(25) After obtaining the positive image of the reflection spectrum image, it may be further determined whether the positive image of the reflection spectrum image is normal, that is, whether a spectrum image contained in the positive image is complete or out of range. And if the positive image is normal, step S7 is performed, otherwise step S5 is performed.
(26) In step S5, four edges of the transmission spectrum image are positioned. If the four edges of the transmission spectrum image are positioned successfully, steps S6 and S7 are performed, otherwise step S8 is performed.
(27) If the reflection spectrum image is not positioned successfully or the positive image of the reflection spectrum image is abnormal, the four edges of the transmission spectrum image may be positioned, so as to position the reflection spectrum image by positioning the transmission spectrum image. If the transmission spectrum image is positioned successfully, steps S6 and S7 are performed, otherwise step S8 is performed.
(28) In step S6, the four edges of the transmission spectrum image are mapped to the reflection spectrum image and angular rotation mapping is performed, to obtain the positive image of the reflection spectrum image.
(29) If it is determined that the transmission spectrum image is positioned successfully, the four edges of the transmission spectrum image may be mapped to the reflection spectrum image and angular rotation mapping is performed, to obtain the positive image of the reflection spectrum image.
(30) In step S7, the banknote is recognized.
(31) The banknote is recognized after the positive image of the reflection spectrum image is obtained in step S6 or after it is determined that the positive image of the reflection spectrum image is normal.
(32) In step S8, the banknote is returned.
(33) The banknote is returned if it is determined that the transmission spectrum image is not positioned successfully.
(34) An effective region boundary is determined by using a gray difference between a foreground and a background of a sensor image signal, an edge is searched for by comprehensive means of signal features of various sensors, detection direction change and secondary scanning, and finally the effective boundary of the image region is relocated. Therefore, the detection rate and recognizing accuracy of a sorter can be greatly improved with the banknote recognition method based on sorter dust accumulation and the sorter according to the present disclosure.
(35) The first embodiment of the banknote recognition method based on sorter dust accumulation is briefly described above. Hereinafter, a second embodiment of the banknote recognition method based on sorter dust accumulation will be described in detail. Referring to
(36) In step 201, the reflection spectrum image and the transmission spectrum image of the banknote are collected.
(37) Spectrum signals collected by a sensor of a sorter include white spectrum signals, reflection spectrum signals, transmission spectrum signals, ultraviolet signals, magnetic signals, thickness signals, and the like. In this disclosure, a banknote is detected and recognized by treating a reflection spectrum image and a transmission spectrum image of the banknote as target images, and thus the reflection spectrum image and the transmission spectrum image of the banknote are collected first.
(38) In step 202, the four edges of the reflection spectrum image are positioned and it is determined whether the four edges are positioned successfully. If the four edges are positioned successfully, the positioned image is obtained and steps 203 and 204 are performed, otherwise step 205 is performed.
(39) After obtaining the reflection spectrum image of the banknote, the four edges of the reflection spectrum image are positioned, to determine the image area of the banknote. And steps 203 and 204 are performed if it is determined that the four edges are positioned successfully, otherwise step 205 is performed. Referring to
(40) Step 202 may specifically include steps 2021 and 2022. In step 2021, it is determined whether the four edges of the reflection spectrum image are positioned successfully. If the four edges are positioned successfully, the positioned image is obtained and steps 203 and 204 are performed, otherwise step 205 is performed. In step 2022, angular rotation mapping is performed on the positioned image, to obtain the positive image of the reflection spectrum image.
(41) Step 2021 may specifically include the following steps. The four edges include a left edge, a right edge, an upper edge and a lower edge. A search is performed from a left side of the reflection spectrum image. If the following criterion is met for a pixel point:
(42)
the searching is suspended, coordinates of the pixel point is marked, marked coordinates of a series of such pixel points are obtained and straight-line fitting is performed on the pixel points to complete positioning of the left edge. The right edge, the upper edge and the lower edge are positioned in a same manner as positioning the left edge. In the criterion, notegray(i, j) denotes a gray value of the pixel point in the i-th row and the j-th column of the reflection spectrum image, H denotes a height of the reflection spectrum image, W denotes a width of the reflection spectrum image, and Threshold denotes an edge detection criterion threshold. The following criterions are used for positioning the right edge, the upper edge and the lower edge:
(43)
(44) It is noted that, there is no necessary sequence for positioning the four edges of the reflection spectrum image. Furthermore, in order to save search time, a search range of the reflection spectrum image in the above embodiment is only of the width of the reflection spectrum image, which however is not limited herein.
(45) Referring to
(46)
it is determined that the four edges of the reflection spectrum image are positioned successfully, i.e., the gray values of the foreground and the background of the banknote meet the criterion, and the positioned image is obtained and steps 203 and 204 are performed, otherwise step 205 is performed. In the criterion, pixgray(i, j) denotes a gray value of a pixel at a position of a dust accumulation line, notegray(i, j) denotes a gray value of the foreground of the banknote, backgray(i, j) denotes a gray value of the background of the banknote, and Threshold denotes an edge detection threshold.
(47) Referring to
(48)
it is determined that the four edges of the reflection spectrum image are positioned successfully, and the positioned image is obtained and steps 203 and 204 are performed, otherwise step 205 is performed. In the criterion, pixgray(i, j) denotes a gray value of a pixel at a position of a dust accumulation line, notegray(i, j) denotes a gray value of the foreground of the banknote, backgray(i, j) denotes a gray value of the background of the banknote, and Threshold denotes an edge detection threshold.
(49) In step 204, it is determined whether the positive image of the reflection spectrum image is normal, and if the positive image is normal, step 207 is performed, otherwise step 205 is performed.
(50) After obtaining the positive image of the reflection spectrum image, it may be further determined whether the positive image of the reflection spectrum image is normal, i.e., whether a spectrum image contained in the positive image is complete or out of range. If the positive image is normal, step 207 is performed, otherwise step 205 is performed.
(51) If edges of a banknote are positioned successfully in a normal situation, a whole spectrum image of the foreground is extracted completely. In a case that an image is collected by a collecting module covered with a lot of dust such that, when searching edges, an edge of dust is mistakenly positioned as a left or right edge of the banknote, then the extracted spectrum image is partially a background image and partially a foreground image of the banknote. Therefore, a criterion is needed to judge the extracted spectrum image, to reduce a false recognition rate.
(52) The determination of whether the positive image of the reflection spectrum image is normal may specifically include the following steps.
(53) Each time when a pixel point of the positive image of the reflection spectrum image meets the criterion:
(54) notegray(i,Wj)notegray(i, j)>Threshold (0<i<H,0<j<1/5W) or
(55) notegray(i, j)notegray(i,Wj)>Threshold (0<i<H,0<j<1/5W),
(56) sum(j) (0<j<1/5W) is accumulated.
(57) If sum(j)>T, it is determined that the positive image is a dust image and a statistical variable SUM is accumulated.
(58) If SUM>T.sub.1, it is determined the positive image is an abnormal edge detection image and step S5 is performed, otherwise step S7 is performed. In the criterion, notegray(i, j) denotes a gray value of the pixel point in the i-th row and the j-th column of the reflection spectrum image, H denotes a height of the reflection spectrum image, W denotes a width of the reflection spectrum image, Threshold denotes a set threshold, T denotes a threshold of a number of dust accumulation points in a single column (if the banknote is an RMB banknote, T=H), and T.sub.1 is a threshold of a number of dust accumulation columns (if the banknote is an RMB banknote, T.sub.1=3).
(59) In step 205, the four edges of the transmission spectrum image are positioned. If the four edges are positioned successfully, steps 206 and 207 are performed, otherwise step 208 is performed.
(60) If the reflection spectrum image is not positioned successfully or the positive image of the reflection spectrum image is abnormal, the four edges of the transmission spectrum image are positioned, so as to position the reflection spectrum image by positioning the transmission spectrum image. If the transmission spectrum image is positioned successfully, steps 206 and 207 are performed, otherwise step 208 is performed.
(61) Referring to
(62) In step 206, the four edges of the transmission spectrum image are mapped to the reflection spectrum image and angular rotation mapping is performed, to obtain the positive image of the reflection spectrum image.
(63) If it is determined that the transmission spectrum image is positioned successfully, the four edges of the transmission spectrum image are mapped to the reflection spectrum image and angular rotation mapping is performed, to obtain the positive image of the reflection spectrum image.
(64) In step 207, the banknote is recognized.
(65) The banknote is recognized after the positive image of the reflection spectrum image is obtained in step 206 or after it is determined that the positive image of the reflection spectrum image is normal.
(66) The recognition of banknote may specifically include performing denomination recognition, orientation recognition, authentication, and recognition for sorting function on the banknote.
(67) In step 208, the banknote is returned.
(68) If it is determined that the transmission spectrum image is not positioned successfully, the banknote is returned.
(69) An effective region boundary is determined by using a gray difference between a foreground and a background of a sensor image signal, an edge is searched for by comprehensive means of signal features of various sensors, detection direction change and secondary scanning, and finally the effective boundary of the image region is relocated. Therefore, the detection rate and recognizing accuracy of a sorter can be greatly improved with the banknote recognition method based on sorter dust accumulation and the sorter according to the present disclosure.
(70) The second embodiment of the banknote recognition method based on sorter dust accumulation is briefly described above. Hereinafter, a first embodiment of the sorter will be described in detail. Referring to
(71) The collecting module 1201 is configured to collect a reflection spectrum image and a transmission spectrum image of the banknote.
(72) The positioning and determining module 1202 is configured to position four edges of the reflection spectrum image and determine whether the four edges of the reflection spectrum image are positioned successfully.
(73) The first rotation mapping module 1203 is configured to perform angular rotation mapping on the positioned image to obtain a positive image of the reflection spectrum image.
(74) The second determining module 1204 is configured to determine whether the positive image of the reflection spectrum image is normal.
(75) The positioning module 1205 is configured to position four edges of the transmission spectrum image.
(76) The second rotation mapping module 1206 is configured to map the four edges of the transmission spectrum image to the reflection spectrum image and perform angular rotation mapping to obtain the positive image of the reflection spectrum image.
(77) The recognizing module 1207 is configured to recognize the banknote.
(78) The returning module 1208 is configured to return the banknote.
(79) The first embodiment of the sorter corresponds to the first embodiment and the second embodiment of the banknote recognition method based on sorter dust accumulation, thus having the features of the first embodiment and second embodiment of the banknote recognition method based on sorter dust accumulation, which are not repeated herein.
(80) The first embodiment of the sorter is briefly described above. Hereinafter, a second embodiment of the sorter will be described in detail. Referring to
(81) The two sets of CIS image sensors 1351 are arranged on two sides respectively.
(82) The two sets of light transmitting plates 1352 are arranged on two sides respectively.
(83) The CIS image sensors 1351 are configured to generate and receive the reflection spectrum image.
(84) The CIS image sensors 1351 and the light transmitting plates 1352 are configured to cooperate to generate and receive the transmission spectrum image.
(85) The storage module is configured to store the reflection spectrum image and the transmission spectrum image.
(86) Reference is made to
(87) Referring to
(88) An effective region boundary is determined by using a gray difference between a foreground and a background of a sensor image signal, an edge is searched for by comprehensive means of signal features of various sensors, detection direction change and secondary scanning, and finally the effective boundary of the image region is relocated. Therefore, the detection rate and recognizing accuracy of a sorter can be greatly improved with the banknote recognition method based on sorter dust accumulation and the sorter according to the present disclosure.
(89) It can be understood by those skilled in the art that all or some of steps in the methods according to the above embodiments may be implemented by a program instructing hardware. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk.
(90) In the above, the banknote recognition method based on sorter dust accumulation and the sorter according to the present disclosure are described in detail. Variations can be made to the embodiments and the application scope by those skilled in the art based on the idea in the present disclosure. In summary, the content of the specification can be not interpreted as limitation to the invention.