Abstract:
A valuable document authentication method and device. Whether a valuable document, an image sensor or a first sensor has shifted or not, the effect of authenticating the valuable document will not be affected, because a reference unit is needed to determine the location relationship between the image sensor and the first sensor before the valuable document is authenticated, thereby preventing an error occurring with the authenticated valuable document due to the fact that each sensor has shifted; moreover, when the valuable document is authenticated, even if the valuable document has shifted, the correctness of the valuable document authenticated can also be guaranteed by the conversion of the location relationship between a detection object and the sensor. Therefore, the solution provided in the present invention improves the identification accuracy and working efficiency of the authentication device, thereby providing convenience for users.

Description:
CROSS REFERENCE TO RELATED APPLICATION 
       [0001]    The present application claims the priority of Chinese Patent Application No. 201210378191.6, titled “METHOD AND DEVICE FOR IDENTIFYING VALUABLE DOCUMENT”, filed with the State Intellectual Property Office of PRC on Oct. 8, 2012, the content of which is incorporated herein by reference in its entirety. 
       FIELD OF THE INVENTION 
       [0002]    The present disclosure relates to the field of identifying a valuable document, and in particular to a method and a device for identifying a valuable document. 
       BACKGROUND OF THE INVENTION 
       [0003]    With the development of economy, science and technology, self-service equipment becomes more and more popular in the financial field (e.g., an ATM in a bank) and in the pan-financial field (e.g., a self-service ticket vending machine, self-service payment machine and the like in the rail transit industry). It can be foreseeable that financial self-service equipment will become closer to people&#39;s daily life and higher requirements for the performance of the financial self-service equipment will be made in the future. 
         [0004]    In an automatic teller machine (ATM) of a financial institution such as a bank, a valuable document identification device is equipped, which is used to identify the category and authenticity of a current valuable document by identifying the feature of the current valuable document (e.g., banknote). In the ATM, template information of various types of valuable documents are stored, the template information includes the image signal, magnetic signal and thickness signal. When a valuable document is loaded in the identification device, the image signal of the current valuable document is collected by an image sensor of the identification device, the magnetic signal of the current valuable document is collected by a magnetic sensor of the identification device, and the thickness signal of the current valuable document is collected by a thickness sensor of the identification device. Then, the collected image signal, magnetic signal and thickness signal are compared with the image signal, magnetic signal and thickness signal in the template information respectively. If the collected signals are the same as the signals in the template information, it indicates that the current valuable document is real; otherwise, it indicates that the current valuable document is fake. Therefore, based on the identification of an image signal, a magnetic signal and a thickness signal, the identification of the category and authenticity of a current valuable document can be achieved. 
         [0005]    In researching and practicing the existing technologies, the inventor of the present invention finds that the prior art has the following disadvantages. 
         [0006]    The image signal, magnetic signal and thickness signal stored in template information of an automatic teller machine are collected in a case that multiple sensors are always parallel to the long side of a valuable document. But in practice, the valuable document is often transported in an inclined and deviated manner in the automatic teller machine, thus signals collected by the sensors of the identification device are signals in a condition where the valuable document is inclined or offset. Therefore, when the signals collected in the inclined manner are compared with signals in the template information in the identification device, the identification device determines that the current valuable document is fake or a case where the identification device can not judge the authenticity occurs due to the difference between the signals of the corresponding positions on the current valuable document and in the template information, even though the current valuable document is real. 
         [0007]    In the use of an automatic teller machine by a user, once a valuable document is not placed rightly, a case that judgment can not be performed or misjudgment of fake banknote will occur in the identification device of the automatic teller machine, then the user will be asked to places the valuable document again. The identification device can identify and process correctly only after several times of insertion of the same valuable document. Therefore, existing identification devices have lowered identification accuracy for a valuable document, and reduced efficiency, thus causing inconvenience to a user and affecting the usage experience of self-service equipment by a user. 
         [0008]    Therefore, how to improve the identification accuracy of an identification device has become the problem mostly needed to be solved currently. 
       SUMMARY OF THE INVENTION 
       [0009]    For this purpose, the object of the present invention is to provide a method and a device for identifying a valuable document, to improve the identification accuracy of the identification device. 
         [0010]    An embodiment of the present invention can be implemented as below. 
         [0011]    A method for identifying a valuable document includes: 
         [0012]    collecting an image signal and a first signal of a detection object by an image sensor and a first sensor respectively, where the detection object includes the valuable document and a reference unit; 
         [0013]    determining an image signal of the valuable document from the image signal of the detection object; 
         [0014]    determining a positional relationship between the image sensor and the first sensor according to a positional relationship between the image sensor and the reference unit and a positional relationship between the first sensor and the reference unit, if an image signal of the valuable document on a preset region matches with an image signal of template information on the preset region, where the template information includes an image signal and a second signal; 
         [0015]    determining the second signal of the template information at a preset position; 
         [0016]    determining a positional relationship between the preset position on the detection object and the image sensor; 
         [0017]    determining a positional relationship between the preset position on the detection object and the first sensor according to the positional relationship between the image sensor and the first sensor; and 
         [0018]    judging whether the first signal of the detection object at the preset position collected by the first sensor is the same as the second signal of the template information at the preset position, and if the first signal of the detection object at the preset position collected by the first sensor is the same as the second signal of the template information at the preset position, displaying that the valuable document is real; otherwise, displaying that the valuable document is fake. 
         [0019]    Preferably, the first sensor may be a magnetic sensor, and each of the first signal and the second signal may be a magnetic signal. 
         [0020]    Preferably, the first sensor may be a thickness sensor, and each of the first signal and the second signal may be a thickness signal. 
         [0021]    Preferably, the first sensor may include a magnetic sensor and a thickness sensor, and each of the first signal and the second signal may include a magnetic signal and a thickness signal. 
         [0022]    A device for identifying a valuable document includes: 
         [0023]    an image sensor, adapted to collect an image signal of a detection object, where the detection object includes the valuable document and a reference unit; 
         [0024]    a first sensor, adapted to collect a first signal of the detection object; 
         [0025]    a first determining module, adapted to determine an image signal of the valuable document from the image signal of the detection object; 
         [0026]    a second determining module, adapted to determine a positional relationship between the image sensor and the first sensor according to a positional relationship between the image sensor and the reference unit and a positional relationship between the first sensor and the reference unit, if an image signal of the valuable document on a preset region matches with an image signal of template information on the preset region, where the template information includes an image signal and a second signal; 
         [0027]    a third determining module, adapted to determine the second signal of the template information at a preset position; 
         [0028]    a fourth determining module, adapted to determine a positional relationship between the preset position on the detection object and the image sensor; 
         [0029]    a fifth determining module, adapted to determine a positional relationship between the preset position on the detection object and the first sensor according to the positional relationship between the image sensor and the first sensor; 
         [0030]    a judging module, adapted to judge whether the first signal of the detection object at the preset position collected by the first sensor is the same as the second signal of the template information at the preset position; and 
         [0031]    a displaying module, adapted to display that the valuable document is real or fake. 
         [0032]    Preferably, the first sensor may be a magnetic sensor, and each of the first signal and the second signal may be a magnetic signal. 
         [0033]    Preferably, the first sensor may be a thickness sensor, and each of the first signal and the second signal may be a thickness signal. 
         [0034]    Preferably, the first sensor may include a magnetic sensor and a thickness sensor, and each of the first signal and the second signal may include a magnetic signal and a thickness signal. 
         [0035]    Compared with the prior art, the technical solution according to the embodiment has the following advantages and features. 
         [0036]    In the solution according to the present invention, the effect of the identification of a valuable document will not be affected, no matter whether the valuable document, the image sensor or the first sensor is deviated, because the positional relationship between the image sensor and the first sensor needs to be determined by a reference unit prior to the identification of the valuable document, so that errors in identification of the valuable document caused by deviation of various sensors can be avoided. Further, in the identification of the valuable document, the correctness of the valuable document identification can be guaranteed by conversion of the positional relationship between the detection object and the sensors, even though the valuable document is deviated. Therefore, according to the solution of the present invention, the identification accuracy and efficiency of the identification device can be improved, and the convenience can be provided to a user. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0037]    The figures to be used in the description of the embodiment or the prior art will be introduced briefly below so as to better describe the technical solution of the present disclosure or the prior art. Apparently, the accompanying figures used in the following description are only some embodiments of the present disclosure, and other figures can be obtained by those skilled in the art according to these accompanying figures without creative labor. 
           [0038]      FIG. 1  is a flow chart of a method for identifying a valuable document according to the present invention; 
           [0039]      FIG. 2  is a block diagram of a device for identifying a valuable document according to the present invention; 
           [0040]      FIG. 3  is a schematic diagram of an image of a valuable document according to the present invention; 
           [0041]      FIG. 4  is a schematic diagram of an image collected by an image sensor according to the present invention; 
           [0042]      FIG. 5  is a schematic diagram of an image in a coordinate system xoy according to the present invention; 
           [0043]      FIG. 6  is a schematic diagram of an image in a coordinate system x′o′y′ according to the present invention; 
           [0044]      FIG. 7  is a schematic diagram of a comparison between an image in a coordinate system x′o′y′ and a template image according to the present invention; 
           [0045]      FIG. 8  is a schematic diagram of an image in a coordinate system xoy according to the present invention; 
           [0046]      FIG. 9  is a schematic diagram of images in coordinate systems xoy, XOY and x″o″y″ according to the present invention; 
           [0047]      FIG. 10  is a schematic diagram of an image of a valuable document according to the present invention; 
           [0048]      FIG. 11  is a schematic diagram of an image in a coordinate system xoy according to the present invention; 
           [0049]      FIG. 12  is a schematic diagram of images in coordinate systems xoy, XOY and x″o″y″ according to the present invention; 
           [0050]      FIG. 13  is a schematic block diagram of another device for identifying a valuable document according to the present invention; 
           [0051]      FIG. 14  is a side view of a transporting system according to the present invention; 
           [0052]      FIG. 15  is a plan view of a transporting system according to the present invention; 
           [0053]      FIG. 16  is a schematic diagram of sensor distribution according to the present invention; 
           [0054]      FIG. 17  is a schematic diagram of a reference unit according to the present invention; and 
           [0055]      FIG. 18  is a block diagram of a processor according to the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0056]    The technical solution in embodiments of the present disclosure will be described clearly and fully in conjunction with the accompanying figures. Apparently, the described embodiments are only a part of the embodiments of the present disclosure rather than all the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative labor are within the scope of protection of the present disclosure. 
         [0057]    A method and a device for identifying a valuable document are provided according to the embodiment of the present invention, to improve the identification accuracy and efficiency of the identification device, and thus provide a user with convenience. 
         [0058]    There are multiple ways to implement specifically the above method and device for identifying a valuable document, thus the method and device will be described in detail by specific embodiments below. 
         [0059]    Referring to  FIG. 1 , a flow chart of a method for identifying a valuable document is illustrated, which includes: 
         [0060]    Step S 11 , collecting an image signal and a first signal of a detection object by an image sensor and a first sensor respectively, where the detection object includes the valuable document and a reference unit. 
         [0061]    Herein, the first sensor may be a magnetic sensor or a thickness sensor, or the first sensor includes a magnetic sensor and a thickness sensor. However, the design idea of the present invention is not limited to these two types of sensors or their combination, and the sensor may be other types of sensors. The signal collected from a valuable document by a magnetic sensor is a magnetic signal, and the signal collected from a valuable document by a thickness sensor is a thickness signal. 
         [0062]    Step S 12 , determining an image signal of the valuable document from the image signal of the detection object. 
         [0063]    Herein, the detection object includes the valuable document and the reference unit, and the image signal of the valuable document needs to be used in the following steps, so it is necessary to cut the image signal of the valuable document from the image signal of the detection signal. 
         [0064]    Step S 13 , determining a positional relationship between the image sensor and the first sensor according to a positional relationship between the image sensor and the reference unit and a positional relationship between the first sensor and the reference unit, when an image signal of the valuable document on a preset region matches with an image signal of template information on the preset region, where the template information includes the image signal and a second signal. 
         [0065]    Herein, the preset region may be big or small, and may be preset by a staff member as the region of head portraits on a RMB for example. If the image signal of the valuable document matches with the image signal of the template information, the denomination of the valuable document is determined to be 50 yuan by using the denomination of the current template information such as 50 yuan. In this step, only the denomination of the valuable document placed by a user can be judged rather than the authenticity of the valuable document. 
         [0066]    Step S 14 , determining the second signal of the template information at a preset position. 
         [0067]    Herein, the second signal on the preset position may be a magnetic signal or a thickness signal, or may be the magnetic signal and the thickness signal. 
         [0068]    Step S 15 , determining a positional relationship between the preset position on the detection object and the image sensor. 
         [0069]    Step S 16 , determining a positional relationship between the preset position on the detection object and the first sensor according to the positional relationship between the image sensor and the first sensor. 
         [0070]    Herein, the positional relationship between the preset position on the detection object and the first sensor is further determined by the above two steps. 
         [0071]    Step S 17 , judging whether the first signal of the detection object at the preset position collected by the first sensor is the same as the second signal of the template information at the preset position, and if the first signal of the detection object at the preset position collected by the first sensor is the same as the second signal of the template information at the preset position, proceeding to step S 18 ; otherwise proceeding to step S 19 , 
         [0072]    Herein, the above judgment is an error correction judgment, i.e., to judge whether the first signal of the detection object is the same as the second signal of the template information, which is a signal obtained in ideal conditions. The correctness of the judgment will not be affected even though the first signal is obtained in a deviated condition, because a conversion of positional relationship is performed. 
         [0073]    Step S 18 , displaying that the valuable document is real. 
         [0074]    Step S 19 , displaying that the valuable document is fake. 
         [0075]    In the embodiment as shown in  FIG. 1 , the effect of the identification of a valuable document will not be affected, no matter whether the valuable document, the image sensor or the first sensor is deviated, because the positional relationship between the image sensor and the first sensor needs to be determined by a reference unit prior to the identification of the valuable document, so that errors in identification of the valuable document caused by deviation of various sensors is avoided. Further, in the identification of the valuable document, the correctness of the valuable document identification can be guaranteed by conversion of the positional relationship between the detection object and the sensors even though the valuable document is deviated. Therefore, according to the solution of the present invention, the identification accuracy and efficiency of the identification device is improved, and thus providing a user with convenience. 
         [0076]    Referring to  FIG. 2 , a block diagram of a device for identifying a valuable document is illustrated, which includes: an image sensor  1  adapted to collect an image signal of a detection object, here the detection object includes the valuable document and a reference unit; a first sensor  2  adapted to collect a first signal of the detection object; a first determining module  3  adapted to determine an image signal of the valuable document from the image signal of the detection object; a second determining module  4  adapted to determine a positional relationship between the image sensor and the first sensor according to a positional relationship between the image sensor and the reference unit and a positional relationship between the first sensor and the reference unit, when an image signal of the valuable document on a preset region matches with an image signal of template information on the preset region, here the template information includes the image signal and a second signal; a third determining module  5  adapted to determine the second signal of the template information on a preset position; a fourth determining module  6  adapted to determine a positional relationship between the preset position on the detection object and the image sensor; a fifth determining module  7  adapted to determine a positional relationship between the preset position on the detection object and the first sensor according to the positional relationship between the image sensor and the first sensor; a judging module  8  adapted to judge whether the first signal of detection object on the preset position collected by the first sensor is the same as the second signal of the template information on the preset position; and a displaying module  9  adapted to display that the valuable document is real or fake. 
         [0077]    The design idea of the present invention has been summarized briefly above, and the solution of the present disclosure will be introduced below in conjunction with specific embodiments. The design thought for detecting the magnetic signal and the thickness signal are almost the same, so only the detecting of the magnetic signal portion will be introduced below. A precise locating and detecting of the thickness signal collected by the thickness sensor, which will be omitted to avoid repetition, can be implemented by using the same implementation method as that of the magnetic signal according to the principle for detecting the magnetic signal, to achieve the final identification of the current valuable document. 
       First Embodiment 
       [0078]    This embodiment provides specific introduction of a method for identifying a valuable document according to the present invention. 
         [0079]    The method for identifying a valuable document includes: 
         [0080]    Step 1, sensing a current valuable document. 
         [0081]      FIG. 3  is a physical shape diagram of the current valuable document. The valuable document (e.g., banknote) to be identified is transported through a transporting passage, a detecting sensor for sensing the arrival of the current valuable document and obtaining the transporting speed V (inch/second) of the current valuable document according to the setting data of the equipment is provided in the transporting passage. 
         [0082]    Step 2, controlling cooperatively. 
         [0083]    A cooperative controlling portion controls a close-loop type conveyor belt to operate at a linear speed in accordance with the transporting speed V of the valuable document, when the front of the valuable document arrives at the detection range of the detecting sensor. A reference unit is transported by the close-loop type conveyor belt to pass by an image sensor, a magnetic sensor and a thickness sensor in this order from a starting position at a constant speed. 
         [0084]    Step 3, collecting an image. 
         [0085]    The image sensor consists of a transmission sensor for detecting a transmitted image and a reflection sensor for detecting a reflected image. When the front of the current valuable document arrives at the detection range of the detecting sensor, the image sensor starts to operate, and the transmission image and the reflection image of the reference unit and the current valuable document are obtained by an image data acquiring portion in a manner of progressive scan. 
         [0086]    Step 4, collecting a magnetic signal. 
         [0087]    A magnetic signal acquiring portion consists of the magnetic sensor for detecting magnetic signal data of the reference unit and current valuable document. When the beginning of the current valuable document arrives at the detecting sensor, the magnetic sensor starts to operate, and the magnetic signal data of the reference unit and the current valuable document are obtained by the magnetic signal acquiring portion in a manner of progressive scan. 
         [0088]    Step 5, collecting a thickness signal. 
         [0089]    When the front of the current valuable document arrives at the detection range of the detecting sensor, the thickness sensor starts to operate, and the thickness signal data of the reference unit and the current valuable document are obtained by a thickness signal acquiring portion in a manner of progressive scan. 
         [0090]    Step 6, stopping signal collection. 
         [0091]    Data collection work of the image sensor, magnetic sensor and the thickness sensor are stopped when time T (second) has passed ever since the front of the current valuable document arrives at the detection range of the detecting sensor. 
         [0092]      FIG. 4  are images of the reference unit and the current valuable document collected by the image sensor. 
         [0093]    The number of rows of the image data is: 
         [0000]        R=VTL   i   (Equation 6.1).
 
         [0094]    The number of columns of the image data is: 
         [0000]        C=ΦT   i   (Equation 6.2).
 
         [0095]    For the image sensor, the horizontal width is Φ inch, the horizontal resolution is T i  dpi, and the vertical resolution is L i  dpi. 
         [0096]    Due to the line scan performed by the magnetic sensor, the magnetic signal data collected in one time are N discrete data, where N is the number of heads of the magnetic sensor. The whole magnetic signal data of the current valuable document is a numerical matrix Mag with M rows and N columns, as shown in Equation 6.3: 
         [0000]    
       
         
           
             
               
                 
                   
                     Mag 
                     = 
                     
                       ( 
                       
                         
                           
                             
                               d 
                               00 
                             
                           
                           
                             
                               d 
                               01 
                             
                           
                           
                             … 
                           
                           
                             
                               d 
                               
                                 0 
                                 , 
                                 
                                   N 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               d 
                               
                                 0 
                                  
                                 N 
                               
                             
                           
                         
                         
                           
                             
                               d 
                               10 
                             
                           
                           
                             
                               d 
                               11 
                             
                           
                           
                             … 
                           
                           
                             
                               d 
                               
                                 1 
                                 , 
                                 
                                   N 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               d 
                               
                                 1 
                                  
                                 N 
                               
                             
                           
                         
                         
                           
                             ⋮ 
                           
                           
                             ⋮ 
                           
                           
                             
                                 
                             
                           
                           
                             ⋮ 
                           
                           
                             ⋮ 
                           
                         
                         
                           
                             
                               d 
                               
                                 
                                   M 
                                   - 
                                   1 
                                 
                                 , 
                                 0 
                               
                             
                           
                           
                             
                               d 
                               
                                 
                                   M 
                                   - 
                                   1 
                                 
                                 , 
                                 1 
                               
                             
                           
                           
                             … 
                           
                           
                             
                               d 
                               
                                 
                                   M 
                                   - 
                                   1 
                                 
                                 , 
                                 
                                   N 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               d 
                               
                                 
                                   M 
                                   - 
                                   1 
                                 
                                 , 
                                 N 
                               
                             
                           
                         
                         
                           
                             
                               d 
                               
                                 M 
                                 , 
                                 0 
                               
                             
                           
                           
                             
                               d 
                               
                                 M 
                                 , 
                                 1 
                               
                             
                           
                           
                             … 
                           
                           
                             
                               d 
                               
                                 M 
                                 , 
                                 
                                   N 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               d 
                               
                                 M 
                                 , 
                                 N 
                               
                             
                           
                         
                       
                       ) 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     6.3 
                   
                   ) 
                 
               
             
           
         
       
     
         [0097]    where M=VTL m . 
         [0098]    Similarly, due to the line scan performed by the thickness sensor, the thickness signal data collected in one time are T discrete data, where T is the number of the thickness sensors. The full thickness signal data of the current valuable document is a numerical matrix Thi with K rows and T columns, as shown in Equation 6.4: 
         [0000]    
       
         
           
             
               
                 
                   
                     Thi 
                     = 
                     
                       ( 
                       
                         
                           
                             
                               t 
                               00 
                             
                           
                           
                             
                               t 
                               01 
                             
                           
                           
                             … 
                           
                           
                             
                               t 
                               
                                 0 
                                 , 
                                 
                                   T 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               t 
                               
                                 0 
                                  
                                 T 
                               
                             
                           
                         
                         
                           
                             
                               t 
                               10 
                             
                           
                           
                             
                               t 
                               11 
                             
                           
                           
                             … 
                           
                           
                             
                               t 
                               
                                 1 
                                 , 
                                 
                                   T 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               t 
                               
                                 1 
                                  
                                 T 
                               
                             
                           
                         
                         
                           
                             ⋮ 
                           
                           
                             ⋮ 
                           
                           
                             
                                 
                             
                           
                           
                             ⋮ 
                           
                           
                             ⋮ 
                           
                         
                         
                           
                             
                               t 
                               
                                 
                                   K 
                                   - 
                                   1 
                                 
                                 , 
                                 0 
                               
                             
                           
                           
                             
                               t 
                               
                                 
                                   K 
                                   - 
                                   1 
                                 
                                 , 
                                 1 
                               
                             
                           
                           
                             … 
                           
                           
                             
                               t 
                               
                                 
                                   K 
                                   - 
                                   1 
                                 
                                 , 
                                 
                                   T 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               t 
                               
                                 
                                   K 
                                   - 
                                   1 
                                 
                                 , 
                                 T 
                               
                             
                           
                         
                         
                           
                             
                               t 
                               
                                 K 
                                 , 
                                 0 
                               
                             
                           
                           
                             
                               t 
                               
                                 K 
                                 , 
                                 1 
                               
                             
                           
                           
                             … 
                           
                           
                             
                               t 
                               
                                 K 
                                 , 
                                 
                                   T 
                                   - 
                                   1 
                                 
                               
                             
                           
                           
                             
                               t 
                               
                                 K 
                                 , 
                                 T 
                               
                             
                           
                         
                       
                       ) 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     6.4 
                   
                   ) 
                 
               
             
           
         
       
     
         [0099]    where K=VTL t . 
         [0100]    Step 7, identifying the image. 
         [0101]    Step 7.1, cutting the image. 
         [0102]    Preliminary identification is performed on the current valuable document using the image data collected by the image sensor. Since the position of a foreground region in the whole image, which is useful for identifying, is uncertain, the foreground region should be cut from the whole image by boundary detecting and image cutting at first. 
         [0103]    A coordinate system xoy (i.e., pixel coordinate system, each point in the coordinate system represents a pixel point) is set up, in which the direction of a straight line where the left boundary of the whole image collected by the image sensor lies is used as the y axis, the direction of a straight line where the lower boundary of the whole image collected by the image sensor lies is used as the x axis, and the lower left vertex of the whole image collected by the image sensor is used as the origin, as shown in  FIG. 5 . 
         [0104]    It is assumed that the four vertexes of the foreground region are A, B, C and D respectively. It can be obtained by detecting boundary points of the foreground region and then performing linear fit with the boundary points that, 
         [0105]    the equation of the left boundary straight line (i.e., the equation of a straight line where side AB lies) is: 
         [0000]        y=k   1   x+b   1   (Equation 7.1),
 
         [0106]    the equation of the right boundary straight line (i.e., the equation of a straight line where side CD lies) is: 
         [0000]        y=k   2   x+b   2   (Equation 7.2),
 
         [0107]    the equation of the upper boundary straight line (i.e., the equation of a straight line where side AD lies) is: 
         [0000]        y=k   3   x+b   3   (Equation 7.3),
 
         [0108]    and the equation of the lower boundary straight line (i.e., the equation of a straight line where side BC lies) is: 
         [0000]        y=k   4   x+b   4   (Equation 7.4).
 
         [0109]    The image cutting is performed according to the above four boundary straight lines of the foreground region, and rotation correcting is performed on the cut foreground region by using existing image rotation technique. A coordinate system x′o′y′ set up, in which the direction of a straight line where the left boundary of the foreground region of the current valuable document lies is used as ordinate direction, the direction of a straight line where the lower boundary of the foreground region of the current valuable document lies is used as abscissa direction, and the lower left vertex of the foreground region of the current valuable document is used as the origin, as shown in  FIG. 6 . 
         [0110]    Step 7.2, template matching and identifying of image features. 
         [0111]    As shown in  FIG. 7 , corresponding positions of the foreground region are selected to perform template matching and identifying, according to standard template data stored in a storing portion after completing above operations. An image identification result is obtained by template matching and identifying, and if the image identification fails, the current valuable document is exited. To simplify description, it is assumed that the identification result is a right-side-up and upright RMB 100 yuan. 
         [0112]    Step 8, identifying magnetic signal. 
         [0113]    According to the above assumptions, the image identifying of the current valuable document is achieved through the identifying solution, and the identification result is a CNY 100 yuan. M on a banknote can be magnetized (the magnetic signal fluctuates severely) according to priori knowledge. To check whether the magnetic signal of the current valuable document meets the requirement of the magnetic signal feature of the CNY 100 yuan at M, it is necessary to determine the position of the magnetic signal of the current valuable document at M in the whole magnetic signal collected by the magnetic sensor at first. 
         [0114]    Step 8.1, determining the physical positional relationship between the image sensor and the reference unit. 
         [0115]    (1) determining the coordinate of the center W of the reference unit in the pixel coordinate system xoy. 
         [0116]    As shown in  FIG. 8 , the coordinate of W in the coordinate system xoy is obtained easily in a searching region S_area by using existing technique in conjunction with priori knowledge of the imaging position of the reference unit in the identifying system. It is assumed that 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         x 
                         W 
                       
                       = 
                       
                         D 
                         rx 
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         W 
                       
                       = 
                       
                         D 
                         ry 
                       
                     
                   
                 
               
               , 
             
           
         
       
     
         [0117]    where Drx is the distance from W point to Y axis, and Dry is the distance from W point to X axis. 
         [0118]    (2) determining the coordinate of the center W of the reference unit in a physical coordinate system  x ō  y . 
         [0119]    A physical dimension coordinate system  x ō  y  is set up (in which the left endpoint of the image sensor  13  is used as the origin, the horizontal direction of the image sensor  13  is used as abscissa direction, and the paper moving direction is used as ordinate direction), as shown in  FIG. 9 . 
         [0120]    Assuming that the reference unit is still and the image sensor scans at a velocity opposite to the paper moving direction, the number of rows of pixels included from a fixed position of the image sensor to the center line Line_y in the vertical direction of the reference unit is: 
         [0000]        VTL   i   −D   ry . 
         [0121]    Since the vertical resolution of the image sensor is L i  dpi, the physical dimension distance between a straight line where the horizontal direction of the image sensor lies and the center line Line_y in the vertical direction of the reference unit is: 
         [0000]    
       
         
           
             
               
                 
                   VTL 
                   i 
                 
                 - 
                 
                   D 
                   ry 
                 
               
               
                 L 
                 i 
               
             
             . 
           
         
       
     
         [0122]    According to the horizontal resolution T i  of the image sensor, it can be obtained that the coordinate of the center W of the reference unit in the physical coordinate system  x ō  y  is: 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         W 
                       
                       = 
                       
                         
                           D 
                           rx 
                         
                         
                           T 
                           i 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           y 
                           _ 
                         
                         W 
                       
                       = 
                       
                         - 
                         
                           
                             
                               VTL 
                               i 
                             
                             - 
                             
                               D 
                               ry 
                             
                           
                           
                             L 
                             i 
                           
                         
                       
                     
                   
                 
               
               . 
             
           
         
       
     
         [0123]    That is to say, the physical dimension distance from the center W of the reference unit to the ordinate axis of the coordinate system  x ō  y  is 
         [0000]    
       
         
           
             
               
                 D 
                 rx 
               
               
                 T 
                 i 
               
             
             . 
           
         
       
     
         [0124]    (3) determining the coordinate of the center W of the reference unit in a physical coordinate system XOY. 
         [0125]    The physical coordinate system XOY is set up (in which the left vertex of the reference unit  12  is used as the origin, the horizontal direction of the reference unit  12  is used as abscissa direction, and the paper moving direction is used as ordinate direction), as shown in  FIG. 9 . It can be obtained that the coordinate of the center W of the reference unit  12  in the coordinate system XOY is: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       
                         X 
                         W 
                       
                       = 
                       
                         
                           D 
                           re 
                         
                         2 
                       
                     
                   
                 
                 
                   
                     
                       
                         Y 
                         W 
                       
                       = 
                       0. 
                     
                   
                 
               
             
           
         
       
     
         [0126]    That is to say, the physical dimension distance from the center W of the reference unit to the ordinate axis of the coordinate system XOY is 
         [0000]    
       
         
           
             
               
                 D 
                 re 
               
               2 
             
             . 
           
         
       
     
         [0127]    (4) determining the positional relationship between the physical coordinate system XOY and the physical coordinate system  x ō  y  (i.e., the physical relationship between the image sensor  13  and the reference unit  12 ). It is assumed that 
         [0000]    
       
         
           
             
               
                 
                   D 
                   re 
                 
                 2 
               
               &gt; 
               
                 
                   D 
                   rx 
                 
                 
                   T 
                   i 
                 
               
             
             , 
           
         
       
     
         [0000]    that is to say, the left end of the reference unit  12  is closer to the left side than the left end of the image sensor  13 , as shown in  FIG. 9 . Thus, the physical dimension coordinate system  x ō  y  and XOY meet the relationship: 
         [0000]    
       
         
           
             
               
                 
                   { 
                   
                     
                       
                         
                           X 
                           = 
                           
                             
                               x 
                               _ 
                             
                             + 
                             
                               ( 
                               
                                 
                                   
                                     D 
                                     re 
                                   
                                   2 
                                 
                                 - 
                                 
                                   
                                     D 
                                     rx 
                                   
                                   
                                     T 
                                     i 
                                   
                                 
                               
                               ) 
                             
                           
                         
                       
                     
                     
                       
                         
                           Y 
                           = 
                           
                             
                               y 
                               _ 
                             
                             + 
                             
                               
                                 ( 
                                 
                                   
                                     
                                       VTL 
                                       i 
                                     
                                     - 
                                     
                                       D 
                                       ry 
                                     
                                   
                                   
                                     L 
                                     i 
                                   
                                 
                                 ) 
                               
                               . 
                             
                           
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     8.1 
                   
                   ) 
                 
               
             
           
         
       
     
         [0128]    Step 8.2, determining the physical positional relationship between the magnetic sensor and the reference unit. 
         [0129]    (1) determining that the position of the magnetic signal data of the center W of the reference unit is in the numerical matrix of the whole magnetic signal data: 
         [0000]    
       
         
           
             Mag 
             = 
             
               
                 ( 
                 
                   
                     
                       
                         d 
                         00 
                       
                     
                     
                       
                         d 
                         01 
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           0 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           0 
                            
                           N 
                         
                       
                     
                   
                   
                     
                       
                         d 
                         10 
                       
                     
                     
                       
                         d 
                         11 
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           1 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           1 
                            
                           N 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       
                           
                       
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           0 
                         
                       
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           1 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           N 
                         
                       
                     
                   
                   
                     
                       
                         d 
                         
                           M 
                           , 
                           0 
                         
                       
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           1 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           N 
                         
                       
                     
                   
                 
                 ) 
               
               . 
             
           
         
       
     
         [0130]    The position of the magnetic signal data of W in the matrix Mag can be determined easily by using existing searching technique according to priori knowledge of the magnetic signal of the reference unit in the identifying system. It is assumed that the magnetic signal data at W is determined to be in the D wy  and the D wx  of the matrix Mag, i.e., 
         [0000]        W   data   =Mag ( D   wy   ,D   wx ). 
         [0131]    (2) determining the coordinate of the center W of the reference unit in a physical coordinate system x″o″y″. 
         [0132]    The coordinate system x″o″y″ is set up (in which the position of the first left head of the magnetic sensor  14  is used as the origin, the horizontal direction of the image sensor  13  is used as abscissa direction, and the paper moving direction is used as ordinate direction), as shown in  FIG. 9 . Assuming similarly that the reference unit is still, it can be obtained from (1) in this section that the number of rows of the magnetic signal matrix collected is D wy , when the magnetic sensor  14  scans to the center W of the reference unit  12  at a velocity opposite to the paper moving direction. According to the number of heads N of the magnetic sensor  14  and the vertical resolution L m  dpi, the coordinate of W in the physical coordinate system x″o″y″ is: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       
                         x 
                         w 
                         ″ 
                       
                       = 
                       
                         
                           
                             D 
                             wx 
                           
                           N 
                         
                         · 
                         Φ 
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         w 
                         ″ 
                       
                       = 
                       
                         - 
                         
                           
                             
                               D 
                               wy 
                             
                             
                               L 
                               m 
                             
                           
                           . 
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0133]    (3) determining the positional relationship between the physical dimension coordinate system x″o″y″ and the physical dimension coordinate system XOY (i.e., the positional relationship between the magnetic sensor  14  and the reference unit  12 ). 
         [0134]    It is assumed that 
         [0000]    
       
         
           
             
               
                 
                   D 
                   re 
                 
                 2 
               
               &gt; 
               
                 
                   
                     D 
                     wx 
                   
                   N 
                 
                 · 
                 Φ 
               
             
             , 
           
         
       
     
         [0000]    that is to say, the left end of the reference unit  12  is closer to the left side than the left end of the magnetic sensor  14 , as shown in  FIG. 9 . Thus, the physical coordinate systems x″o″y″ and XOY meet the relationship: 
         [0000]    
       
         
           
             
               
                 
                   { 
                   
                     
                       
                         
                           X 
                           = 
                           
                             
                               x 
                               ″ 
                             
                             + 
                             
                               ( 
                               
                                 
                                   
                                     D 
                                     re 
                                   
                                   2 
                                 
                                 - 
                                 
                                   
                                     
                                       D 
                                       wx 
                                     
                                     N 
                                   
                                   · 
                                   Φ 
                                 
                               
                               ) 
                             
                           
                         
                       
                     
                     
                       
                         
                           Y 
                           = 
                           
                             
                               y 
                               ″ 
                             
                             + 
                             
                               
                                 
                                   D 
                                   wy 
                                 
                                 
                                   L 
                                   m 
                                 
                               
                               . 
                             
                           
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     8.2 
                   
                   ) 
                 
               
             
           
         
       
     
         [0135]    Step 8.3, determining the positional relationship between the magnetic sensor and the image sensor. 
         [0136]    Generally, it is assumed that the image sensor  13  and the magnetic sensor  14  each is aligned ideally, that is to say, T(  x ō  y ,x″o″y″) meets: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       
                         x 
                         ″ 
                       
                       = 
                       
                         x 
                         _ 
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         ″ 
                       
                       = 
                       
                         
                           y 
                           _ 
                         
                         + 
                         
                           Δ 
                            
                           
                               
                           
                            
                           
                             y 
                             . 
                           
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0137]    Where Δy represents the spacing distance between the image sensor  13  and the magnetic sensor  14  along the transporting passage. However, due to the limitation of manufacturing process and long time usage of the identification system for valuable document, sensors are not aligned ideally with each other. By combining Equation 8.1 with Equation 8.2: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       X 
                       = 
                       
                         
                           x 
                           _ 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 D 
                                 rx 
                               
                               
                                 T 
                                 i 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       Y 
                       = 
                       
                         
                           y 
                           _ 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 VTL 
                                 i 
                               
                               - 
                               
                                 D 
                                 ry 
                               
                             
                             
                               L 
                               i 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       X 
                       = 
                       
                         
                           x 
                           ″ 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 
                                   D 
                                   wx 
                                 
                                 N 
                               
                               · 
                               Φ 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       Y 
                       = 
                       
                         
                           y 
                           ″ 
                         
                         + 
                         
                           
                             
                               D 
                               wy 
                             
                             
                               L 
                               m 
                             
                           
                           . 
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0138]    It is easy to obtain that the real positional relationship Π(  x ō  y ,x″o″y″) between the physical coordinate system x″o″y″ and the physical coordinate system  x ō  y  (i.e., the physical position corresponding relationship between the left end of the magnetic sensor  14  and the left end of the image sensor  13 ) is: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       
                         x 
                         ″ 
                       
                       = 
                       
                         
                           x 
                           _ 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 D 
                                 rx 
                               
                               
                                 T 
                                 i 
                               
                             
                           
                           ) 
                         
                         - 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 
                                   D 
                                   wx 
                                 
                                 N 
                               
                               · 
                               Φ 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           y 
                           ″ 
                         
                         = 
                         
                           
                             y 
                             _ 
                           
                           + 
                           
                             ( 
                             
                               
                                 
                                   VTL 
                                   i 
                                 
                                 - 
                                 
                                   D 
                                   ry 
                                 
                               
                               
                                 L 
                                 i 
                               
                             
                             ) 
                           
                           - 
                           
                             
                               D 
                               wy 
                             
                             
                               L 
                               m 
                             
                           
                         
                       
                       , 
                     
                   
                 
               
             
           
         
       
     
         [0139]    which can be simplified as: 
         [0000]    
       
         
           
             
               
                 
                   { 
                   
                     
                       
                         
                           
                             x 
                             ″ 
                           
                           = 
                           
                             
                               x 
                               _ 
                             
                             + 
                             
                               ( 
                               
                                 
                                   
                                     
                                       D 
                                       wx 
                                     
                                     N 
                                   
                                   · 
                                   Φ 
                                 
                                 - 
                                 
                                   
                                     D 
                                     rx 
                                   
                                   
                                     T 
                                     i 
                                   
                                 
                               
                               ) 
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             y 
                             ″ 
                           
                           = 
                           
                             
                               y 
                               _ 
                             
                             + 
                             
                               ( 
                               
                                 
                                   
                                     VTL 
                                     i 
                                   
                                   - 
                                   
                                     D 
                                     ry 
                                   
                                 
                                 
                                   L 
                                   i 
                                 
                               
                               ) 
                             
                             - 
                             
                               
                                 
                                   D 
                                   wy 
                                 
                                 
                                   L 
                                   m 
                                 
                               
                               . 
                             
                           
                         
                       
                     
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     8.3 
                   
                   ) 
                 
               
             
           
         
       
     
         [0140]    It can be seen from Equation 8.3 that the positional relationship between the magnetic sensor  14  and the image sensor  13  is unrelated to the setting of the reference unit  12 . That is to say, the reference unit  12  only serves as a transition bridge used to locate the position of the magnetic sensor  14  by using the position of the image sensor  13  in the identifying system, and causes no additional error to the identifying system. 
         [0141]    Step 8.4, combination of the image signal and the magnetic signal, and locating of the magnetic signal by using the image signal. 
         [0142]    According to the result of the image identification (i.e., assuming that the current valuable document is a right-side-up and upright CNY 100 yuan) and the priori knowledge of the right-side-up and upright CNY 100 yuan, it is assumed that the physical distance from M to the upper edge of the current valuable document is d MQ  and the physical distance from M to the left edge of the current valuable document is d MP , as shown in  FIG. 10 . 
         [0143]    In the pixel coordinate system xoy, as shown in  FIG. 11 , by combining the straight line equation of the left boundary and the straight line equation of the upper boundary of the foreground region of the valuable document: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       y 
                       = 
                       
                         
                           
                             k 
                             1 
                           
                            
                           x 
                         
                         + 
                         
                           b 
                           1 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         = 
                         
                           
                             
                               k 
                               3 
                             
                              
                             x 
                           
                           + 
                           
                             b 
                             3 
                           
                         
                       
                       , 
                     
                   
                 
               
             
           
         
       
     
         [0144]    the coordinate of the upper left vertex A in the pixel coordinate system is obtained and assumed as (x A , y A ) 
         [0145]    By combining the straight line equation of the left boundary and the straight line equation of the lower boundary of the foreground region of the valuable document: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       y 
                       = 
                       
                         
                           
                             k 
                             1 
                           
                            
                           x 
                         
                         + 
                         
                           b 
                           1 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         = 
                         
                           
                             
                               k 
                               4 
                             
                              
                             x 
                           
                           + 
                           
                             b 
                             4 
                           
                         
                       
                       , 
                     
                   
                 
               
             
           
         
       
     
         [0146]    the coordinate of the lower left vertex B in the pixel coordinate system is obtained and assumed as (x B , y B ). 
         [0147]    By combining the straight line equation of the right boundary and the straight line equation of the upper boundary of the foreground region of the valuable document: 
         [0000]    
       
         
           
               
             
               { 
               
                 
                   
                     
                       y 
                       = 
                       
                         
                           
                             k 
                             2 
                           
                            
                           x 
                         
                         + 
                         
                           b 
                           2 
                         
                       
                     
                   
                 
                 
                   
                     
                       y 
                       = 
                       
                         
                           
                             k 
                             3 
                           
                            
                           x 
                         
                         + 
                         
                           
                             b 
                             3 
                           
                           . 
                         
                       
                     
                   
                 
               
             
           
         
       
     
         [0148]    the coordinate of the upper right vertex D in the pixel coordinate system is obtained and assumed as (x D , Y D ). 
         [0149]    The position of the valuable document in the physical coordinate system  x ō  y  is as shown in  FIG. 12  when the image sensor stops scanning (i.e., after time T second, the reference unit and the current valuable document all passes the image sensor, the magnetic sensor and the thickness sensor). According to the horizontal resolution T i  dpi and the vertical resolution L i  dpi of the image sensor, it can be obtained that the coordinates of the vertexes A, B and D of the valuable document in the physical dimension coordinate system  x ō  y  are: 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                       = 
                       
                         
                           x 
                           A 
                         
                         
                           T 
                           i 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                       = 
                       
                         
                           y 
                           A 
                         
                         
                           L 
                           i 
                         
                       
                     
                   
                 
               
               , 
               
                 
 
               
                
               
                 { 
                 
                   
                     
                       
                         
                           
                             
                               x 
                               _ 
                             
                             B 
                           
                           = 
                           
                             
                               x 
                               B 
                             
                             
                               T 
                               i 
                             
                           
                         
                       
                     
                     
                       
                         
                           
                             
                               y 
                               _ 
                             
                             B 
                           
                           = 
                           
                             
                               y 
                               B 
                             
                             
                               L 
                               i 
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     { 
                     
                       
                         
                           
                             
                               
                                 
                                   x 
                                   _ 
                                 
                                 D 
                               
                               = 
                               
                                 
                                   x 
                                   D 
                                 
                                 
                                   T 
                                   i 
                                 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   y 
                                   _ 
                                 
                                 D 
                               
                               = 
                               
                                 
                                   y 
                                   D 
                                 
                                 
                                   L 
                                   i 
                                 
                               
                             
                           
                         
                       
                       , 
                     
                   
                 
               
             
           
         
       
     
         [0150]    By using the coordinates of the upper left vertex A (  x       A     ,  y       A     )  and the upper right vertex D (  x       D     ,  y       D     ) , it can be obtained that the straight line equation of the upper boundary of the current valuable document in the physical dimension coordinate system  x ō  y  is: 
         [0000]    
       
         
           
             
               
                 
                   y 
                   _ 
                 
                 - 
                 
                   
                     
                       y 
                       _ 
                     
                     A 
                   
                   
                     L 
                     i 
                   
                 
               
               = 
               
                 
                   
                     
                       
                         
                           y 
                           _ 
                         
                         D 
                       
                       
                         L 
                         i 
                       
                     
                     - 
                     
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                       
                         L 
                         i 
                       
                     
                   
                   
                     
                       
                         
                           x 
                           _ 
                         
                         D 
                       
                       
                         T 
                         i 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                       
                         T 
                         i 
                       
                     
                   
                 
                  
                 
                   ( 
                   
                     
                       x 
                       _ 
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                       
                         T 
                         i 
                       
                     
                   
                   ) 
                 
               
             
             , 
           
         
       
     
         [0151]    which can be simplified as: 
         [0000]    
       
         
           
             
               y 
               _ 
             
             = 
             
               
                 
                   
                     
                       T 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             y 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             y 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                  
                 
                   
                     x 
                     _ 
                   
                   A 
                 
               
               + 
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         D 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         D 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                 . 
               
             
           
         
       
     
         [0152]    The physical distance from M on the valuable document to the upper boundary of the valuable document is d MQ , thus in the physical coordinate system  x ō  y , the straight line equation of line  1  (as shown in  FIG. 12 ) which passes through M and is parallel to the upper boundary of the current valuable document is: 
         [0000]    
       
         
           
             
               y 
               _ 
             
             = 
             
               
                 
                   
                     
                       T 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             y 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             y 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                  
                 
                   x 
                   _ 
                 
               
               + 
               
                 
                   [ 
                   
                     
                       
                         
                           
                             x 
                             A 
                           
                            
                           
                             
                               y 
                               _ 
                             
                             D 
                           
                         
                         - 
                         
                           
                             x 
                             D 
                           
                            
                           
                             
                               y 
                               _ 
                             
                             A 
                           
                         
                       
                       
                         
                           L 
                           i 
                         
                          
                         
                           ( 
                           
                             
                               
                                 x 
                                 _ 
                               
                               D 
                             
                             - 
                             
                               
                                 x 
                                 _ 
                               
                               A 
                             
                           
                           ) 
                         
                       
                     
                     - 
                     
                       
                         d 
                         MQ 
                       
                        
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     T 
                                     i 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           y 
                                           _ 
                                         
                                         D 
                                       
                                       - 
                                       
                                         
                                           y 
                                           _ 
                                         
                                         A 
                                       
                                     
                                     ) 
                                   
                                 
                                 
                                   
                                     L 
                                     i 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           x 
                                           _ 
                                         
                                         D 
                                       
                                       - 
                                       
                                         
                                           x 
                                           _ 
                                         
                                         A 
                                       
                                     
                                     ) 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           1 
                         
                       
                     
                   
                   ] 
                 
                 . 
               
             
           
         
       
     
         [0153]    Letting: 
         [0000]    
       
         
           
             
               
                 k 
                 
                   M 
                    
                   
                       
                   
                    
                   1 
                 
               
               = 
               
                 
                   
                     T 
                     i 
                   
                    
                   
                     ( 
                     
                       
                         
                           y 
                           _ 
                         
                         D 
                       
                       - 
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                     ) 
                   
                 
                 
                   
                     L 
                     i 
                   
                    
                   
                     ( 
                     
                       
                         
                           x 
                           _ 
                         
                         D 
                       
                       - 
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                     
                     ) 
                   
                 
               
             
             , 
             
               
                 and 
                  
                 
                     
                 
                  
                 
                   b 
                   
                     M 
                      
                     
                         
                     
                      
                     1 
                   
                 
               
               = 
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         D 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         D 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           D 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                 - 
                 
                   
                     d 
                     MQ 
                   
                    
                   
                     
                       
                         
                           ( 
                           
                             
                               
                                 T 
                                 i 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       y 
                                       _ 
                                     
                                     D 
                                   
                                   - 
                                   
                                     
                                       y 
                                       _ 
                                     
                                     A 
                                   
                                 
                                 ) 
                               
                             
                             
                               
                                 L 
                                 i 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     D 
                                   
                                   - 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     A 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       1 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0154]    the straight line equation of the line  1  is: 
         [0000]          y =k   M1     x +b   M1   (Equation 8.4).
 
         [0155]    By using the coordinates of the upper left vertex A (  x       A     ,  y       A     )  and the lower left vertex B (  x       B     ,  y       B     ) , it can be obtained that the straight line equation of the left boundary of the current valuable document in the physical coordinate system  x ō  y  is: 
         [0000]    
       
         
           
             
               
                 
                   y 
                   _ 
                 
                 - 
                 
                   
                     
                       y 
                       _ 
                     
                     A 
                   
                   
                     L 
                     i 
                   
                 
               
               = 
               
                 
                   
                     
                       
                         
                           y 
                           _ 
                         
                         B 
                       
                       
                         L 
                         i 
                       
                     
                     - 
                     
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                       
                         L 
                         i 
                       
                     
                   
                   
                     
                       
                         
                           x 
                           _ 
                         
                         B 
                       
                       
                         T 
                         i 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                       
                         T 
                         i 
                       
                     
                   
                 
                  
                 
                   ( 
                   
                     
                       x 
                       _ 
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                       
                         T 
                         i 
                       
                     
                   
                   ) 
                 
               
             
             , 
           
         
       
     
         [0156]    which can be simplified as: 
         [0000]    
       
         
           
             
               y 
               _ 
             
             = 
             
               
                 
                   
                     
                       T 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             y 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             y 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                  
                 
                   x 
                   _ 
                 
               
               + 
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         B 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         B 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                 . 
               
             
           
         
       
     
         [0157]    So in the physical dimension coordinate system  x ō  y , the straight line equation of line  2  (as shown in  FIG. 12 ) which passes through M and is parallel to the left boundary of the current valuable document is: 
         [0000]    
       
         
           
             
               y 
               _ 
             
             = 
             
               
                 
                   
                     
                       T 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             y 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             y 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                  
                 
                   x 
                   _ 
                 
               
               + 
               
                 
                   [ 
                   
                     
                       
                         
                           
                             
                               x 
                               _ 
                             
                             A 
                           
                            
                           
                             
                               y 
                               _ 
                             
                             B 
                           
                         
                         - 
                         
                           
                             
                               x 
                               _ 
                             
                             B 
                           
                            
                           
                             
                               y 
                               _ 
                             
                             A 
                           
                         
                       
                       
                         
                           L 
                           i 
                         
                          
                         
                           ( 
                           
                             
                               
                                 x 
                                 _ 
                               
                               B 
                             
                             - 
                             
                               
                                 x 
                                 _ 
                               
                               A 
                             
                           
                           ) 
                         
                       
                     
                     + 
                     
                       
                         d 
                         MP 
                       
                        
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     T 
                                     i 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           y 
                                           _ 
                                         
                                         B 
                                       
                                       - 
                                       
                                         
                                           y 
                                           _ 
                                         
                                         A 
                                       
                                     
                                     ) 
                                   
                                 
                                 
                                   
                                     L 
                                     i 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           x 
                                           _ 
                                         
                                         B 
                                       
                                       - 
                                       
                                         
                                           x 
                                           _ 
                                         
                                         A 
                                       
                                     
                                     ) 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           1 
                         
                       
                     
                   
                   ] 
                 
                 . 
               
             
           
         
       
     
         [0158]    Letting: 
         [0000]    
       
         
           
             
               
                 k 
                 
                   M 
                    
                   
                       
                   
                    
                   2 
                 
               
               = 
               
                 
                   
                     T 
                     i 
                   
                    
                   
                     ( 
                     
                       
                         
                           y 
                           _ 
                         
                         B 
                       
                       - 
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                     ) 
                   
                 
                 
                   
                     L 
                     i 
                   
                    
                   
                     ( 
                     
                       
                         
                           x 
                           _ 
                         
                         B 
                       
                       - 
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                     
                     ) 
                   
                 
               
             
             , 
             
               
                 and 
                  
                 
                     
                 
                  
                 
                   b 
                   
                     M 
                      
                     
                         
                     
                      
                     2 
                   
                 
               
               = 
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         A 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         B 
                       
                     
                     - 
                     
                       
                         
                           x 
                           _ 
                         
                         B 
                       
                        
                       
                         
                           y 
                           _ 
                         
                         A 
                       
                     
                   
                   
                     
                       L 
                       i 
                     
                      
                     
                       ( 
                       
                         
                           
                             x 
                             _ 
                           
                           B 
                         
                         - 
                         
                           
                             x 
                             _ 
                           
                           A 
                         
                       
                       ) 
                     
                   
                 
                 + 
                 
                   
                     d 
                     MP 
                   
                    
                   
                     
                       
                         
                           ( 
                           
                             
                               
                                 T 
                                 i 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       y 
                                       _ 
                                     
                                     B 
                                   
                                   - 
                                   
                                     
                                       y 
                                       _ 
                                     
                                     A 
                                   
                                 
                                 ) 
                               
                             
                             
                               
                                 L 
                                 i 
                               
                                
                               
                                 ( 
                                 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     B 
                                   
                                   - 
                                   
                                     
                                       x 
                                       _ 
                                     
                                     A 
                                   
                                 
                                 ) 
                               
                             
                           
                           ) 
                         
                         2 
                       
                       + 
                       1 
                     
                   
                 
               
             
             , 
           
         
       
     
         [0159]    the straight line equation of line  2  is: 
         [0000]          y =k   M2     x +b   M2   (Equation 8.5).
 
         [0160]    By combining the straight line Equations 8.4 and 8.5: 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         y 
                         _ 
                       
                       = 
                       
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                            
                           
                             x 
                             _ 
                           
                         
                         + 
                         
                           b 
                           
                             M 
                              
                             
                                 
                             
                              
                             1 
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         _ 
                       
                       = 
                       
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                            
                           
                             x 
                             _ 
                           
                         
                         + 
                         
                           b 
                           
                             M 
                              
                             
                                 
                             
                              
                             2 
                           
                         
                       
                     
                   
                 
               
               , 
             
           
         
       
     
         [0161]    it can be obtained that the coordinate of M on the current valuable document in the physical coordinate system  x ō  y  is: 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         
                           x 
                           _ 
                         
                         M 
                       
                       = 
                       
                         
                           
                             b 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                           - 
                           
                             b 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                         
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                           - 
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         
                           y 
                           _ 
                         
                         M 
                       
                       = 
                       
                         
                           
                             
                               b 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                              
                             
                               k 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                           
                           - 
                           
                             
                               b 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                              
                             
                               k 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                           
                         
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                           - 
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                         
                       
                     
                   
                 
               
               . 
             
           
         
       
     
         [0162]    According to the positional relationship between the physical coordinate system x″o″y″ and the physical coordinate system  x ō  y  (i.e., the physical position corresponding relationship between the left endpoint of the magnetic sensor and the left endpoint of the image sensor) described in Equation 8.3, it can be obtained that the coordinate of M on the current valuable document in the physical dimension coordinate system x″o″y″ is: 
         [0000]    
       
         
           
             { 
             
               
                 
                   
                     
                       
                         x 
                         M 
                         ″ 
                       
                       = 
                       
                         
                           
                             x 
                             _ 
                           
                           M 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 D 
                                 rx 
                               
                               
                                 T 
                                 i 
                               
                             
                           
                           ) 
                         
                         - 
                         
                           ( 
                           
                             
                               
                                 D 
                                 re 
                               
                               2 
                             
                             - 
                             
                               
                                 
                                   D 
                                   wx 
                                 
                                 N 
                               
                               · 
                               Φ 
                             
                           
                           ) 
                         
                       
                     
                   
                 
                 
                   
                     
                       
                         y 
                         M 
                         ″ 
                       
                       = 
                       
                         
                           
                             y 
                             _ 
                           
                           M 
                         
                         + 
                         
                           ( 
                           
                             
                               
                                 VTL 
                                 i 
                               
                               - 
                               
                                 D 
                                 ry 
                               
                             
                             
                               L 
                               i 
                             
                           
                           ) 
                         
                         - 
                         
                           
                             D 
                             wy 
                           
                           
                             L 
                             m 
                           
                         
                       
                     
                   
                 
               
               . 
             
           
         
       
     
         [0163]    That is: 
         [0000]    
       
         
           
             
               
                 
                   { 
                   
                     
                       
                         
                           
                             
                               x 
                               M 
                               ″ 
                             
                             = 
                             
                               
                                 
                                   
                                     b 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       1 
                                     
                                   
                                   - 
                                   
                                     b 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       2 
                                     
                                   
                                 
                                 
                                   
                                     k 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       2 
                                     
                                   
                                   - 
                                   
                                     k 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       1 
                                     
                                   
                                 
                               
                               + 
                               
                                 ( 
                                 
                                   
                                     
                                       
                                         D 
                                         wx 
                                       
                                       N 
                                     
                                     · 
                                     Φ 
                                   
                                   - 
                                   
                                     
                                       D 
                                       rx 
                                     
                                     
                                       T 
                                       i 
                                     
                                   
                                 
                                 ) 
                               
                             
                           
                         
                       
                       
                         
                           
                             
                               y 
                               M 
                               ″ 
                             
                             = 
                             
                               
                                 
                                   
                                     
                                       b 
                                       
                                         M 
                                          
                                         
                                             
                                         
                                          
                                         1 
                                       
                                     
                                      
                                     
                                       k 
                                       
                                         M 
                                          
                                         
                                             
                                         
                                          
                                         2 
                                       
                                     
                                   
                                   - 
                                   
                                     
                                       b 
                                       
                                         M 
                                          
                                         
                                             
                                         
                                          
                                         2 
                                       
                                     
                                      
                                     
                                       k 
                                       
                                         M 
                                          
                                         
                                             
                                         
                                          
                                         1 
                                       
                                     
                                   
                                 
                                 
                                   
                                     k 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       2 
                                     
                                   
                                   - 
                                   
                                     k 
                                     
                                       M 
                                        
                                       
                                           
                                       
                                        
                                       1 
                                     
                                   
                                 
                               
                               + 
                               
                                 [ 
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           VTL 
                                           i 
                                         
                                         - 
                                         
                                           D 
                                           ry 
                                         
                                       
                                       
                                         L 
                                         i 
                                       
                                     
                                     ) 
                                   
                                   - 
                                   
                                     
                                       D 
                                       wy 
                                     
                                     
                                       L 
                                       m 
                                     
                                   
                                 
                                 ] 
                               
                             
                           
                         
                       
                     
                     . 
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     8.6 
                   
                   ) 
                 
               
             
           
         
       
     
         [0164]    Letting: 
         [0000]    
       
         
           
             
               
                 d 
                 M 
               
               = 
               
                 
                   
                     
                       x 
                       M 
                       ″ 
                     
                     Φ 
                   
                   · 
                   N 
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           
                             b 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                           - 
                           
                             b 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                         
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                           - 
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                         
                       
                       + 
                       
                         ( 
                         
                           
                             
                               
                                 D 
                                 wx 
                               
                               N 
                             
                             · 
                             Φ 
                           
                           - 
                           
                             
                               D 
                               rx 
                             
                             
                               T 
                               i 
                             
                           
                         
                         ) 
                       
                     
                     ] 
                   
                   · 
                   
                     N 
                     Φ 
                   
                 
               
             
             , 
             and 
           
         
       
       
         
           
             
               
                 d 
                 N 
               
               = 
               
                 
                   
                     y 
                     M 
                     ″ 
                   
                   · 
                   
                     L 
                     m 
                   
                 
                 = 
                 
                   
                     [ 
                     
                       
                         
                           
                             
                               b 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                              
                             
                               k 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                           
                           - 
                           
                             
                               b 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 2 
                               
                             
                              
                             
                               k 
                               
                                 M 
                                  
                                 
                                     
                                 
                                  
                                 1 
                               
                             
                           
                         
                         
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               2 
                             
                           
                           - 
                           
                             k 
                             
                               M 
                                
                               
                                   
                               
                                
                               1 
                             
                           
                         
                       
                       + 
                       
                         [ 
                         
                           
                             ( 
                             
                               
                                 
                                   VTL 
                                   i 
                                 
                                 - 
                                 
                                   D 
                                   ry 
                                 
                               
                               
                                 L 
                                 i 
                               
                             
                             ) 
                           
                           - 
                           
                             
                               D 
                               wy 
                             
                             
                               L 
                               m 
                             
                           
                         
                         ] 
                       
                     
                     ] 
                   
                   · 
                   
                     L 
                     m 
                   
                 
               
             
             , 
           
         
       
     
         [0165]    the magnetic signal data of M being in row R M  and column C M  of the whole magnetic signal data matrix meets: 
         [0166]    the position of rows: R M =[d M ] or R M =[d M ]+1, and 
         [0167]    the position of columns: C M =[d N ] or C M =[d N ]+1. 
         [0168]    Where [α] represents performing rounding operation on α. So far, the locating of the magnetic signal by using the reference unit as the transition bridge from the image sensor signal is achieved. 
         [0169]    Step 8.5, precisely identifying the magnetic signal. 
         [0170]    According to above locating, in the matrix of the whole magnetic signal matrix 
         [0000]    
       
         
           
             
               Mag 
               = 
               
                 ( 
                 
                   
                     
                       
                         d 
                         00 
                       
                     
                     
                       
                         d 
                         01 
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           0 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           0 
                            
                           N 
                         
                       
                     
                   
                   
                     
                       
                         d 
                         10 
                       
                     
                     
                       
                         d 
                         11 
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           1 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           1 
                            
                           N 
                         
                       
                     
                   
                   
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                     
                       
                           
                       
                     
                     
                       ⋮ 
                     
                     
                       ⋮ 
                     
                   
                   
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           0 
                         
                       
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           1 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           
                             M 
                             - 
                             1 
                           
                           , 
                           N 
                         
                       
                     
                   
                   
                     
                       
                         d 
                         
                           M 
                           , 
                           0 
                         
                       
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           1 
                         
                       
                     
                     
                       … 
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           
                             N 
                             - 
                             1 
                           
                         
                       
                     
                     
                       
                         d 
                         
                           M 
                           , 
                           N 
                         
                       
                     
                   
                 
                 ) 
               
             
             , 
           
         
       
     
         [0000]    the data in row R M  and column C M  is the magnetic signal data at M on the current valuable document. 
         [0171]    According to the assumption that the identification result is a right-side-up and upright RMB 100 yuan in the image identification, the magnetic signal data of the neighborhood of Mag(R M ,C M ) are detected to determine whether they meet the magnetic signal rule of real right-side-up and upright RMB 100 yuan at M. 
         [0172]    If the magnetic signal data of the neighborhood of Mag(R M ,C M ) meet the magnetic signal rule at M on the real right-side-up and upright RMB 100 yuan, it is determined that the magnetic signal identification result is also a RMB 100 yuan, which is in conformity with the image identification result. 
         [0173]    Otherwise, it is determined that the magnetic signal identification result is not a RMB 100 yuan, which is not in conformity with the image identification result. Therefore, the current valuable document is a fake RMB 100 yuan, and will be rejected. 
       Second Embodiment 
       [0174]    This embodiment gives specific introduction of a device for identifying a valuable document according to the present invention. 
         [0175]    Referring to  FIG. 13 , the device for identifying a valuable document includes the following portions. 
         [0176]    A controlling portion  16 , adapted to control the work flow of the whole device. 
         [0177]    A transporting system  20 , referred to  FIG. 14  and  FIG. 15  for the specific details of the transporting system. At least two sensors adapted to acquire machine readable information are installed on an upper wall  23  of the transporting system passage. Ends of two close-loop type conveyor belts  22  are fixed to a side wall  25  of the passage through a transmission shaft, and the transmission shaft  21  drives the conveyor belt  22  to run when a valuable document is being transported in the transporting passage. In the present invention, the preferable sensors are as follows. 
         [0178]    An image sensor  13 , adapted to acquire image data of a valuable document placed in transmission and reflection. As shown in  FIG. 16 , it is assumed that the horizontal width, the horizontal resolution and the vertical resolution of the image sensor  13  in the present embodiment are Φ inch, T i  dpi and L i  dpi, respectively. 
         [0179]    A magnetic sensor  14 , i.e., a magnetic signal data acquiring portion, adapted to acquire magnetic signal data of the valuable document placed. As shown in  FIG. 16 , it is assumed that the magnetic sensor  14  has N heads evenly distributed in the horizontal direction with a width of Φ inch and the vertical resolution of the magnetic sensor is L m  dpi. 
         [0180]    A thickness signal  15 , i.e., a thickness data acquiring portion, adapted to acquire thickness data of the valuable document placed. As shown in  FIG. 16 , it is assumed that the thickness sensor  15  has T thickness sensing heads evenly distributed in the horizontal direction with a width of Γ inch and the vertical resolution of the magnetic sensor is L t  dpi. 
         [0181]    A reference unit  12 , i.e., two rectangular reference units adapted to determine spatial position relationship between different sensors. As shown in  FIG. 17 , it is assumed that the physical dimension length, center line in the horizontal direction, center line in the vertical direction and the intersection of both center lines are D re , Line_x, Line_y and W, respectively, then W is the center of the reference unit. Each end of the reference unit  12  touches with each of the two close-loop type conveyor belts, and the reference unit moves with the movement of the conveyors when the conveyors are moving, as shown in  FIG. 14  and  FIG. 15 . 
         [0182]    The reference unit has the following features: 
         [0183]    (1) the reference unit has the center line as a dividing line, the left half portion is dark (nontransparent), and the right half portion is transparent; 
         [0184]    (2) the dark portion of the reference unit can be magnetized; and 
         [0185]    (3) the thickness of the dark portion (left half portion) is significantly greater than that of the transparent portion (right half portion). 
         [0186]    When the valuable document is transported on the transporting passage, the reference unit is attached on the conveyor belt and passes by the image sensor, the magnetic sensor and the thickness sensor at the same speed as the valuable document; that is to say, signals collected by the image sensor, the magnetic sensor and the thickness sensor each time include both a signal of the reference unit and a signal of the current valuable document. 
         [0187]    A cooperative controlling portion  21 , as shown in  FIG. 13 , adapted to cooperatively control the linear speed of the close-loop type conveyor belt to be equal to the transporting speed of the valuable document, so that the transporting speed of the reference unit will be the same as the transporting speed of the valuable document. 
         [0188]    Moreover, the cooperative controlling portion  21  controls the reset of the reference unit, that is, the cooperative controlling portion controls the close-loop type conveyor belt to transport the reference unit to a specified starting position after the signal collection of each valuable document is finished, as shown in  FIG. 14  and  FIG. 15 . The starting position is located between the detecting sensor and the image sensor. 
         [0189]    A storing portion  18 , adapted to store a standard template needed to identify the image signal of the current valuable document. 
         [0190]    A processor  17 , adapted to identify the image signal, the magnetic signal and the thickness signal to achieve the identification of the current valuable document. 
         [0191]    A displaying portion  19 , adapted to display information such as currency, denomination, version and the like if the current valuable document (e.g., banknote) is identified as a legal document (e.g., authentic banknote); and adapted to display “Not Accept!” if the current valuable document is unauthentic. 
         [0192]    The device for identifying a valuable document according to the present invention further includes: 
         [0193]    a detecting sensor  11 , provided at a starting position of a transporting wall, and adapted to detect the arrival of the valuable document and to trigger other sensors to work, as shown in  FIG. 14  and  FIG. 15 ; 
         [0194]    As shown in  FIG. 18 , the processor  17  according to the present invention further includes the following modules (soft modules belonging to the processor). 
         [0195]    An image cutting portion  31 , adapted to cut a foreground region which is useful for identification from a background region. 
         [0196]    An image-deviation rectifying portion  32 , adapted to judge whether the foreground region is inclined and deviated, and to perform image-deviation rectification using existing correcting technique. 
         [0197]    An image identifying portion  33 , adapted to perform matching and identifying according to the image data of the current valuable document and the standard template stored in the storing portion. 
         [0198]    A spatial positional relationship revising portion  34  for the image sensor and the magnetic sensor, adapted to revise the spatial positional relationship between the image sensor and the magnetic sensor by using the distribution characteristics of the image of the reference unit in the whole image collected by the image sensor and the distribution characteristics of the magnetic signal of the reference unit in the whole magnetic signal collected by the magnetic sensor, to obtain the practical position constraint between the two sensors at the present position. 
         [0199]    A combining portion  35  for image information and magnetic information, the image information and the magnetic information are description of different types of information of the same medium to be identified collected by different types of data collection units. Although they are different types of information, there is a correlation between them. Because the printing of a valuable document is extremely precise, that is to say, the physical position distribution of the image information (especially, image feature information) and the magnetic signal (especially, magnetic feature signal) on the same kind of valuable document is extremely steady and reliable, moreover, the transporting speed of the current valuable document, the distribution position and resolution of the image sensor and the magnetic sensor are constant. Since transporting speed of the current valuable document, the distribution position and resolution of the image sensor and the magnetic sensor are constant, the effective magnetic signal distribution of the current valuable document can be calculated according to the image information in conjunction with the corresponding relationship in physical position of the image sensor and the magnetic sensor. 
         [0200]    A magnetic signal identifying portion  36 , adapted to identify the magnetic signal of the current valuable document based on above multiple information combination, to obtain a magnetic signal identification result of the current valuable document. 
         [0201]    A spatial positional relationship revising portion  37  for the image sensor and the thickness sensor, adapted to revise the spatial positional relationship between the image sensor and the thickness sensor by using the distribution characteristics of the image of the reference unit in the whole image collected by the image sensor and the distribution characteristics of the thickness signal of the reference unit in the whole thickness signal collected by the thickness sensor, to obtain the practical position constraint between the two sensors at the present conditions. 
         [0202]    A combining portion  38  for image information and thickness information, the image information and the thickness information are description of different types of information of the same medium to be identified collected by different types of data collection units. There is similar relationship as the relationship between the image information and the magnetic signal between the image information and the thickness information. By using the relationship between the image information and the thickness information, the effective thickness signal distribution of the current valuable document can be calculated according to the image information in conjunction with the corresponding relationship between the physical position of the image sensor and the physical position of the thickness sensor. 
         [0203]    A thickness signal identifying portion  39 , adapted to identify the thickness signal of the current valuable document based on above multiple information combination, to obtain the thickness signal identification result of the current valuable document. 
         [0204]    A result outputting portion  40 , adapted to output the final identification result of the current valuable document. 
         [0205]    The implementation flow of the present invention is as shown in  FIG. 18 . 
         [0206]    In the device for identifying a valuable document according to the present invention, the image sensor, the magnetic sensor and the thickness sensor obtain respectively detecting data of the reference unit and the current valuable document in time series. In the device for identifying a valuable document according to the present invention, the transporting speed of the current valuable document is constant, and the spatial distribution position of the image sensor, the magnetic sensor and the thickness sensor are fixed, thus with the present invention, the practical spatial positional relationship between the image sensor, the magnetic sensor and the thickness sensor is determined by using the image signal, the magnetic signal and the thickness signal of the reference unit at first, then the signals acquired by the image sensor, the magnetic sensor and the thickness sensor are combined by using the positional relationship between the sensors, to obtain description and identification of consistency of the current valuable document. 
         [0207]    In conjunction with components of the above device, the working flow of these components is briefly described as follows. 
         [0208]    Step S 21 , placing a valuable document (e.g., banknote) to be identified. The flow begins. 
         [0209]    Step S 22 , processing by the image sensor. A reference unit and a current valuable document are scanned by the image sensor to obtain image information of the reference unit and the current valuable document. 
         [0210]    Step S 23 , processing by the magnetic sensor. Magnetic signal data of the reference unit and the current valuable document are obtained by the magnetic sensor. 
         [0211]    Step S 24 , processing by the thickness sensor. Thickness signal data of the reference unit and the current valuable document are obtained by the thickness sensor. 
         [0212]    Step S 25 , cutting an image. The positional relationship between a current foreground region in a whole background region is determined at first, and the image foreground region which is useful for identification is cut from the background region. 
         [0213]    Step S 26 , correcting the image. Inclined and deviated images are corrected to facilitate subsequent image matching and identifying. 
         [0214]    Step S 27 , identifying the image. The foreground region of the valuable document obtained by image cutting is placed in a coordinate system, and image data of a specific position is selected to be matched and identified with standard template data stored in a storing portion to obtain an identification result. If image identification fails, the current valuable document is exited. 
         [0215]    Step S 28 , revising the physical positional relationship between the image sensor and the magnetic sensor. The displacements of the left vertex of the image sensor and the left vertex of the magnetic sensor in horizontal direction and in vertical direction are obtained by using the image signal and the magnetic signal of the reference unit, thus the practical constraint relationship between the image sensor and the magnetic sensor is obtained. 
         [0216]    Step S 29 , combining image information and magnetic information. Since the transporting speed of the current valuable document is constant, by using the position (distribution) of the foreground region of the current valuable document in the background image, the position (distribution) of the effective magnetic signal of the current valuable document in the whole magnetic signal is calculated according to the physical position constraint relationship between the image sensor and the magnetic sensor as well as the image identification result. 
         [0217]    Step S 30 , identifying a magnetic signal. It is determined whether the magnetic signal data in the specific position collected by the magnetic sensor meet the magnetic signal distribution rule required by the image identification result of the current valuable document. If the magnetic signal identifying fails, the current valuable document is exited. 
         [0218]    Step S 31 , revising the physical positional relationship between the image sensor and the thickness sensor. The displacements of the left vertex of the image sensor and the left vertex of the thickness sensor in horizontal direction and in vertical direction are obtained by using the image signal and the thickness signal of the reference unit, thus the practical constraint relationship between the image sensor and the thickness sensor is obtained. 
         [0219]    Step S 32 , combining image information and thickness information. Since the transporting speed of the current valuable document is constant, and the physical position relationship between the image sensor and the thickness sensor is constant, By using the position (distribution) of the effective region of the current valuable document in the background image, the position (distribution) of the effective thickness signal of the current valuable document in the whole thickness signal is calculated according to the image identification result. 
         [0220]    Step S 33 , identifying thickness signal. It is determined whether the thickness signal data in the specific position collected by the thickness sensor meet the thickness signal distribution rule required by the image identification result of the current valuable document. If the thickness signal identifying fails, the current valuable document is exited. 
         [0221]    Step S 34 , if the thickness identifying succeeds, the identification of the current valuable document is completed and the identification result (e.g., currency, denomination, version and the like) is output. 
         [0222]    It is noted that, the embodiments shown in  FIG. 1  to  FIG. 18  are only preferable embodiments described in the present invention, and more embodiments can be designed by those skilled in the art, which will not be repeated herein. 
         [0223]    It will be apparent to those skilled in the art that various modifications of the above embodiments can be made, and the general principal defined in the present disclosure can be achieved in other embodiments without departing from the spirit and scope of the disclosure. Therefore, the present disclosure is not limited to these embodiments described above, but accords with the widest scope in accordance with the principal and novel features disclosed in the present disclosure.