Abstract:
A method and an apparatus for detecting a magnetic signal of paper money. By using detecting a magnetic track and repairing an abnormal magnetic track, the detection method solves the phenomenon of the abnormal magnetic track, and greatly improves the recognition accuracy rate and the receiving rate of a paper money recognition apparatus. The detection method comprises: S1: acquiring original data of a paper money magnetic signal; S2: performing abnormal magnetic track detection on the original data to obtain a detection result; S3: if the detection result is an abnormal magnetic track, performing step S4 and step S5, otherwise, performing step S6; S4: repairing the original data according to a preset repair rule to obtain repaired data; S5: comparing the repaired data with a preset standard value to obtain a recognition result; and S6: comparing the original data with the preset standard value to obtain a recognition result.

Description:
CROSS REFERENCE TO RELATED APPLICATION 
       [0001]    The present disclosure claims the priority to Chinese Patent Application No. 201310413805.4, titled “METHOD AND APPARATUS FOR DETECTING MAGNETIC SIGNAL OF PAPER MONEY”, filed on Sep. 11, 2013 with the State Intellectual Property Office of the People&#39;s Republic of China, the entire content of which is incorporated herein by reference. 
       TECHNICAL FIELD 
       [0002]    The present disclosure relates to the field of banknote recognition, and in particular to a method and an apparatus for detecting a magnetic signal of a banknote. 
       BACKGROUND 
       [0003]    Banknotes are closely related to people&#39;s lives. The appearance of counterfeit banknotes has seriously affected the stable lives of people, and sometimes even causes serious social problems. With the progress and development of science and technology, the banknote recognition technology is continuously innovated, and methods for recognizing a banknote commonly used nowadays includes a magnetic signal detection method. 
         [0004]    A banknote recognition apparatus includes a banknote recognition module which recognizes the banknote based on the magnetic signal detection method and includes a magnetic recognition module which is configured to detect a magnetic code of a security thread of the banknote. In the case that the usage time of the magnetic recognition module is too long, resistor-capacitor components on a headplate may easily age and become abnormal, and even be damaged, thereby causing shifts in reference values of signals of some magnetic tracks, and further leading to magnetic signals as detected to be abnormal. Such a magnetic track is simply referred to as an abnormal magnetic track. 
         [0005]    In this case, a situation that the banknote is mistakenly recognized may occur if the banknote recognition apparatus follows an original recognition process, therefore affecting the recognition accuracy rate for the recognition module recognizing the banknote and the receiving rate for the banknote recognition apparatus receiving the banknote. Therefore, there is a need for providing a technology which can effectively deal with the phenomenon of abnormal magnetic tracks in a magnetic module and improve the robustness of a product. 
       SUMMARY 
       [0006]    A method and an apparatus for detecting a magnetic signal of a banknote are provided according to the present disclosure, which can effectively solve the phenomenon of abnormal magnetic tracks by detecting magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of a banknote recognition apparatus. 
         [0007]    A method for detecting a magnetic signal of a banknote is provided according to the present disclosure, which includes: 
         [0008]    S1: obtaining, original data of the magnetic signal of the banknote; 
         [0009]    S2: performing, an abnormal magnetic track detection, on the original data, to obtain a detection result; 
         [0010]    S3: going to steps S4 and S5, in the case that the detection result indicates there is any abnormal magnetic track, otherwise, going to step S6; 
         [0011]    S4: repairing, the original data, based on a preset repair rule, to obtain repaired data; 
         [0012]    S5: comparing, the repaired data, with a preset standard value, to obtain a recognition result; and 
         [0013]    S6: comparing, the original data, with the preset standard value, to obtain a recognition result. 
         [0014]    Optionally, 
         [0015]    after the step S3 and before the step S6, the method further includes: 
         [0016]    S7: recording, the abnormal magnetic track and the number of occurrences of abnormalities thereof. 
         [0017]    Optionally, 
         [0018]    the method further includes: 
         [0019]    S8: maintaining and upgrading, based on the abnormal magnetic track and the number of the occurrences of the abnormalities thereof. 
         [0020]    Optionally, 
         [0021]    the step S2 includes: 
         [0022]    a detection result of an i-th magnetic track indicates that it is an abnormal magnetic track, in the case that the following inequality is met for the i-th magnetic track: 
         [0000]    s(i)&lt;u(i)−avg_threshold; 0≦i≦m, otherwise, it is a normal magnetic track, where 
         [0023]    s(i, j) is a j-th signal numerical value of the i-th magnetic track, s(i) is a mean value of the i-th magnetic track, u(i) is a reference value, and avg_threshold is a preset non-negative threshold parameter. 
         [0024]    Optionally, 
         [0025]    the step S4 includes: 
         [0026]    in the case that s(k, j)≧s(k), t(k, j)=min(s(k, j)+(u(k)−s(k)), 255), otherwise, t(k, j)=s(k, j)*u(k)/s(k), where 
         [0027]    a k-th magnetic track is an abnormal magnetic track, s(k, j) is a j-th signal numerical value of the k-th magnetic track, s(k) is a mean value of the k-th magnetic track, u(k) is a reference value, t(k, j) is a repaired j-th signal numerical value of the k-th magnetic track, and a value interval of s(k, j) and t(k, j) is [0, 255]. 
         [0028]    An apparatus for detecting a magnetic signal of a banknote is provided according to an embodiment of the present disclosure, which includes: 
         [0029]    a magnetic signal acquisition component, configured to obtain original data of the magnetic signal of the banknote; 
         [0030]    a data storage component connected with the magnetic signal acquisition component, configured to store data required by operation and an analysis of the apparatus; 
         [0031]    an abnormal magnetic track detection component connected with the magnetic signal acquisition component, configured to perform an abnormal magnetic track detection on the original data to obtain a detection result; 
         [0032]    an abnormal magnetic track repair component connected with the abnormal magnetic track detection component, configured to repair the original data based on a preset repair rule to obtain repaired data; and 
         [0033]    a magnetic signal recognition and determination component connected with the magnetic signal acquisition component and the abnormal magnetic track repair component, configured to compare the repaired data with a preset standard value to obtain a recognition result in the case that there is any abnormal magnetic track, or compare the original data with the preset standard value to obtain a recognition result in the case that magnetic tracks are normal magnetic tracks. 
         [0034]    Optionally, 
         [0035]    the data storage component connected with the magnetic signal acquisition component is configured to store the normal magnetic tracks as reference values of corresponding magnetic tracks, and store the abnormal magnetic track and the number of occurrences of abnormalities thereof. 
         [0036]    Optionally, 
         [0037]    the apparatus further includes: 
         [0038]    a maintenance and upgrade component, configured to maintain and upgrade based on the abnormal magnetic track and the number of the occurrences of the abnormalities thereof. 
         [0039]    According to the embodiments of the present disclosure, the original data of the magnetic signal of the banknote are obtained; the abnormal magnetic track detection is performed on the original data to obtain the detection result; in the case that the detection result indicates that there is any abnormal magnetic track, the original data are repaired based on the preset repair rule to obtain the repaired data, and the repaired data are compared with the preset standard value to obtain the recognition result; otherwise, the original data are compared with the preset standard value to obtain the recognition result. Based on the method and apparatus according to the present disclosure, the phenomenon of the abnormal magnetic tracks can be effectively solved by detecting the magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of the banknote recognition apparatus. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0040]      FIG. 1  is a flow chart of a method for detecting a magnetic signal of a banknote according to a first embodiment of the present disclosure; 
           [0041]      FIG. 2  is a flow chart of a method for detecting a magnetic signal of a banknote according to a second embodiment of the present disclosure; 
           [0042]      FIG. 3  is a schematic structural diagram of an apparatus for detecting a magnetic signal of a banknote according to an embodiment of the present disclosure; 
           [0043]      FIG. 4  is a schematic diagram of a third channel of a magnetic signal of a banknote being abnormal according to an embodiment of the present disclosure; 
           [0044]      FIG. 5  is a schematic diagram of a third channel of a magnetic signal of a banknote being normal according to an embodiment of the present disclosure; and 
           [0045]      FIG. 6  is a schematic diagram of a third channel of a magnetic signal of a banknote before and after being repaired according to an embodiment of the present disclosure. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0046]    A method and an apparatus for detecting a magnetic signal of a banknote are provided according to embodiments of the present disclosure, which can effectively solve the phenomenon of abnormal magnetic tracks by detecting magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of a banknote recognition apparatus. 
         [0047]    It should be noted that, the method according to the embodiments of the present disclosure can be used not only for detecting the banknote, but also for detecting a value magnetic document of slice type such as a check, and the apparatus according to the embodiments of the present disclosure is not limited to being applied to an ATM machine, and can be applied to a bill handling apparatus such as a sorter. Hereinafter, banknote detection in an ATM machine is taken as an example to illustrate the method and the apparatus according to the embodiments of the present disclosure, which is not intended as a limitation of the method and the apparatus according to the present disclosure. 
         [0048]    Referring to  FIG. 1 , a method for detecting a magnetic signal of a banknote according to a first embodiment of the present disclosure includes the following steps  101  to  106 . 
         [0049]    In step  101 , original data of the magnetic signal of the banknote are obtained. 
         [0050]    After the banknote is put into an ATM machine, data of the magnetic signal of the banknote may be obtained when the banknote enters a scanning area of a magnetic signal sensor through a delivery channel, where the data of the magnetic signal described above are referred to as the original data of the magnetic signal of the banknote. 
         [0051]    In step  102 , an abnormal magnetic track detection is performed on the original data to obtain a detection result. 
         [0052]    After the original data of the magnetic signal of the banknote are obtained, the abnormal magnetic track detection may be performed on the original data. The detection result can be obtained after the abnormal magnetic track detection is performed on the original data. 
         [0053]    In step  103 , the process of the method goes to step  104  and step  105  in the case that the detection result indicates there is any abnormal magnetic track, otherwise, the process of the method goes to step  106 . 
         [0054]    After the detection result is obtained, a further process may be carried out based on the detection result, which may specifically include: going to the step  104  and the step  105  in the case that the detection result indicates that there is any abnormal magnetic track, or going to the step  106  in the case that the detection result indicates that magnetic tracks are normal magnetic tracks. 
         [0055]    In step  104 , the original data are repaired based on a preset repair rule to obtain repaired data. 
         [0056]    In the case that the detection result indicates there is any abnormal magnetic track, the original data may be repaired based on the preset repair rule to obtain the repaired data. The repair rule described above may be adjusted for different types of banknotes, checks and so on, which is limited herein. 
         [0057]    In step  105 , the repaired data are compared with a preset standard value to obtain a recognition result. 
         [0058]    After the repaired data are obtained, the repaired data may be compared with the preset standard value to obtain the recognition result. It should be noted that the recognition result described above is a final recognition result of a banknote recognition. 
         [0059]    In step  106 , the original data are compared with the preset standard value to obtain a recognition result. 
         [0060]    In the case that the detection result indicates that the magnetic tracks are normal magnetic tracks, the original data may be compared with the preset standard value to obtain the recognition result. It should be noted that the recognition result described above is a final recognition result of the banknote recognition. 
         [0061]    According to the embodiment of the present disclosure, the original data of the magnetic signal of the banknote are obtained; the abnormal magnetic track detection is performed on the original data to obtain the detection result; in the case that the detection result indicates that there is any abnormal magnetic track, the original data are repaired based on the preset repair rule to obtain the repaired data, and the repaired data are compared with the preset standard value to obtain the recognition result; otherwise, the original data are compared with the preset standard value to obtain the recognition result. Based on the method and apparatus according to the embodiments of the present disclosure, the phenomenon of the abnormal magnetic tracks can be effectively solved by detecting the magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of the banknote recognition apparatus. 
         [0062]    The method for detecting the magnetic signal of the banknote according to the first embodiment of the present disclosure is briefly described above. A method for detecting a magnetic signal of a banknote according to a second embodiment of the present disclosure is described in detail hereinafter. Referring to  FIG. 2 , the method for detecting the magnetic signal of the banknote according to the second embodiment of the present disclosure includes the following steps  201  to  208 . 
         [0063]    In step  201 , original data of the magnetic signal of the banknote are obtained. 
         [0064]    After the banknote is put into an ATM machine, data of the magnetic signal of the banknote may be obtained when the banknote enters a scanning area of a magnetic signal sensor through a delivery channel, where the data of the magnetic signal described above are referred to as the original data of the magnetic signal of the banknote. 
         [0065]    In step  202 , an abnormal magnetic track detection is performed on the original data to obtain a detection result. 
         [0066]    After the original data of the magnetic signal of the banknote are obtained, the abnormal magnetic track detection may be performed on the original data. The detection result can be obtained after the abnormal magnetic track detection is performed on the original data. 
         [0067]    The process of performing the abnormal magnetic track detection on the original data described above may specifically include: 
         [0068]    a detection result of an i-th magnetic track indicates that it is an abnormal magnetic track in the case that the following inequality is met for the i-th magnetic track: 
         [0000]    s(i)&lt;u(i)−avg_threshold; 0≦i≦m, otherwise, it is a normal magnetic track, where 
         [0069]    s(i, j) is a j-th signal numerical value of the i-th magnetic track, s(i) is a mean value of the i-th magnetic track, u(i) is a reference value, and avg_threshold is a preset non-negative threshold parameter. 
         [0070]    In step  203 , the process of the method goes to steps  204  to  206  in the case that the detection result indicates that there is any abnormal magnetic track, otherwise, the process of the method goes to step  207 . 
         [0071]    After the detection result is obtained, a further process may be carried out based on the detection result, which may specifically include: going to the steps  204  to  206  in the case that the detection result indicates that there is any abnormal magnetic track, or going to the step  207  in the case that the detection result indicates that magnetic tracks are normal magnetic tracks. 
         [0072]    In step  204 , abnormal magnetic tracks and the number of occurrences of abnormalities thereof are recorded. 
         [0073]    In the case that the detection result indicates that there is any abnormal magnetic track, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof may be recorded. The performance of an apparatus for detecting a magnetic signal of a banknote may be evaluated based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof described above, and the apparatus for detecting the magnetic signal of the banknote may be maintained and upgraded based on a set of a large amount of statistical data. 
         [0074]    For example, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof may be processed to obtain an early warning signal, the early warning signal described above and original data of every magnetic signal are stored, and targeted maintenance and upgrades may be carried out by fetching and analyzing stored data when maintaining the apparatus for detecting the magnetic signal of the banknote. The process of processing the abnormal magnetic track and the number of occurrences of the abnormalities thereof to obtain an early warning signal described above may include: respectively accumulating the number of occurrences of the abnormalities for each of the abnormal magnetic tracks, and calculating a mean value of reference values for each of the abnormal magnetic tracks through rolling computations as the early warning signal. Specifically, it is assumed that the number of occurrences of abnormalities for a k-th magnetic track is f(k) at a current time, a mean value of reference values which is stored at a previous time is v1, and a reference value calculated at the current time is v2, then a reference value v(k) of the abnormal magnetic track updated through rolling updates is v(k)=((f(k)−1)*v1++v2)/k. 
         [0075]    It should be noted that the step  204  is not limited to being performed after the step  203 , and it may be performed, before or after, any step performed after the step  203  and before the step  207 , which is not limited herein. 
         [0076]    In step  205 , the original data are repaired based on a preset repair rule to obtain repaired data. 
         [0077]    In the case that the detection result indicates that there is any abnormal magnetic track, the original data may be repaired based on the preset repair rule to obtain the repaired data. The repair rule described above may be adjusted for different types of banknotes, checks and so on, which is limited herein. 
         [0078]    The process of repairing the original data based on the preset repair rule described above may specifically include: 
         [0079]    in the case that s(k, j)≧s(k), t(k, j)=min(s(k, j)+(u(k)−s(k)), 255), otherwise, t(k, j)=s(k, j)*u(k)/s(k), where 
         [0080]    a k-th magnetic track is an abnormal magnetic track, s(k, j) is a j-th signal numerical value of the k-th magnetic track, s(k) is a mean value of the k-th magnetic track, u(k) is a reference value thereof, t(k, j) is a repaired j-th signal numerical value of the k-th magnetic track, and a value interval of s(k, j) and t(k, j) is [0, 255]. 
         [0081]    In step  206 , the repaired data are compared with a preset standard value to obtain a recognition result. 
         [0082]    After the repaired data are obtained, the repaired data may be compared with the preset standard value to obtain the recognition result. It should be noted that the recognition result described above is a final recognition result of a banknote recognition. 
         [0083]    In step  207 , the original data are compared with the preset standard value to obtain a recognition result. 
         [0084]    In the case that the detection result indicates that the magnetic tracks are normal magnetic tracks, the original data may be compared with the preset standard value to obtain the recognition result. It should be noted that the recognition result described above is the final recognition result of the banknote recognition. The preset standard value described above is a stable standard eigenvalue obtained by training data information of normal magnetic tracks of a large number of real banknotes. 
         [0085]    In step  208 , maintenance and upgrades may be carried out based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof. 
         [0086]    After the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof are recorded, the targeted maintenance and upgrades may be carried out on the apparatus for detecting the magnetic signal of the banknote based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof. It should be noted that the step  208  is not limited to being performed after the step  207 , and it may be performed before or after any step in the embodiment of the present disclosure, which is not limited herein. 
         [0087]    According to the embodiment of the present disclosure, the original data of the magnetic signal of the banknote are obtained; the abnormal magnetic track detection is performed on the original data to obtain the detection result; in the case that the detection result indicates that there is any abnormal magnetic track, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof are recorded, and the original data are repaired based on the preset repair rule to obtain the repaired data; the repaired data are compared with the preset standard value to obtain the recognition result; otherwise, the original data are compared with the preset standard value to obtain the recognition result, and finally, the maintenance and upgrades may be carried out based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof. Based on the method and apparatus according to the embodiments of the present disclosure, the phenomenon of the abnormal magnetic tracks can be effectively solved by detecting the magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of the banknote recognition apparatus. In addition, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof can be recorded; and the maintenance and upgrades may be carried out based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof, thereby further improving the robustness of the apparatus for detecting the magnetic signal of the banknote. 
         [0088]    The method for detecting the magnetic signal of the banknote according to the second embodiment of the present disclosure, especially the process of performing an abnormal magnetic track detection on the original data and repairing the original data based on the preset repair rule, is briefly described above. An apparatus for detecting a magnetic signal of a banknote according to an embodiment of the present disclosure is described hereinafter. Referring  FIG. 3  to  FIG. 6 , the apparatus for detecting the magnetic signal of the banknote according to an embodiment of the present disclosure includes: 
         [0089]    a magnetic signal acquisition component  301 , configured to obtain original data of the magnetic signal of the banknote; 
         [0090]    a data storage component  302  connected with the magnetic signal acquisition component  301 , configured to store data required by operation and an analysis of the apparatus; 
         [0091]    an abnormal magnetic track detection component  303  connected with the magnetic signal acquisition component  301 , configured to perform an abnormal magnetic track detection on the original data to obtain a detection result; 
         [0092]    an abnormal magnetic track repair component  304  connected with the abnormal magnetic track detection component  303 , configured to repair the original data based on a preset repair rule to obtain repaired data; and 
         [0093]    a magnetic signal recognition and determination component  305  connected with the magnetic signal acquisition component  302  and the abnormal magnetic track repair component  304 , configured to compare the repaired data with a preset standard value to obtain a recognition result in the case that there is any abnormal magnetic track, or compare the original data with the preset standard value, to obtain a recognition result in the case that magnetic tracks are normal magnetic tracks. 
         [0094]    The apparatus according to an embodiment of the present disclosure may further includes: 
         [0095]    a maintenance and upgrade component  306 , configured to maintain and upgrade based on abnormal magnetic tracks and the number of occurrences of abnormalities thereof. 
         [0096]    After the banknote is put into an ATM machine, data of the magnetic signal of the banknote may be obtained by the magnetic signal acquisition component  301  when the banknote enters a scanning area of a magnetic signal sensor through a delivery channel, where the data of the magnetic signal described above are referred to as the original data of the magnetic signal of the banknote. After the original data of the magnetic signal of the banknote are obtained by the magnetic signal acquisition component  301 , the abnormal magnetic track detection may be performed on the original data by the abnormal magnetic track detection component  303 , and then the detection result are obtained. 
         [0097]    The process of performing the abnormal magnetic track detection on the original data by the abnormal magnetic track detection component  303  described above may specifically include: 
         [0098]    a detection result of an i-th magnetic track indicates that it is an abnormal magnetic track in the case that the following inequality is met for the i-th magnetic track: 
         [0000]    s(i)&lt;u(i)−avg_; 0≦i≦m, otherwise, it is a normal magnetic track, where 
         [0099]    s(i, j) is a j-th signal numerical value of the i-th magnetic track, s(i) is a mean value of the i-th magnetic track, u(i) is a reference value, and avg_threshold is a preset non-negative threshold parameter. 
         [0100]    Referring to  FIG. 4  and  FIG. 5 ,  FIG. 4  illustrates a situation that the third channel of the magnetic signal of the banknote is abnormal, and  FIG. 5  illustrates a situation that the third channel of the magnetic signal of the banknote is normal. In the case that the detection result indicates there is any abnormal magnetic track, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof may be recorded by the data storage component  302 . The performance of the apparatus for detecting the magnetic signal of the banknote may be evaluated based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof described above, and the apparatus for detecting the magnetic signal of the banknote may be maintained and upgraded based on a set of a large amount of statistical data. 
         [0101]    For example, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof may be processed to obtain an early warning signal, the early warning signal described above and original data of every magnetic signal are stored, and targeted maintenance and upgrades may be carried out by fetching and analyzing stored data when maintaining the apparatus for detecting the magnetic signal of the banknote by the maintenance and upgrade component  306 . The process of processing the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof to obtain an early warning signal described above may include: respectively accumulating the number of occurrences of the abnormalities for each of the abnormal magnetic tracks, and calculating a mean value of reference values for each of the abnormal magnetic tracks through rolling computations as the early warning signal. Specifically, it is assumed that the number of occurrences of abnormalities for a k-th magnetic track is f (k) at a current time, a mean value of reference values which is stored at a previous time is v1, and a reference value calculated at the current time is v2, then a reference value of the abnormal magnetic track updated through rolling updates is v(k)=((f(k)−1)*v1+v2)/k. 
         [0102]    In addition, the original data may be repaired by the abnormal magnetic track repair component  304  based on the preset repair rule to obtain the repaired data. Reference is made to  FIG. 6 , which is a comparison of the third channel of the magnetic signal of the banknote before and after being repaired. The repair rule described above may be adjusted for different types of banknotes, checks and so on, which is limited herein. 
         [0103]    The process of repairing the original data by the abnormal magnetic track repair component  304  based on the preset repair rule described above may specifically include: 
         [0104]    in the case that s(k, j)≧s(k), t(k, j)=min(s(k, j)+(u(k)−s(k)), 255), otherwise, t(k, j)=s(k, j)*u(k)/s(k), where 
         [0105]    a k-th magnetic track is an abnormal magnetic track, s(k, j) is a j-th signal numerical value of the k-th magnetic track, s(k) is a mean value of the k-th magnetic track, u(k) is a reference value, t(k, j) is a repaired j-th signal numerical value of the k-th magnetic track, and a value interval of s(k, j) and t(k, j) is [0, 255]. 
         [0106]    In the case that the detection result indicates that there is any abnormal magnetic track, the repaired data are compared with the preset standard value by the magnetic signal recognition and determination component  305  to obtain the recognition result; and in the case that the detection result indicates that the magnetic tracks are normal magnetic tracks, the original data are compared with the preset standard value by the magnetic signal recognition and determination component  305  to obtain the recognition result, where the recognition result described above is a final recognition result of the banknote recognition. 
         [0107]    According to the embodiments of the present disclosure, the original data of the magnetic signal of the banknote are first obtained by the magnetic signal acquisition component  301 ; then the abnormal magnetic track detection is performed on the original data by the abnormal magnetic track detection component  303  to obtain the detection result; in the case that the detection result indicates that there is any abnormal magnetic track, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof are recorded by the data storage component  302 , and the original data are repaired by the abnormal magnetic track repair component  304  based on the preset repair rule to obtain the repaired data; the repaired data are compared with the preset standard value by the magnetic signal recognition and determination component  305  to obtain the recognition result; otherwise, the original data are compared with the preset standard value by the magnetic signal recognition and determination component  305  to obtain the recognition result; and finally, the maintenance and upgrades may be carried out by the maintenance and upgrade component  306  based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof. Based on the method and apparatus according to the embodiments of the present disclosure, the phenomenon of the abnormal magnetic tracks can be effectively solved by detecting the magnetic tracks and repairing the abnormal magnetic tracks, thereby greatly improving the recognition accuracy rate and the receiving rate of the banknote recognition apparatus. In addition, the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof can be recorded, and the maintenance and upgrades may be carried out based on the abnormal magnetic tracks and the number of occurrences of the abnormalities thereof, thereby further improving the robustness of the apparatus for detecting the magnetic signal of the banknote. 
         [0108]    Those skilled in the art may understand that all or some of the steps in the method according to the above embodiments may be performed by a program instructing relevant hardware, the program may be stored in a computer readable storage medium, and the storage medium described above may be a read-only memory, a magnetic disk, an optical disk, and so on. 
         [0109]    In the above, the method and the apparatus for detecting the magnetic signal of the banknote according to the present disclosure are described in detail. Changes can be made to specific implementations and application scope by those skilled in the art according the idea of the embodiments of the present disclosure. In conclusion, the contents of the present disclosure are not to be interpreted as limitations to the present disclosure.