APPARATUS AND METHOD FOR READING MAGNETIC CHARACTERS

Abstract: A magnetic waveform derived from a sensed MICR character on a document (16) is sampled at periodic rates and converted to first bytes of data which are placed in a first memory (38-1). The velocity of the document (16) is sampled at second periodic rates and the instantaneous values of the speed of the document (16) are placed in a second memory (38-2) as second bytes of data. A processor (36) is used to read the second bytes of data and to calculate an average speed of the document (16) for an associated examining window consisting of a predetermined number of the first bytes of data. The width of the examining window is adjusted in accordance with the average speed compared to an anticipated normal speed.

Description: APPARATUS AND METHOD FOR READING MAGNETIC CHARACTERS Technical Field This invention relates to apparatus for reading magnetic characters on a document, including reading means adapted to read magnetic characters on a document at a reading station; and moving means adapted to move said document in reading relationship with said reading means to produce magnetic waveforms corresponding to the characters being read. The invention also relates to a method of reading magnetic characters on a document including the steps of: moving a document in reading relationship with reading means to generate a magnetic waveform corresponding to a character to be read on said document. Background Art In a known Magnetic Ink Character Recognition (MICR) system, such as a system for reading E13B characters for example, characters encoded on a document are read by moving the document in reading relationship with a read head to produce a magnetic waveform which corresponds to the character being read. A character is recognized by dividing the waveform into sections or windows, with the features of the waveform within each window being compared with a stored template for character recognition. Such known system has the disadvantage that, if there are changes in the speed of the document as it is being moved past the read head, the features of the waveform may not fall within the expected windows, and consequently, the character being read will be rejected as a reject. Disclosure of the Invention It is an object of the present invention to provide apparatus and a method for reading magnetic characters, of the kind specified, which provide a rapid response time for adjusting to changes in the velocity of the document being read. Therefore, according to one aspect of the present invention, there is provided apparatus of the kind specified, characterized by: analog-to-digital converter means adapted to convert the magnetic waveform associated with a character into binary data; sampling means adapted to sample said binary data at periodic times to produce first bytes of data representing said magnetic waveform; first memory means adapted to store said first bytes of data; velocity sensing means adapted to sense the velocity of said document at said reading means at periodic times to produce second bytes of data representing instantaneous velocities of said document at said reading means; second memory means adapted to store said second bytes of data; a predetermined number of said first bytes of data representing a window of a plurality of windows used in examining said magnetic waveforms, with said predetermined number occurring when the speed of a document at said reading station is an anticipated normal speed; a predetermined number of said second bytes of data being associated with said predetermined number of first bytes of data; and processor means adapted to withdraw a predetermined number of said second bytes of data from said second memory means and to calculate an average speed therefrom, whereby said average speed is compared with said anticipated normal speed to obtain a variation in speed, if any; said variation in speed from said anticipated normal speed being used to adjust the predetermined number of said first bytes of data associated with a window to arrive at an adjusted window; and said processor means also being adapted to examine said first bytes of data in said adjusted window for peaks for use in template matching. According to another aspect of the present invention, there is provided a method of the kind specified, characterized by the steps of: converting the magnetic waveform into a plurality of bytes of data corresponding to said magnetic waveform; sampling said bytes of data at periodic times to produce first bytes of data corresponding to said magnetic waveform, with a predetermined number of said first bytes of data corresponding to an examining window of a plurality of examining windows when said document is moved at an anticipated velocity in reading relationship with said reading means; storing said first bytes of data in a first memory; periodically sensing the velocity of said document at said reading means to produce second bytes of data representing instantaneous velocities of said document at said reading means so that a predetermined number of second bytes of data correspond to a said examining window of said plurality of windows when said document is moved at said anticipated velocity; storing said second bytes of data in a second memory; calculating the average velocity of said document at said reading means from said predetermined number of second bytes of data; adjusting the width of a said examining window compared to its associated said predetermined number of first bytes by changing the number of first bytes included in the examining window in accordance with a comparison of said average velocity with said anticipated velocity; and examining the first bytes of data within the adjusted examining window for peaks for use in template matching. Brief Description of the Drawings One embodiment of the invention will now be described by way of example, with reference to the accompanying drawings, in which: Fig. 1 is.a schematic view of apparatus according to the present invention; Fig. 2 is a chart showing a magnetic waveform and the associated examining windows when a document is moving past a magnetic reader at a normal speed; Fig. 3 is a chart similar to Fig. 2 showing the waveform for the same character when the document is moving past the magnetic reader at a speed which is faster than the normal anticipated speed; Fig. 4 is a diagram showing the relationship between data about a waveform and associated locations in memory; Fig. 5 is a chart showing the relationship of various elements associated with a character when that character is being read at a normal speed; Fig. 6 is a flow chart showing the method steps according to this invention; and Fig. 7 is a chart showing the relationship of speed changes of the document with adjusted examining windows. Best Mode for Carrying Out the Invention Fig. 1 is a schematic view of the apparatus of this invention which is designated generally as 10. The apparatus 10 includes a reading station 12 at which a conventional magnetic reader 14 is situated. A document 16 to be read is moved in a document track 18 (mounted in frame 19) by a conventional moving means or a document transport 20 which moves the document 16 (along the direction of arrow 17) in reading relationship with the magnetic reader 14. The apparatus 10 may be part of a business machine, like an encoder, which reads MICR data on a check, for example, and prints at least some of the data read on the document 16 itself at a subsequent station (not shown) . The apparatus 10 also includes a speed encoder 22 which provides instantaneous velocity information about the speed of a document 16 as it is moved in operative relationship with the magnetic reader, as will be described hereinafter. For the moment, it is sufficient to state that the speed encoder is operatively connected to the document transport 20 and that the output from the speed encoder 22 is fed to a terminal controller 24, associated with the apparatus 10, via a conventional interface 26. A document sensor 28, positioned along the document track 18, has its output forwarded to the terminal controller 24, via a conventional interface 30, to give an indication of document 16 approaching the reading station 12. The terminal controller 24 itself is conventional; however, it is configured in Fig. 1 to show the functional relationships among the different elements shown, with the actual controller being different from the schematic representation shown. The terminal controller 24 represents the processing means for performing various operations to be later described herein. The terminal controller 24 includes a keyboard (K.B.) 32, a display 34, a processor 36, a RAM 38, a RAM #1 (38-1), a RAM #2(38-2), a RAM #3 (38- 3), various interfaces 40, 42, and 44, and interface and control logic 46 which are all interconnected to enable the terminal controller 24 to function as an intelligent terminal. The interface 40 may be used to load a software routine into the terminal controller 24 from an external source (not shown) or the interface 40 may be used to couple the terminal controller 40 to a host controller (not shown). The apparatus 10 also includes an analog/digital converter 48 for converting the magnetic waveforms 50 produced by the magnetic reader 14 into bytes of data representing the various magnetic waveforms 50. A sampling means, including the clock 51 and the terminal controller 24, samples the data from the A/D converter 48 at periodic times to produce first bytes of data corresponding to the magnetic waveform 50. In the embodiment being described, there are six first bytes of data associated with examination window #1 shown in Fig. 2 and eight first bytes of data associated with examination windows #2-#8, although a different predetermined number may be used for different applications. The examination windows mentioned in the previous paragraph may be more readily understood in connection with Fig. 2 which shows a magnetic waveform 50 for a character of data when the document travels at the normal or anticipated speed past the magnetic reader 14. Notice that there are eight windows or time slots used to examine a waveform which comprises a character to be recognized, with the windows being numbered 1 through 8 in Fig. 2. The positive peaks like 52 and 54 within windows #1 and #5 and the negative peak 56 within window #6, along with the lack of peaks in the remaining windows, are used to identify a character as is conventionally done. The peak areas and no peak areas under consideration are shown in quadrilaterals in Fig. 2 to highlight them. In other words, the template shown in Fig. 2 is matched with a template stored, for example, in the RAM 38 of the terminal controller 24. When a match occurs, the character is identified. If no match occurs, the character under consideration is rejected as a reject. A template is a pattern of peaks or no peaks within the time slots or windows as conventionally used. Fig. 3 shows a situation in which the document 16 passes the magnetic reader 14 at a speed which is much faster than normal. Notice that the waveform 50-1 for the character being read is more compressed with regard to time than the waveform 50 (Fig. 2) for the same character. Notice, also, how the peaks 54-1 and 56-1 have shifted with regard to their expected windows #5 and #6, respectively. The characters like those shown on a document 16 are read from right to left as viewed in Fig. 1. It is characteristic of E13B MICR data mentioned earlier herein that each character starts with the associated waveform beginning in the positive direction as shown by peak 52 in Fig. 2 Before describing in detail how the apparatus 10 functions, it is useful to discuss, generally, how it operates. As previously stated, there are six first bytes of data associated with window #1, and there are eight first bytes of data which are associated with each of the windows #2-#8 when the document is moving at the normal speed. These first bytes of data are sampled at a first clock rate using the clock 51 as previously described. The speed encoder 22 is conventional and uses a timing disc and a light and detector combination (not shown) to provide second bytes of data to the terminal controller 24 to give an indication of the instantaneous velocity of document 16 as it passes the magnetic reader 14. The instantaneous velocity of the document 16 is sampled at a second clock rate which is four times as slow as the first clock rate. In other words, there are four first bytes of data generated for each second byte of data. The first bytes of data from the A/D converter 48 are stored in RAM #1 of the terminal controller 24, and the second bytes or speed data are stored in RAM #2. It is not necessary that there be a one-to-one correspondence between the first bytes and the second bytes for a particular window. In the embodiment described, one second or speed byte was considered adequate for every four first bytes of data from the A/D converter 48 for checking on possible changing velocities of the document 16. The eight first bytes of data for one of the windows #2-#8 are produced in one millisecond in the embodiment described; that is the time that one of these windows moves past the magnetic reader 14 when the document is moving at the normal expected speed. If, however, the document 16 moves faster than expected, it may take only .8 millisecond for one of the windows #2-#8 to move past the magnetic reader 14. This would indicate that perhaps seven first bytes of data instead of eight should be included in the corresponding window. The eighth first byte of data should be included in the next adjacent window in the example being described. In an intended design, the speed will be 5 milliseconds per character or approximately 0.65 milliseconds per window. During the operation of the apparatus 10, the A/D converter 48 and the clock 51 run all the time . when the apparatus 10 is turned on; however, it is up to the terminal controller 24 to decide when to start taking samples of data from the A/D converter 48 and the speed encoder 22. The decision as to when to start taking samples is determined, conventionally, by the terminal controller 24 and is based on a time delay determined after a signal is received from the document sensor 28. The time delay may be with regard to the leading edge of the document 16 or with regard to "start" characters shown only by position arrow 56 in Fig. 1. Once the terminal controller 24 starts to take samples, the samples from the A/D converter 48 are taken at the rate of clock 51, and these samples are placed in RAM #1 in the locations marked as 0...through 11, for example, in Fig. 4. Each location in RAM #1 stores an eight bit byte of data which corresponds to the magnitude of the waveform 50 which is positioned in Fig. 4 only to show a general correlation between the waveform 50 and RAM #1. For example, in the embodiment shown, the first 10 memory locations in RAM #1 each contain a byte of data which is zero because the corresponding portions of the waveform 50 which are located directly above memory locations are zero. Once the magnitude of the waveform exceeds a certain threshold level, the associated eight bit byte, not a zero, would be placed in the corresponding location in RAM #1; in the example being described, the byte associated with a portion of peak 52 would be placed in location #11 in RAM #1. The memory locations in RAM #1 and the waveform 50 are not drawn to scale in Fig. 4; they are drawn only to illustrate the general relationship with each other. At the same time that data about the waveform 50 is being placed in RAM #1 as just described, data about the speed of the document 16 is being placed in RAM #2. As previously stated, the speed encoder 22 is conventional, and it includes a slotted timing disc and sensor (not shown) which produce pulses in timed relationship with the speed of the document 1.6 moving in the track 18. These pulses are used, conventionally, with a counter circuit (not shown) to produce a count which reflects the speed of the document. As an illustration, when the document 16 is moving at the normal anticipated speed, the count may be 100 between successive second clocks. If the document is moving faster than normal, the count may be 105, for example, between successive second clocks. This normal speed count of 100, which is shown as Byte #1 in Fig. 4, is placed in the first memory location in RAM #2. In the embodiment described, one speed byte, like Byte #1, exists for four bytes of waveform magnitude data in RAM #1. Speed Byte #3 in Fig. 4 is associated with the waveform magnitude data in locations 8-11 in RAM #1. Fig. 5 is a chart showing the correlation among various elements to be described for a character to be read when the document 16 is moving at a normal speed past the magnetic reader 14. As stated earlier herein, there are eight examining windows which are used in identifying a character according to the E13B font being described, and these eight windows are shown as #l-#8, with each number being enclosed in a circle. The numbers across the top of the chart ranging from 0-248 represent the total data sample for a character when the associated document 16 is moving at the normal anticipated speed. Window #1 has 24 sample bytes associated with it, ranging from sample #1 through sample #24. Correspondingly, window #2 has 32 sample bytes, ranging from 25-56, and window #8 has 32 sample bytes, ranging from 217-248. The first window width in Fig. 5 is shorter (24 samples) than the rest of the window widths (32 samples) for a particular reason. This is due to the nature of the E13B font being discussed. According to this font, the first portion of the magnetic waveform, like 50, always produces a positive peak 52. Due to the first portion of a character being positive, the threshold value of the signal in the reader 14 will be exceeded in a relatively short time when compared to the remaining peaks in the character because these other peaks may be going down through the zero point in a negative direction and then up through the zero point in a positive direction. Accordingly, 24 samples are used for the first window, and 32 samples are used for the remaining windows #2-#8. Notice from the bottom line in Fig. 5 that the old window width is represented as 6 samples for the first window and 8 samples for the remaining windows when the document is moving at the normal speed. The samples of 24 for the first window and 32 for the remaining windows correspond to the values for the old windows except that they are multiplied by a factor of 4 to obtain better resolution as will become apparent from some of the calculations to be discussed later herein. For example, the old window value of six was multiplied by four to obtain the new window value of 24 samples for the width of window #1. In processing the data being placed in RAM #1 and RAM #2, it is convenient to think of all the data for a document being read to be placed in these RAMs before the processing of any character within a line of characters on the document 16 is begun. In • actuality, the terminal controller 24 controls the placing of data " in the RAMs #1 and #2, and it controls the processing of this data in an interlaced mode before all the characters in a line of characters are read so as to maximize the use of the terminal controller 24, as is conventionally done. However, for the purpose of explanation, the processing will be explained as though all the characters in a line of characters on a document are read before the processing of data is begun. In this regard, Fig. 6 shows how the processing of data is done. Step 58 of digitizing and storing the data relating to the samples of the magnetic waveform 50 has already been discussed in relation to Fig. 4. Similarly, the step 60 of recording the speed of the document 16 as it is moved past the magnetic reader 14 has also been discussed. The next step 62 to be performed in the process of this invention is to calculate the speed variation (if present) of a document 16 past the magnetic reader 14 and to adjust the widths of the windows affected, when necessary. As stated earlier herein, there is one speed sample, like Byte #1 in Fig. 4, for each four data samples being fed into the RAM #1. It should also be recalled that the first sample of data associated with the magnetic waveform 50 which exceeded the threshold occurred at memory location 11 in the example described in Fig. 4. This means that if the document 16 is travelling at the normal anticipated speed, the data samples associated with this character would be located in memory locations 11 through 259 instead of the locations 1 through 248 shown in Fig. 5. However, to simplify the explanation, the starting at location 11 in RAM #1 may be considered as an offset of 11 as is typically done in processing in order to enable the explanation to proceed from memory locations #l-#248 shown in Fig. 5. Continuing with an explanation of step 62 shown in Fig. 6, the calculation for the speed variation is performed as follows. Assume that the speed of the document 16 past the magnetic reader 14 is faster than normal. This means that the four counts associated with the first window in Fig. 7 would be, for example,105, 105, 105, and 105. These four counts are averaged to produce an average value of 105; this means that the document 16 is travelling +5% faster than the normal speed represented by a count of 100. This value of +5% is shown as the measured speed change associated with window #1 in Fig. 7. Because the document 16 is travelling +5% faster than normal, the width of window #1 will be adjusted to be 95% of the normal width or .95 x 24 which is equal to 23. This means that the bytes of data samples in memory locations #l-#23 of RAM #1 (Fig. 4) are associated with window #1. Each window number in Fig. 7 is enclosed in a circle as was done in Fig. 5. Suppose that the next four speed bytes (like Byte #1 in RAM #2) indicate that the document is moving at a speed which is 10% faster than normal. In this example, the width of window #2 will be adjusted to be 90% of the normal width or .90 x 32 which is equal to 29. This means that the bytes of data associated with memory locations #24-#52 are associated with window #2 in Fig. 7. The adjustments to the remaining windows #3-#8 are similarly calculated. Certain aspects should be mentioned with regard to the adjusted window widths shown in Fig. 7 when compared with the window widths #l-#8 derived from the normal speed of the document past the magnetic reader 14. In this regard, the overall length of the windows in Fig. 7 is 241 as compared with the normal overall length of 248 shown in Fig. 5. It follows, then, that the total of 241 samples compared with 248 samples as the base gives a speed variation, overall, of about 3%. Notice in the example shown in Fig. 7 that the document speed varies from 0% to +15% to a -10% for the eight windows. Notice that while the overall variation for the entire eight windows is not very large, there is a great amount of variation from window to window. After the eight window widths have been adjusted as discussed in relation to step 62 in Fig. 6 and Figs. 5 and 7, the next step 64 is to perform peak detection within the adjusted windows shown in Fig. 7. As an illustration, the bytes of data which are located in RAM #1 at locations #l-#23 thereof (from Fig. 7) are examined, conventionally, by software associated with the terminal controller 24 to determine whether or not a peak exists therein. Assume that a positive peak is found at location #13 in window #1 and its magnitude is 10. The magnitude of the peak and its location are placed in RAM #3 (also shown as RAM 38-3 in Fig. 1) in the following format: Window #1, +Peak, [Amplitude] [Location] Window #1, -Peak, [Amplitude] [Location] Window #2, +Peak, [Amplitude] [Location] Window #2, -Peak, [Amplitude] [Location]. The data about the remaining windows #3-#8 are similarly formatted. As an illustration, the assumed data about window #1 would be formatted as follows: Window #1, +Peak, [ 10 ] [ 13 ] Window #1, -Peak, [ 0 ] [ 0 ]. After the data about the magnetic waveform 50 is placed in RAM #3 as just described, the next operation to be performed is that of scaling the peak positions back to the original window width as shown by step 66 in Fig. 6. Changing the window width from eight samples to 32 samples, for example, was done to obtain better resolution as discussed in relation to Fig. 5. Now, the window width must be scaled back to fit the general format of six samples for the shortened window #1 and eight samples for the windows #2-#8 in order to make it compatible with conventional MICR template matching circuitry. The scaling back operation is performed by the following formula: Scaled peak position = location of peak x old window width adjusted window width. As an illustration, the scaled back peak position (PI) for the peak in window #l ' is determined as follows: PI = 13 x 6 = 3. 23 The scaled back peak position (P2) for the peak in window #2 (assuming its location in the adjusted window width is 18) is determined as follows: P2 = 18 x 8 = 5. 29 The remaining peak positions P3-P8 are similarly calculated. After the peak positions for both positive and negative peaks are calculated as described, the remaining step 68 (Fig. 6) is to perform conventional template matching in which the magnitudes of the peaks and their locations within the adjusted associated windows are used. Because this is conventional, it need not be explained in any further detail.

Claims: CLAIMS : 1. Apparatus for reading magnetic characters on a document (16), including reading means (14) adapted to read magnetic characters on a document (16) at a reading station (12); and moving means (20) adapted to move said document (16) in reading relationship with said reading means (14) to produce magnetic waveforms corresponding to the characters being read, characterized by: analog-to-digital converter means (48) adapted to convert the magnetic waveform associated with a character into binary data; sampling means (51) adapted to sample said binary data at periodic times to produce first bytes of data representing said magnetic waveform; first memory means (38-1) adapted to store said first bytes of data; velocity sensing means (22) adapted to sense the velocity of said document (16) at said reading means (14) at periodic times to produce second bytes of data representing instantaneous velocities of said document (16) at said reading means (14); second memory means (38-2) adapted to store said second bytes of data; a predetermined number of said first bytes of data representing a window of a plurality of windows used in examining said magnetic waveforms, with said predetermined number occurring when the speed of a document (16) at said reading station (12) is an anticipated normal speed; a predetermined number of said second bytes of data being associated with said predetermined number of first bytes of data; and processor means (36) adapted to withdraw a predetermined number of said second bytes of data from said second memory means (38-2) and to calculate an average speed therefrom, whereby said average speed is compared with said anticipated normal speed to obtain a variation in speed, if any; said variation in speed from said anticipated normal speed being used to adjust the predetermined number of said first bytes of data associated with a window to arrive at an adjusted window; and said processor means (36) also being adapted to examine said first bytes of data in said adjusted window for peaks for use in template matching. 2. Apparatus according to claim 1, ' characterized in that said processor means (36) is further adapted to scale the width of a said adjusted window to make it compatible with known template matching. 3. Apparatus according to claim 2, characterized in that said periodic times of said sampling means and said velocity sensing means are in a ratio of four to one, wittf " the periodic times of said sampling means occurring more frequently. 4. A method of reading magnetic characters on a document including the step of; moving a document (16) in reading relationship with reading means (14) to generate a magnetic waveform corresponding to a character to be read on said document (16), characterized by the steps of: converting the magnetic waveform into a plurality of bytes of data corresponding to said magnetic waveform; sampling said bytes of data at periodic times to produce first bytes of data corresponding to said magnetic waveform, with a predetermined number of said first bytes of data corresponding to an examining window of a plurality of examining windows when said document (16) is moved at an anticipated velocity in reading relationship with said reading means (14); storing said first bytes of data in a first memory (38-1); periodically sensing the velocity of said document (16) at said reading means (14) to produce second bytes of data representing instantaneous velocities of said document (16) at said reading means (14) so that a predetermined number of second bytes of data correspond to a said examining window of said plurality of windows when said document (16) is moved at said anticipated velocity; storing said second bytes of data in a second memory (38-2); calculating the average ' velocity of said document (16) at said reading means (14) from said predetermined number of second bytes of data; adjusting the width of a said examining window compared to its associated said predetermined number of first bytes by changing the number of first bytes included in the examining window in accordance with a comparison of said average velocity with said anticipated velocity; and examining the first bytes of data within the adjusted examining window for peaks for use in template matching. 5. A method according to claim 4, characterized in that said sampling step is effected using a rate which is a predetermined multiple of the rate of sensing the velocity of said document (16). 6. A method according to claim 5, characterized in that said examining step includes the step of scaling the width of the adjusted examining window so as to make it compatible with existing template matching techniques.

Inventors: HO BENEDICT CHUK-MIN, HO, BENEDICT, CHUK-MIN
Applicants: NCR CO, NCR CORPORATION
Application year: 1988
Main classification: G06K9
IPC codes: G06K9