Bar-code reading apparatus

Abstract: A bar-code reading apparatus, in which a bar-code is scanned and a processing for recognizing the bar-code is performed on the basis of the scanning, comprises scanning signal storage means for storing scanning signals which are obtained by scanning the bar-code and which correspond to bars and/or spaces scanned in at least two times of succeeding scannings, counting means for counting the number of bars and/or spaces scanned in each time of the scannings, number-of-bars storage means for storing count values of the counter means in at least two times of succeeding scannings, first comparison means for comprising the respective count values of the counter means in the two times of scannings stored in the number-of-bars storage means with each other and for generating an enabling signal when the count value in the succeeding scanning is not larger than that in the preceding scanning, and recognition means responsive to the enabling signal to operate to read one of the two scanning signals corresponding to the two times of scannings and stored in the scanning signal storage means, the one scanning signal corresponding to the preceding scanning, thereby performing a processing for recognizing the bar-code.

Description: BACKGROUND OF THE INVENTION The present invention generally relates to a bar-code reading apparatus, and particularly relates to an improvement for efficiently performing bar-code reading. There are some type of conventionally used bar-code reading apparatus. Namely, there are (i) the pen type in which an operator holds a pen-like casing provided with a reading head at its front end so as to manually scan a bar-code from its one end to its other end by using the reading head; (ii) the touch type in which the apparatus is made contact with a bar-code and a symbol surface on which the bar-code is formed is illuminated so that reflection light from the symbol surface is led to a linear image sensor so as to form a bar-code image on a photo detection surface of the linear image sensor; (iii) the laser type in which a bar-code is scanned at a high speed by a laser spot so that reflection light from the symbol surface is detected to thereby perform reading; and the like. In view of the mode of use, the above reading apparatuses are classified into that of the holding type in which an operator performs reading while holding the reading apparatus and that of the fixed type in which the reading apparatus is disposed in the fixed state and a symbol surface on which a bar-code is formed is directed to the apparatus. Among the foregoing various bar-code reading apparatuses, in all the apparatuses except the pen-type bar-code reading apparatus in which a bar-code scanning is performed manually, reading is made by plural times of bar-code scanning. That is, a bar-code is scanned by a laser spot by plural times in the laser-type bar-code reading apparatus, and a bar-code image formed on a photo detection surface of an image sensor is electrically scanned by plural times in the touch-type bar-code reading apparatus. Further, since each of the scanning by means of a laser spot and the electric scanning of a bar-code image has been performed before a bar-code enters the range of the reading field of view of the apparatus, there occurs inevitably a state where a scanning line SL is crossing only a part of a bar-code 1 as shown in Figs. 3A and 3B in the process in which the reading apparatus is directed to the bar-code or the bar-code is directed to the reading apparatus. In order to correctly read the bar-code 1, it is necessary to establish the positional relation between the reading apparatus and the bar-code 1 so that the scanning line SL crosses the whole of the bar-code 1 from its one end to its other end as shown in Fig. 3C. Therefore, correct reading cannot be expected in the respective states illustrated in Figs. 3A and 3B, and consequently there is a possibility of occurrence of erroneous reading in the process in which the positional relation between the bar-code and the reading apparatus is being established. A bar-code expresses one digit (or one English character), for example, by a plurality of bars and spaces which are different in thickness from each other. However, generally, number of digits or characters in whole of the bar-code is not fixed. Therefore, even when the scanning line SL crosses only a part of the bar-code 1 as shown in Figs. 3A and 3B, if scanning is performed to the boundary of digits, decoding is performed to that position and the result of the partial decoding is erroneously recognized as the result of the whole decoding, so that erroneous data are supplied to a computer or the like. In order to correctly perform a processing in a computer, for example, a check digit (a kind of parity) is sometimes added to a bar-code in advance so that when the digits for the check digit do no add up in the computer, it is judge that there occurs a reading error and a signal for instructing reading again is applied to the reading apparatus. In this case, however, it takes a long time till the instruction of reading again is applied from the computer to the reading apparatus, and therefore it is necessary after all for the operator to perform the operation for reading the bar-code again. As a result, the efficiency of data input work by bar-code reading is remarkably lowered. Document EP-A-0 036 951 describes a reader system for optically scanning a bar-code and processing the resulting video signals for producing corresponding digital signals. The analog video signal of an image sensor is fed to a dynamic threshold detector which tracks the midpoint voltage value of the video signal and applies this value to a comparator which compares it with the video signal. The comparator produces a digital video signal corresponding to the bar-code. Wide and narrow code bars are determined by a comparator comparing the digital video signal with preset values. The total number of bars scanned is counted, and when the count equal the number of bars in the code, the memory storing the code in digital form is inhibited to prevent it from accepting further data or from being cleared. The patent document US-A-3 932 840 discloses a system for reading bar-codes wherein the bars and inter-bar spaces represent coded information. The system is provided with means for detecting a condition wherein too many or too few single bar signals in a quantized character signal is given and for detecting and correcting sequence errors. SUMMARY OF THE INVENTION It is an object of the present invention to solve the technical problems in the prior art outlined above and to provide an improved bar-code reading apparatus in which a bar-code can be surely read by one time of operation thereby remarkably improving the efficiency of data input work by bar-code reading. This object is solved by a bar-code reading apparatus comprising the features of claim 1. An advantageous embodiment of the bar-code reading apparatus is defined in the dependent claim. In a bar-code reading apparatus according to an embodiment of the present invention, a bar-code is scanned and a processing for recognizing the bar-code is performed on the basis of the scanning, the bar-code reading apparatus comprises scanning signal storage means for storing scanning signals which are obtained by scanning the bar-code and which correspond to bars and/or spaces scanned in at least two times of succeeding scannings, counting means for counting the number of bars and/or spaces scanned in each time of the scannings, number-of-bars storage means for storing count values of the counter means in at least two times of succeeding scannings, first comparison means for comprising the respective count values of the counter means in the two times of scannings stored in the number-of-bars storage means with each other and for generating an enabling signal when the count value in the succeeding scanning is not larger than that in the preceding scanning, and recognition means responsive to the enabling signal to operate to read one of the two scanning signals corresponding to the two times of scannings and stored in the scanning signal storage means, the one scanning signal corresponding to the preceding scanning, thereby performing a processing for recognizing the bar-code. According to the foregoing configuration, the number of bars and/or spaces scanned whenever a bar-code is scanned is detected, and any processing for recognizing the bar-code is not performed so long as the number of detected bars and/or spaces is increasing. When the number of detected bars and/or spaces becomes not increasing, the processing for recognizing the bar-code is performed at the first time on the basis of the scanning immediately before the processing. Thus, no recognition processing is performed in a period in which the bar-code and the reading apparatus are in the positional relation where the reading apparatus cannot scan the whole of a bar-code in the process in which an operator makes the reading apparatus to direct to the bar-code or leads the bar-code into the range of field of view of the reading apparatus, and the recognition processing is performed at the first time at a point of time when the state where a scanning line crosses all the bars and/or spaces has been attained. Consequently, any useless recognition processing is never performed in the state where erroneous reading may occur. The bar-code reading apparatus may comprise, in addition to the foregoing configuration, second comparison means for comparing the count value of the counter means with a predetermined reference value and for producing an enabling signal for allowing the first comparison means and the recognition means to operate when the count value has exceeded the reference value. In such a configuration, useless operation of the first comparison means and the recognition means in the state where the object read is not apparently different from a bar-code or in the state where a bar-code can not be apparently recognized is prevented from being performed by utilizing the fact that the minimum number of bars and/or spaces constituting a bar-code is roughly fixed. Therefore, a maloperation due to picked up noises can be prevented from occurring, the processing efficiency can be further improved, and power consumption can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram showing the fundamental configuration of the bar-code reading apparatus according to the present invention; Fig. 2 is a block diagram showing the fundamental configuration of an embodiment of the bar-code reading apparatus according to the present invention; and Fig. 3 is a diagram for explaining a bar-code scanning operation. PREFERRED EMBODIMENT OF THE INVENTION The present invention will be described below with reference to the accompanying drawings. In the bar-code reading apparatus for attaining the above object according to the present invention, as shown in Fig. 1, a scanning signal obtained from a photo detection element in a laser-type bar-code reading apparatus, from an image sensor in a touch-type bar-code reading apparatus, or the like is applied to a scanning signal storage means 11 for storing the scanning signal and a counter means 12 for counting the number of scanned bars and/or spaces. The counter means 12 counts the number of bars and/or spaces scanned each time of bar-code scanning, and the count value is applied to a number-of-bars storage means 13 so as to be stored therein. The scanning signal storage means 11 stores scanning signals obtained by at least two times of succeeding scannings, and, on the other hand, the number-of-bars storage means 13 stores the count values of the counter means 12 in at least two times of succeeding scannings. The count values of the counter means 12 which are stored in the number-of-bars storage means 13 and which correspond to the two times of scannings are compared with each other in a first comparison means 14. The comparison means 14 outputs an enabling signal onto a line 15 when the count value (for example, the count value of the number of bars) in the succeeding one of the two times of scannings is not larger than the count value (for example, the count value of the number of bars) in the preceding scanning, the enabling signal being applied to a recognition means 16. In response to the enabling signal, the recognition means 16 reads one of the scanning signals stored in the scanning signal storage means 11 corresponding to the two times of scannings, the one scanning signal of corresponding to the preceding scanning, so that the recognition means 16 performs a bar-code recognition processing on the basis of the thus read-out scanning signal. The detail of the present invention will be described below with reference to Fig. 2. Fig. 2 is a block diagram showing the fundamental configuration of an embodiment of the bar-code reading apparatus according to the present invention. For example, in a laser-type bar-code reading apparatus, a signal produced from a detection element (not shown) for receiving reflection light from a symbol surface is supplied, as a scanning signal, through an input terminal 20 commonly to a bar-length counter 21, a space-length counter 22, and a counter 23 which means for counting the number of bars. Here, the bar-length counter 21 detects the length in the scanning direction of each of bars constituting the bar-code which is an object to be read and the count value of the bar-length counter 21 corresponding to the length of each of the bars is stored, for every bar, in a first bar-length memory 24. Similarly to this, the space-length counter 21 detects the length of each of spaces, and the count value is stored, for every space, in the first bar-length memory 24. The first bar-length memory 24 can store the respective count values of the bar-length counter 21 and the space-length counter 22 in at least one time of bar-code scanning, and in the next bar-code scanning, the first bar-length memory 24 supplies the storage contents thereof to a second bar-length memory 25 so that it can store new count values. The storage contents of the second bar-length memory 25 are supplied to and decoded by a decoder 29 which is a recognition means, and the results of decoding are supplied to a personal computer (not shown) or the like. The storage contents of the first and second bar-length memories 24 and 25 are substantially equivalent to scanning signals. In this embodiment, a scanning signal storage means is constituted by the first and second bar-length memories 24 and 25. The number-of-bars counter 23, on the other hand, counts the number of bars crossed by a spot formed by laser light on a symbol surface every time the laser light scans a bar-code. That is, the number-of-bars counter 23 counts the number of bars crossed by a scanning line which is a locus of the spot on the symbol surface. The count value of the number-of-bars counter 23 is stored in a first number-of-bars memory 26. The number-of-bars memory 26 can store the number of bars (the count value of the number-of-bars counter 23) counted in at least one time of bar-code scanning, and the storage contents of this memory 26 are stored in a second number-of-bars memory 27, for example, at the initiation of the next scanning. As a result, the number of bars crossed by the scanning line at the present time is stored in the first number-of-bars memory 26, while the number of bars crossed by the preceding scanning line is stored in the second number-of-bars memory 27. Thus, the number-of-bars storage means for storing the respective numbers of bars scanned in two times of preceding and succeeding scannings is constituted by the first and second number-of-bars memories 26 and 27. In this embodiment, the above-mentioned two times of scannings are two times of scannings performed continuously and succeedingly. The storage value of the first number-of-bars memory 26 is supplied to first and second comparators 31 and 32. The second comparator 32 compares the storage value of the first number-of-bars memory 26 with a predetermined reference value (for example, 8). When a value not smaller than the above-mentioned reference value N has been stored in the first number-of-bars memory 26, the second comparator 32 supplies an enable signal, through a line 30, to the second bar-length memory 25, the second number-of-bars memory 27, the first comparator 31, and the decoder 29, thereby allowing those constituent members to operate. That is, since the number of bars constituting a bar-code is generally not smaller than 20 - 30, it is concluded that no bar-code exists within a range of field of view when the number of detected bars is too small to reach the reference value N, and the data at this time are ignored. By this, a maloperation due to picked-up noises can be prevented from occurring, the processing efficiency can be improved, and the present invention can contribute to power consumption. The first comparator 31 compares the storage value of the first and second number-of-bars memories 26 and 27 with each other, and supplies a decode-enable signal through a line 33 to the decoder 29 when the storage value of the second number-of-bars memory 27 is not larger than that of the first number-of-bars memory 26. That is, the first comparator 31 allows the decoder 29 to decode the bar-code reading results in the preceding scanning (the storage contents of the second bar-length memory 25) when the number of bars detected in the scanning at the present time is not larger than that in the preceding scanning. In the process in which the reading apparatus is directed to a bar-code or the bar-code is directed to the reading apparatus, it is considered that the number of bars crossed by a scanning line is generally increasing because the crossing state is shifted from one in which the scanning line is crossing a part of the bar-code into the other in which the scanning line is crossing the whole bar-code. Therefore, if a scanning signal in the preceding scanning is decoded when the number of bars in the scanning at the present time is not larger than that in the preceding scanning, recognition processing is performed only for a scanning signal obtained in the state where the scanning line is crossing the whole of the bar-code. Thus, in the configuration of this embodiment, since decoding is not performed before a state in which a scanning line crosses the whole bar-code has been reached, a useless decoding operation can be prevented from being performed before such a positional relation between the bar-code and the reading apparatus has been established. Consequently, reading of a bar-code is surely performed to thereby prevent erroneous information from being applied to a computer or the like. Therefore, such a case that an operator performs a reading operation again in response to a message from a computer or the like is reduced, so that the efficiency of data input work by bar-code reading is remarkably improved. Although the length of bars and spaces in the scanning direction is detected by the bar-length counter 21 and the space-length counter 22 respectively in the above embodiment, the space-length counter 22 may be omitted. Further, although only the number of bars is counted by the number-of-bars counter 23 in the above embodiment, also the number of spaces may be counted. Alternatively, the sum of bars and spaces may be counted, or only the number of spaces may be counted. Moreover, although the second comparator 32 is provided so as to make the second bar-length memory 25 and the like be disabled when the number of bars does not reach the reference value N so that a maloperation due to noises can be reduced and the processing can be performed efficiently in the foregoing embodiment, the second comparator 32 is not always required to be provided. As described above, in the bar-code reading apparatus according to the present invention, any recognizing processing is not performed in a period in which a bar-code and the reading apparatus are in a positional relation that the whole bar-code cannot be scanned at the same time in the process in which an operator makes the reading apparatus direct to the bar-code and leads the bar-code into the range of field of view of the reading apparatus, and the recognition processing is not performed until at a point of time when the state where the scanning line crosses all bars and/or spaces has been established. As a result, reading of a bar-code is surely attained by one time of reading operation, and therefore the necessity of an operation for performing reading again is reduced, so that the workability of data input by bar-code reading is remarkably improved.

Claims: A bar-code reading apparatus in which a bar-code (1) is scanned and a processing for recognizing said bar-code (1) is performed on the basis of the scanning, said reading apparatus comprising: scanning signal storage means (11) for storing scanning signals which are obtained by scanning said bar-code (1) and which correspond to bars and/or spaces scanned in at least two times of succeeding scannings; counter means (12, 23) for counting the number of bars and/or spaces scanned in each time of the scannings; characterized in that it further comprises number-of-bars and/or spaces storage means (13, 26, 27) for storing count values of said counter means (12, 23) in at least two times of succeeding scannings; first comparison means (14, 31) for comparing the respective count values of said counter means (12, 23) in the two times of scannings stored in said number-of-bars and/or spaces storage means (13, 26, 27) with each other and for generating an enabling signal when the count value in the succeeding scanning is not larger than that in the preceding scanning; and recognition means (16, 29) responsive to said enabling signal to operate to read the first of the two scanning signals corresponding to the two times of scannings and stored in said scanning signal storage means (11), thereby performing a processing for recognizing said bar-code (1). A bar-code reading apparatus according to claim 1, further comprising a second comparison means (32) for comparing the count value of said counter means with a predetermined reference value (N) and for producing an enabling signal for allowing said first comparison means (31) and said recognition means (29) to operate when said count value exceeds said reference one.

Inventors: TAKENAKA SHINYA, TAKENAKA, SHINYA, TAKENAKA, SHINYA, C/O OSAKA WORKS OF SUMITOMO
Applicants: SUMITOMO ELECTRIC INDUSTRIES, SUMITOMO ELECTRIC INDUSTRIES, LIMITED
Application year: 1991
Main classification: G06K7
IPC codes: G06K7