CN1035287C - Barcode marking reading device - Google Patents
Barcode marking reading device Download PDFInfo
- Publication number
- CN1035287C CN1035287C CN93101652A CN93101652A CN1035287C CN 1035287 C CN1035287 C CN 1035287C CN 93101652 A CN93101652 A CN 93101652A CN 93101652 A CN93101652 A CN 93101652A CN 1035287 C CN1035287 C CN 1035287C
- Authority
- CN
- China
- Prior art keywords
- bar
- mark
- barcode
- code marks
- mentioned
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Abstract
Description
本发明涉及读取条形码记号的条形码记号读取装置,特别是关于防止双重读取的装置。在本说明书中所谓“双重读取”一词表示的是读取条形码记号的内容(译码)The present invention relates to a bar code mark reading device for reading bar code marks, in particular to a device for preventing double reading. The term "dual read" in this manual means to read the content of the barcode mark (decoding)
向主计算机转送数据完毕的条形码记号,继而又一次摄象并译码向主机转送。Transmit the bar code mark of the data to the host computer, and then take another image and decode it and transmit it to the host computer.
近年来,伴随了销售点(POS)系统的普及,条形码记号变得到处可见。在这种条形码记号中有几十种编码体系,有代表性的有:JAN/UPC/EAN码,ITF(五隔二)码,CODE39,NW-7码,CODE128,等。这些条形码记号体系是被称为一元条形码记号的,可容纳的信息量为十几个文字。In recent years, with the popularization of point-of-sale (POS) systems, barcode markings have become ubiquitous. There are dozens of coding systems in this barcode mark, representative ones are: JAN/UPC/EAN code, ITF (five-two) code, CODE39, NW-7 code, CODE128, etc. These barcode marking systems are called unary barcode markings, and the amount of information that can be accommodated is more than a dozen characters.
另一方面,POS系统在百货店、超级市场等销商品的现场被广泛采用着,作为其终端使用着条形码读取装置。在那里,条形码记号读取装置要求价格便宜、使用方便、读条形码记号正确。On the other hand, POS systems are widely used in department stores, supermarkets, and other places where products are sold, and barcode reading devices are used as terminals. There, the bar code mark reading device is required to be cheap, easy to use, and read the bar code mark correctly.
条形码记号读取方法基本内容如下,即,将从光源来的光照到条形码记号上,扫描,将在条形码记号上反射的光聚集到读取装置内部的光接受元件。对光接受元件的输出信号在由微计算机等构成的电气回路中作译码处理,据此读得条形码记号。The basic content of the barcode mark reading method is as follows, that is, the light from the light source is illuminated on the barcode mark, and the barcode mark is scanned, and the light reflected on the bar code mark is collected on the light receiving element inside the reading device. The output signal of the light-receiving element is decoded in the electrical circuit composed of a microcomputer, etc., and the bar code mark is read accordingly.
条形码记号读取装置分为经常时条形码记号扫描的型式和对应于读取开关等的操作才扫描条形码记号的型式,特别是,前者的经常对条形码记号扫描的型式中,那个被读了一次的条形码记号不能再一次被读取的所谓“防止双重读取”功能是重要的。尤其是对超级市场等的计价,此功能变得当然是必要的。即,由该条形码读取装置读取条形码记号完毕后如果贴有条形码记号的物品仍在那儿放了一会,或者将物品拿走的动作慢了一点,同样的条形码记号被读了几次,或者不打算读其条形码记号的物品往这边或往那边移动之中读了几次,实际购买物品的数目和最终读取的并转送到主机去的数目不一致担心会发生。The bar code mark reading device is divided into the type that scans the bar code mark at all times and the type that scans the bar code mark according to the operation of the reading switch, etc., especially, among the former type that always scans the bar code mark, the one that is read once A so-called "double-read prevention" function in which a barcode mark cannot be read again is important. Especially for pricing in supermarkets, etc., this function is naturally necessary. That is, if the bar code mark is read by the bar code reading device, if the item with the bar code mark is still there for a while, or the action of taking the item is slow, the same bar code mark is read several times, Or the item that does not intend to read its barcode mark is read several times while moving here or there, and the actual number of purchased items and the number that is finally read and transferred to the host may be inconsistent.
这里,在以往的一元条形码记号读取装置中提出了当连续读取的条形码记号的内容相同的场合,一个条形码记号判断为重复读,后面读得的条形码记号称为无效的方法作为防止双重读取的方法,以及提出将向主计算机转送数据后一定时间后面的条形码记号不读的办法作为防止双重读取的方法。Here, in the conventional unitary barcode symbol reading device, it is proposed that when the content of the continuously read barcode symbols is the same, one barcode symbol is judged as repeated reading, and the barcode symbol read later is called invalid as a method to prevent double reading. As a method of preventing double reading, the method of taking and not reading the bar code mark after a certain period of time after the data is transferred to the host computer are proposed.
近年来,对一元条形码记号的信息量不足引起议论,所以,开发了多种含有较多信息量、被称为二元条形码记号的编码体系。其中的一种称为数据码。这种数据码可用二元的黑白图形,由L字形的外框和黑白相间的边界及其内部的数据区构成,作为一个整体是正方形的图形。不过,在读取这样的二元条形码记号为目的的二元条形码记号读取装置中还没有有效的防止双重读取的方法的方案。In recent years, there has been a controversy over the lack of information in the one-element barcode mark, and therefore, various encoding systems called binary barcode marks containing a large amount of information have been developed. One of these is called a data code. This data code can be binary black-and-white figure, is made of L-shaped outer frame and black-and-white boundary and its internal data area, and is a square figure as a whole. However, in a binary barcode symbol reading device for reading such a binary barcode symbol, there is no proposal for an effective method for preventing double reading.
假如在这种二元条形码记号读取装置中应用上述那种一元条形码记号的防双重读取方法,因为二元条形码记号信息量比一元条形码记号显著地多,所以数据的比较处理时间必定太长。此外,二元条形码记号的译码处理本身因非常复杂,时间也十分长。因而用对译码内容进行比较的以往的方法,处理时间长是一个问题点,就这样用于二元条形码记号读取装置不合适。If the anti-double reading method of the above-mentioned one-element barcode mark is applied to this two-element barcode mark reading device, because the amount of information of the two-element barcode mark is significantly more than that of the one-element barcode mark, the comparison processing time of the data must be too long . In addition, the decoding process of the binary barcode mark itself is very complicated and takes a long time. Therefore, the conventional method of comparing decoded contents has a problem that the processing time is long, and it is not suitable for a binary barcode symbol reading device as it is.
还有,所称的向主计算机转送数据后一定时间不读以后的条形码记号的方法,其中这个一定时间的设定非常困难,设定时间长的场合对后面的条形码记号的读取不容易,设定时间短的场合相同的条形码记号二次读取的问题依然存在。且,操作者将记录有条形码记号的标签遗忘在那地方的场合终究还会变成“双重读取”。In addition, the so-called method of not reading subsequent barcode marks for a certain period of time after transferring data to the host computer is very difficult to set for a certain period of time, and it is not easy to read the subsequent barcode marks when the setting time is long. When the setting time is short, the problem of reading the same barcode symbol twice still remains. In addition, if the operator leaves the label on which the barcode mark is recorded there, it will eventually become "double read".
本发明鉴于上述问题点,以提供用简单且高速处理而可防止双重读取的条形码记号读取装置为目的。In view of the above problems, the present invention aims to provide a barcode symbol reading device capable of preventing double reading by simple and high-speed processing.
在本发明的第一个式样中提供的条形码记号读取装置具有:每隔规定的时间间隔对条形码记号摄象、储存由该摄象所得的图象信息的摄象及存储装置;由储存在上述摄象及存储装置中的图象信息检出条形码记号的位置信息的位置检出装置;储存用上述位置检出装置检出的条形码记号位置信息的第一位置存储装置;储存由上述位置检出装置前一次检出的条形码记号位置信息的第二位置存储装置;对储存在上述第一和第二位置存储装置中的二个位置信息进行比较的比较装置;根据上述比较装置比较的结果判断二个位置信息不同的场合,对从上述摄象及储存在存储装置中图象信息得来的条形码记号内容进行译码的译码装置。The bar code mark reading device that provides in the first mode of the present invention has: the bar code mark is photographed at regular time intervals, and the photographing and storage device of storing the image information obtained by the photographing is stored; The image information in the above-mentioned imaging and storage device detects the position detection device of the position information of the barcode mark; stores the first position storage device of the bar code mark position information detected by the above-mentioned position detection device; stores the position information obtained by the above-mentioned position detection A second position storage device for the barcode mark position information detected by the device; a comparison device for comparing the two position information stored in the first and second position storage devices; judging according to the comparison result of the comparison device When the two position information are different, a decoding device for decoding the content of the barcode mark obtained from the image information captured and stored in the storage device.
根据本发明的第二个式样提供的防止双重读取装置具有:位置检出装置,它根据每隔规定时间间隔对条形码记号摄象所得的图象信息检出条形码记号的位置信息;第一存储装置,它将用上述位置检出装置检出的条形码记号位置信息储存起来;第二存储装置,储存由上述位置检出装置前一个检出的条形码记号位置信息;对储存在上述第一和第二存储装置中的二个位置信息进行比较的比较装置;控制装置,它在根据上述比较装置比较的结果被判断为二个位置信息不同时产生译码许可信号。According to the second aspect of the present invention, the double reading prevention device provided has: a position detection device, which detects the position information of the bar code mark based on the image information obtained by photographing the bar code mark at regular time intervals; device, which stores the position information of the barcode mark detected by the above-mentioned position detection device; the second storage device stores the position information of the bar code mark detected by the previous position detection device; A comparison device for comparing two position information in the two storage devices; a control device, which generates a decoding permission signal when it is judged that the two position information are different according to the comparison result of the comparison device.
即在按本发明的第一个式样的条形码记号读取装置和第二个式样的防止双重读取的装置中,设有储存条形码记号的位置信息的第一及第二存储装置和比较二个位置信息的比较装置,对已译码完毕的条形码记号的位置和新读入的条形码记号的位置作比较,它们如是一样的,这个新读入的条形码记号标记为无效,不进行译码,以防止双重读取。That is, in the bar code mark reading device of the first style and the device for preventing double reading of the second style according to the present invention, there are first and second storage means for storing the position information of the bar code mark and comparing two The comparison device of position information compares the position of the barcode mark that has been decoded with the position of the newly read barcode mark. If they are the same, the newly read barcode mark is invalid and will not be decoded. Prevents double reads.
还有,根据本发明的第三个式样提供的条形码记号读取装置具有:用于对由条和空隔组成的条形码记号摄象的摄象装置;条形码记号检出装置,从上述摄象装置的输出信号检出条形码记号的有或无;条形码记号译码装置,用来解释得自用上述摄象装置摄象的上述条形码记号的图象的该条形码记号的内容;控制装置,它在由上述条形码记号译码装置对条形码记号译码后,根据上述条形码记号检出装置,当存在至少一次不能检出条形码记号的状态时,给随后的上述的条形码记号译码装置的动作以许可。Also, the bar code mark reading device provided according to the third aspect of the present invention has: an imaging device for imaging a bar code mark composed of bars and spaces; a bar code mark detection device, from the above imaging device The presence or absence of the bar code mark is detected by the output signal; the bar code mark decoding device is used to interpret the content of the bar code mark obtained from the image of the above bar code mark captured by the above-mentioned camera device; the control device is controlled by the above-mentioned After the barcode symbol decoding device decodes the barcode symbol, according to the above barcode symbol detecting device, when there is at least one state where the barcode symbol cannot be detected, the operation of the subsequent barcode symbol decoding device is permitted.
即,在本发明的第三种式样的条形码记号读取装置中由条形码记号译码装置对条形码记号进行译码后,除非条形码记号检出装置至少一次未检出条形码记号,控制装置就禁止随后的条形码记号译码装置的动作,因而在检查出条形码记号从该条形码记号读取装置脱离之前不进行条形码记号的读入,从而防止“双重读取”。That is, after the barcode symbol is decoded by the barcode symbol decoding device in the barcode symbol reading device of the third style of the present invention, unless the barcode symbol detecting device fails to detect the barcode symbol at least once, the control device prohibits subsequent reading of the barcode symbol. The operation of the barcode symbol decoding device, so the barcode symbol is not read in until it is detected that the barcode symbol is detached from the barcode symbol reading device, thereby preventing "double reading".
图1是本发明第一个实施例构成的方框图;Fig. 1 is the block diagram that the first embodiment of the present invention forms;
图2是为了说明第一个实施例的动作的流程图;Fig. 2 is the flowchart of the action in order to explain the first embodiment;
图3A到图3C是为了更详细说明图2流程图中的条形码记号检出处理的一系列流程图;3A to FIG. 3C are a series of flow charts for more detailed description of the barcode mark detection process in the flow chart of FIG. 2;
图4是表示为了求取条形码记号的四角的扫描方向和检出座标点的图;4 is a diagram showing scanning directions and detection coordinate points for obtaining four corners of a barcode mark;
图5是表示由检出的座标点求二根大体上正交的直线和四个角的座标点的图像的图;Fig. 5 is a diagram showing an image of two substantially orthogonal straight lines and coordinate points at four corners obtained from the detected coordinate points;
图6是表示当作二元条形码记号例子的PDF417记号的构造的图;Fig. 6 is a diagram showing the structure of a PDF417 mark as an example of a binary barcode mark;
图7是表示关于第二个实施例条形码记号的检出处理的流程图;Fig. 7 is a flow chart showing the detection processing of the barcode mark related to the second embodiment;
图8是假想的、把有4×1标志阵列的PDF417的条形码记号图象投影成以帧存储器的图面单元配置的模式图;Fig. 8 is hypothetical, project the barcode mark image of the PDF417 that has 4 * 1 mark arrays to be configured as the model figure of the frame memory unit layout;
图9A和图9B是图7中的扫描和检出子程序的一系列流程图;9A and 9B are a series of flowcharts of the scanning and detection subroutines in FIG. 7;
图10表示第八个实施例的构成的图;Fig. 10 represents the figure of the composition of the eighth embodiment;
图11是用来说明第八个实施例的动作的流程图;Fig. 11 is a flowchart for explaining the actions of the eighth embodiment;
图12是用来说明条形码记号平行移动的模式图;Fig. 12 is a pattern diagram for illustrating the parallel movement of barcode marks;
图13是本发明第九个实施例的构成的方框图;Fig. 13 is a block diagram of the composition of the ninth embodiment of the present invention;
图14是用来说明第九个实施例的动作的流程图。Fig. 14 is a flowchart for explaining the operation of the ninth embodiment.
以下,参照附图,说明本发明的实施例。第一个实施例Hereinafter, embodiments of the present invention will be described with reference to the drawings. first embodiment
图1是本发明的第一个实施例构成的方框图。在该图中,CCD图象传感器10对贴在图中未表示的物品上的印有条形码记号的标签和商品等的图象信息摄象。帧存储器12将用上述CCD图象传感器10摄象的图象信息暂时存储起来。Fig. 1 is a block diagram showing the constitution of the first embodiment of the present invention. In this figure, a
条形码记号检出处理部14从储存在帧存储器12中的数据中找出条形码标记,输出它的位置信息。一次缓冲存储器16顺次存储用上述条形码记号检出处理部14检出条形码标记的位置信息,同时向二次缓冲存储器18或比较部20转送其存储的记号位置信息。二次缓冲存储器18储存从上述一次缓冲存储器16送来的记号位置信息的同时,向上述比较部20转送其储存的记号位置信息。比较部20对从那些一次和二次缓冲存储器16、18送来的二个记号位置信息进行比较。The barcode mark
译码处理部22基于用上述条形码记号检出处理部14检出的条形码记号的位置信息、读出来自存储在帧存储器12中的条形码记号的数据,将这个条形码记号的内容译码,将译码的结果转送到图中未示出的主计算机等中。The
控制部24控制上述CCD形象传感器10、条形码记号检出处理部14、一次缓冲存储器16、二次缓冲存储器18、比较部20、译码处理部22等各部。The
此外,上述条形码记号检出处理部14,比较20,译码处理部22,控制部24构成CPU26。In addition, the above-mentioned barcode mark
以下,在上述那样的构成中,以已经发表的数据码作为一例,以图2的处理流程图说明关于读入条形码记号的场合的处理程序。Hereinafter, in the configuration as above, the processing procedure for reading the bar code mark will be described with reference to the processing flow chart of FIG. 2, taking the already published data code as an example.
按照控制部24的控制,首先,用CCD图象传感器10对条形码记号的图象信号摄象并存储在帧存储器12中(步骤S1)。其次,由条形码记号检出处理部14进行条形码记号的检出(步骤S2)。即,数据码记号的场合,对存在有L字形外框特征的图式,检出这种图式就可找到四个角的座标。然后,判断有无条形码记号,最终有否求得四角的座标(步骤S3)。在摄象所得的图象中若不存在条形码记号,回到上述步骤S1。According to the control of the
这里,另外参照图3A至图3C的流程图更详细说明在上述步骤S2及S3的条形码记号的检出和有无的判断。Here, the detection of the barcode mark and the determination of the presence or absence of the barcode mark in the above-mentioned steps S2 and S3 will be described in more detail with reference to the flowcharts of FIGS. 3A to 3C .
条形码记号检出处理部14,例如,如图4所示,以每隔几个画面单元在水平方向(X)对帧存储器12扫描。即,首先在初期设定Y座标于初值Y0后(步骤S21),对X座标以每隔几个画面单元地从初值X0变到最大值XN,在水平方向进行扫描(步骤S22)。然后,把在此扫描中最初检出的黑电平和最后检出的黑电平的座标点存储起来(步骤S23)。接下来,以所定间隔A更新Y座标(步骤S24),对其结果判断是否超过最大值YN(步骤S25)。如未超过,回到上述步骤S22,重复上述处理。The barcode mark
于是,如水平方向全部扫描完毕的话,连结最初检出的黑电平的座标点,寻找连结多个座标点(如4个以上)的直线A(如图5中的L1),如这样的直线A存在的话(步骤S26)将该直线A上全部座标点PA存储起来(步骤S27)。同样,连结最后检出的黑电平的座标点,寻找多个座标点(例如4个以上)连结起来的直线B,如这个直线B存在的话(步骤S28),将在该直线B上的全部座标点PB存储起来(步骤S29)。以后,判断直线A,B是否大体上正交(步骤S30),如果是正交的,从所储存的座标点PA,PB计算求得两直线A、B的交点b(参看图5)的座标(步骤S31)。Then, if all the scanning in the horizontal direction is completed, connect the coordinate points of the initially detected black level, and find a straight line A (L 1 in Figure 5 ) connecting multiple coordinate points (such as more than 4), such as this If the straight line A exists (step S26), all coordinate points P A on the straight line A are stored (step S27). Equally, connect the coordinate point of the black level that detects at last, look for the straight line B that a plurality of coordinate points (for example more than 4) link together, if this straight line B exists (step S28), will all on this straight line B The coordinate point P B is stored (step S29). Afterwards, it is judged whether the straight lines A and B are substantially orthogonal (step S30), if they are orthogonal, the intersection point b (see Fig. 5 ) of the two straight lines A and B is calculated from the stored coordinate points P A and P B coordinates (step S31).
另一方面,在上述的步骤S30里,如果判断为两直线A,B大体不正交的话(包括求不到两条直线A,B的场合),再在垂直方向(Y)上扫描,进行同样的处理。即,首先以初值X0初期设定X座标之后(步骤S32),以每隔几个画面单元把Y座标从初期值Y0变更到最大值YN,在垂直方向上进行扫描(步骤S33)。然后,把在此扫描中最初检出的黑色电平和最后检出的黑色电平的座标点储存起来(步骤S34)。接着,以所定间隔B更新X座标(步骤S35)判断其结果是否超过最大值XN(步骤S36)。如果未超过,回到上述步骤S33,重复上述处理。随后,如全部垂直方向的扫描完毕后,将最初检出的黑色电平的座标点连结起来,寻找多个座标点(例如4个以上)连结起来的直线C,这条直线C如存在的话(步骤S37),将在这条直线C上的全部座标点PC储存起来,(步骤S38)。同样,连结最后检出的黑色电平的座标点,寻找多个座标点(例如4个以上)连结起来的直线D(例如,图5中的L2),如这样的直线D存在的话(步骤39),将在此直线D上的全部座标点PD储存起来(步骤S40)。再判断在直线A到D中是否有两条直线大体上正交(步骤S41)。如果不存在正交的情形,作为不存在条形码记号(步骤S42),处理结束,回到上述步骤S1。On the other hand, in the above-mentioned step S30, if it is judged that the two straight lines A and B are not substantially orthogonal (including the occasion that the two straight lines A and B cannot be found), then scan in the vertical direction (Y) to perform Same deal. That is, after first setting the X coordinate initially with the initial value X 0 (step S32), the Y coordinate is changed from the initial value Y 0 to the maximum value Y N every several screen units, and scanning is performed in the vertical direction ( Step S33). Then, the coordinate points of the first detected black level and the last detected black level in this scan are stored (step S34). Next, the X coordinate is updated at predetermined intervals B (step S35) and it is judged whether the result exceeds the maximum value X N (step S36). If not, go back to the above step S33 and repeat the above processing. Subsequently, after the scanning of all vertical directions is completed, the coordinate points of the initially detected black level are connected, and a straight line C connecting a plurality of coordinate points (for example, more than 4) is found. If this straight line C exists ( Step S37), store all the coordinate points PC on the straight line C , (step S38). Similarly, connect the coordinate points of the last detected black level, and look for a straight line D (for example, L 2 in Fig. 5 ) connecting a plurality of coordinate points (for example, more than 4), if such a straight line D exists (step 39), storing all the coordinate points PD on the straight line D (step S40). Then it is judged whether there are two straight lines substantially orthogonal among the straight lines A to D (step S41). If there is no orthogonality, it is assumed that there is no barcode mark (step S42), the process ends, and the process returns to the above-mentioned step S1.
还有,假如大体上正交的两条直线存在的话,从所储存的关于该正交的两条直线的座标点计算求得两直线交点b(参看图5)的座标(步骤S43)。Also, if two substantially orthogonal straight lines exist, the coordinates of the intersection point b (see FIG. 5 ) of the two straight lines are calculated from the stored coordinate points on the two orthogonal straight lines (step S43).
然后从算出的两条直线的交点b和检出的座标点决定条形码记号的四角的座标a、b、c、d。即,各自沿了正交的两条直线在高开交点b的方向上扫描读出数据(步骤S44),将黑色电平的最后的座标点作为点a及c储存起来(步骤S45)。再从这些储存的3个点a、b、c的座标计算点d的座标,将结果储存起来,同时将这些求得的四角的座标点a、b、c、d的座标作为位置信息输出到一次缓冲存储器16中(步骤S46)。最后,在数据码的场合,因为其条形码记号的外形是正方形,所以交点和一边的长度如果已知的话,可以简单地决定四个角。此外,即使此四个角的座标和记号位置不正确地一致也没关系。Then, the coordinates a, b, c, and d of the four corners of the barcode mark are determined from the calculated intersection b of the two straight lines and the detected coordinate points. That is, scan and read data along two orthogonal straight lines in the direction of the upper intersection point b (step S44), and store the last coordinate points of the black level as points a and c (step S45). Then calculate the coordinates of point d from the coordinates of the three stored points a, b, and c, store the result, and use the coordinates of the obtained four corners of points a, b, c, and d as the position The information is output to the primary buffer memory 16 (step S46). Finally, in the case of a data code, since the shape of the barcode mark is a square, if the lengths of the intersection and one side are known, the four corners can be determined simply. In addition, it does not matter even if the coordinates of these four corners and the position of the mark do not coincide correctly.
这样一来,找到的四个角的座标暂时储存在一次缓冲存储器16中,一次缓冲存储器16将此位置信息转送到比较部20和二次缓冲存储器18。二次缓冲存储器18转送所储存的位置信息去比较部20的同时,将从一次缓冲存储器16送来的记号的位置信息储存起来以后,在比较部20中,对从一次缓冲存储器16和二次缓冲储器18送来的二组四点座标之中至少比较一个座标点,判定是否相同(步骤S4),在这个判定中,各座标点的误差要是是几个画面单元的程度就视为是相同的。这里,在判定位置是相同的场合,将相同的条形码记号判断为二次读入,此记号作为无效的,发出表示防止双重读取机构动作的警示信号,催促掉换条形码记号,也就是掉换商品(步骤S5)。此后,回到上述步骤S1进行下面的读入。In this way, the coordinates of the found four corners are temporarily stored in the
再有,在上述步骤S4中,在判定为位置不同的场合,要进行条形码记号的位置的确定处理(条形码记号的静止确认处理)。即,直接再一次读入(步骤S6),进行和上述步骤S2同样的在条形码记号检出处理部14里做的记号位置检出(步骤S7)。然后,新的位置信息储存在一次缓冲存储器16中,和储存在二次缓冲存储器18中的前最近一次的记号的位置信息在比较部20中进行座标比较(步骤S8)。这次,位置若相同,视为条形码记号确定。In addition, in the above-mentioned step S4, when it is determined that the positions are different, a process of specifying the position of the bar code mark (rest confirmation process of the bar code mark) is performed. That is, it reads again directly (step S6), and performs mark position detection in the barcode mark
于是,如果条形码记号的位置是确定的,即确认为是静止的话,接着,控制部24给译码处理部22一个译码许可信号,相应于此,译码处理部22进行条形码记号的译码(步骤S9)。即,译码处理部22中,用来自条形码记号检出处理部14的记号位置信息,沿着如图5那样的条形码记号依次扫描只存在条形码记号部分的帧存储器,对条形码记号信息译码。随后,将译码的结果向图中未示出的主计算机转送(步骤S10),以报知一个条形码记号读取完毕为目的的警示信号发出后(步骤S11),处理结束,回到上述步骤S1转移为下面的条形码记号的读入。Then, if the position of the barcode mark is determined, that is, if it is confirmed to be stationary, then the
另一方面,如果在上述步骤8中判断为位置不同,控制部24,判断为条形码记号是移动了,视为是在条形码记号即商品的掉换作业中而不进行由译码处理部22的译码,回到上述步骤S1而转移为下一次读入。On the other hand, if it is judged that the positions are different in the above-mentioned step 8, the
总之,在本第一实施例中,条形码记号被掉换后就用CCD图象传感器10摄象,立即再一次用CCD图象传感器10摄象,如果没有记号移动的话,就开始译码。而且对要译码的记号到被更换为止,都要重复步骤S1-S5的循环,然后再译码,即防止了双重读取。In short, in the present first embodiment, after the bar code mark is changed, just use the
如果对为拿走这译了码的条形码记号而致使在记号移动中摄像了,就成为会通过步骤S4到步骤S6的结果,在此场合根据用步骤S8的静止确认淘汰而回到步骤S1,再译码,即防止了双重读取。If for taking away the barcode mark of this deciphered code and causing in mark movement to take pictures, just become the result that can pass through step S4 to step S6, in this case, get back to step S1 according to the static confirmation with step S8 to eliminate, Decoding again prevents double reading.
在随后的条形码记号插入之中,由步骤S8的静止确认淘汰,直到这个条形码记号停下来之前译码是不开始的。In the insertion of subsequent bar code marks, it is eliminated by the static confirmation of step S8, and decoding does not start until this bar code mark stops.
但是这个场合,基于在步骤S6的条形码记号读入被在步骤S8淘汰之后到在步骤S1的条形码记号读入为止之间的时间内条形码记号假如不移动,在步骤S4上总究会判断为位置相同,就不能进行步骤S6以后的处理,恐怕会有到任何时侯也不进行译码之事。但是,在这种场合,根据步骤S5的警示信号,向操作者报知所述的不能读入的情况,促使将条形码记号位置挪动一点进行对策处理。However, in this case, if the barcode mark does not move during the time between when the barcode mark is read in step S6 and when the bar code mark is read in step S1, it will be judged to be in position after all in step S4. Similarly, the processing after step S6 cannot be performed, and there is a possibility that decoding will not be performed at any time. However, in this case, according to the warning signal in step S5, the above-mentioned situation that cannot be read is reported to the operator, and the position of the barcode mark is moved a little to take countermeasures.
这样,在本第一实施例中,因为只对条形码记号的位置信息作比较,所以比较处理进行得简单、快速。还有,因为从条形码记号的位置确定来译码,所以在条形码记号掉换作业中的双重读取也可以防止。第二个实施例Thus, in the first embodiment, since only the positional information of the barcode marks is compared, the comparison process is performed simply and quickly. Also, since the decoding is determined from the position of the bar code mark, double reading in the bar code mark replacement operation can also be prevented. second embodiment
在以上的第一个实施例中,条形码记号使用了数据码,本发明并不只限定于此,不管是PDF417,CODE49,等其他二元条形码记号也可以。In the above first embodiment, the barcode mark uses a data code, and the present invention is not limited thereto, no matter it is PDF417, CODE49, or other binary barcode marks.
因此,将另外使用PDF417的场合作为第二个实施例来说明。此处,PDF417记号的构成如示于图6那样。即,这个条形码记号具有:用由条和空隔组合而成的条形码符号群构成的应是多个信息成分的区域的标志部28;和在标志部前后配置的是起始/结束符号的起始码30及结束码32。于是,一个码,除了结束码32,由4个条和空隔组成,而结束码32A由5个条和4个空隔组成。此外,起始码及结束码30、32以被称为“粗条”的粗的条30A、32A开始。只要检出有此特征的粗条30A、32A,就可以找到记号的四角的座标。Therefore, a case where PDF417 is additionally used will be described as a second embodiment. Here, the structure of the PDF417 mark is as shown in FIG. 6 . That is, this barcode mark has: the
标志部28,由相邻于起始码30和结束码32而存在的被称为行指示符28A的码、夹在它们之间的记述实际数据的多个数据列28B所组成的标志阵列28C所构成。在行指示符28A中,记述了标志的行方向、列方向的规模,以及可靠性等级等。其中,可靠性等级,对PDF417是有订正错误能力的等级,一共有九级。从而,解读出这个行指示标28A的信息,可以决定条形码记号的信息规模等。The
这个图6示出了有4×2标志阵列的条形码记号。This Figure 6 shows a barcode indicium with a 4x2 array of markers.
本第二实施例,对于上述第一实施例,只有条形码记号检出处理(图2的步骤S2)是不同的,所以只对这部分参照图7的处理流程图进行说明。在本说明书中,流程图按照程序语言C的记述方式来书写。This second embodiment is different from the above-mentioned first embodiment only in the barcode mark detection process (step S2 in FIG. 2 ), so only this part will be described with reference to the processing flow chart in FIG. 7 . In this specification, flowcharts are written in the description format of the programming language C.
图8是表示假想的、把有4×1标志阵列的PDF417的条形码记号图象投影成帧存储器12的图面单元配置的模式图,条形码记号检出处理部14把投影在这个帧存储器12内的条形码记号的投影像34检出来。即,在条形码记号检出处理部14中,首先对帧存储器12在水平(X)方向上以每隔几个图面单元进行扫描,检出起始码30和结束码32(步骤S51),找到条形码记号34的四个角。如果在水平扫描中找不到条形码记号34的场合(步骤S52),对帧存储器12在垂直(Y)方向上扫描,同样地找条形码记号34的四角(步骤S53)。如果这样都找不到记号34的情况下(步骤S54),作为没有条形码记号(记号来检出)退出这项处理。就是,得到没有记号的信息就返回。再者,在本说明书里,因为按照C语言的表记方式就成为这个图中的书写方法,可是如按照FORTRAN等的表记方式,要变成所谓要在有了无记号的识别标记后才返回的书写方法。还有,关于上述步骤S52或S54,在找到条形码记号的四角场合下,作为有条形码记号(检出记号)而退出这项处理。FIG. 8 is a schematic diagram showing a hypothetical image of a barcode symbol of PDF417 having a 4×1 mark array projected into a
其中,关于步骤S51-S53,参照图9A及图9B详细说明条形码记号34的检出子程序。Here, regarding steps S51-S53, the subroutine for detecting the barcode mark 34 will be described in detail with reference to FIGS. 9A and 9B.
首先,为了每隔几个图面单元来读出,作为读出位置计数n的值,初期设定了相当于上述几个图面单元的所定的图面单元增量scan-inc的值之后(步骤S61),判断是水平扫描还是垂直扫描(步骤S62),若是水平扫描的话,从帧存储器12读出第n行的数据(步骤S63)。若是垂直扫描的话,读出第n列的数据(步骤S64)。First, in order to read every several picture units, as the value of the read position count n, initially set the value corresponding to the predetermined picture unit increment scan-inc of the above-mentioned several picture units ( Step S61), judging whether it is horizontal scanning or vertical scanning (step S62), if it is horizontal scanning, read the data of the nth line from the frame memory 12 (step S63). In the case of vertical scanning, the data of the nth column is read (step S64).
其次,判断在所取出的数据系列中存在起始码30否(步骤S65)。存在的场合,判断在现在的图象数据中是否是属于初次检出(步骤S66)。然后,是初次的场合,把检出的座标寄存为座标变数e(步骤S67)。不是初次的场合,把检出的座标寄存为座标变数g(步骤S68)。Next, it is judged whether or not the
再其次,同样地,判断存在不存在结束码32(步骤S69)。在存在的场合时,判断是否是初次检出的结果(步骤S70)。初次的场合将检出的座标寄存为座标变数f(步骤S71)。不是初次的场合,将检出的座标寄存为座标变数h(步骤S72)。Next, similarly, it is judged whether or not the end code 32 exists (step S69). If it exists, it is judged whether it is the result of initial detection (step S70). In the case of the first time, the detected coordinates are registered as the coordinate variable f (step S71). If it is not the first time, the detected coordinates are registered as the coordinate variable h (step S72).
于是,在读出位置计数n的值上加上上述图面单元增量scan-inc这样来设定下一次扫描位置(步骤S73),判断这个位置是否在图面之外(步骤S74)。属在图面内的场合则回到上述步骤S62读出下一个数据系列。Then, the next scanning position is set by adding the above-mentioned picture unit increment scan-inc to the value of the read position count n (step S73), and it is judged whether this position is outside the picture (step S74). If it is within the drawing, return to the above-mentioned step S62 to read the next data series.
另一方面,属于在图面以外的场合,判断起始码/结束码检出座标是否分别发现了2点(步骤S75,S76)。即,判断座标复数e、g、f、h全都定义了没有,如没有被定义则判断为条形码记号没有被检出,移到下面的条形码记号的读入。On the other hand, if it is outside the drawing, it is judged whether two points are found in the start code/end code detection coordinates (steps S75, S76). That is, it is judged whether the plural coordinate numbers e, g, f, and h are all defined, and if not defined, it is judged that the barcode mark has not been detected, and the reading of the barcode mark is moved to the following.
座标变数全部定义的场合,算出并储存条形码记号的四个角的座标(步骤S77)。具体地,求得通过座标e、g的直线,然后,从座标e、g向粗条的内侧进入数个图面单元的位置(i,j)起,向记号的上/下边缘方向观察数据,最初发现的边界座标分别寄存为座标复数m、n。再从座标m、n向通过座标e、g的直线作垂线,其交点为a、b,就是条形码记号的起始码侧的二个角的座标。结束码侧也同样地进行处理,可以求得二个角的c、d。When all the coordinate variables are defined, the coordinates of the four corners of the barcode mark are calculated and stored (step S77). Specifically, a straight line passing through the coordinates e and g is obtained, and then, starting from the position (i, j) where the coordinates e and g enter several picture units inside the thick bar, it moves toward the upper/lower edge direction of the mark Observe the data, the initially found boundary coordinates are stored as coordinate complex numbers m and n respectively. Make a vertical line from the coordinates m and n to the straight line passing through the coordinates e and g, and the intersection points are a and b, which are the coordinates of the two angles on the starting code side of the barcode mark. The end code side is also processed in the same way, and c and d of the two corners can be obtained.
这个场合,该二个角c、d并不是相当于实际的条形码记号的角的座标,因为即使用这些座标点也不会有问题所以为了计算简化,就使用这些座标点c、d。不用说,要决定结束码32的码形,从点c、d在上述垂线方向上读取数据,由此也可以求得条形码记号的实际的角的座标。In this case, the two corners c and d do not correspond to the coordinates of the corners of the actual barcode mark, and since there is no problem even if these coordinate points are used, these coordinate points c and d are used for calculation simplification. Needless to say, to determine the code shape of the end code 32, data is read from the points c and d in the direction of the above-mentioned perpendicular line, thereby also obtaining the coordinates of the actual corners of the bar code mark.
这些求得的四个角的座标点a、b、c、d的座标作为标志位置信息输出给一次缓冲存储器16、和储存在二次缓冲存储器18中的位置信息作比较,防止条形码记号的双重读取。第三个实施例The coordinates of the coordinate points a, b, c, and d of these four corners obtained are output to the
对于上述第一个和第二个实施例中,将上述步骤S6的条形码记号读入立即实行,例如1,2秒之后实行的话,因为能够确认条形码记号确实地被定位,所以能比较正确地进行读取。第四个实施例For the above-mentioned first and second embodiments, the barcode mark of the above step S6 is read into and implemented immediately, for example, if it is carried out after 1 or 2 seconds, because it can be confirmed that the barcode mark is indeed positioned, it can be carried out more correctly. read. fourth embodiment
还有,对以上第三个实施例,若考虑1,2秒以后实行的上述步骤S6的条形码记号的读入一定是读入了其他条形码记号,则可以省略步骤S8的条形码记号的位置比较处理,这样一来的话,可以比较快速地处理。第五个实施例In addition, for the above third embodiment, if considering that the reading of the bar code mark of the above-mentioned step S6 carried out after 1 or 2 seconds must be to read in other bar code marks, then the position comparison process of the bar code marks of step S8 can be omitted , in this way, it can be processed relatively quickly. fifth embodiment
对于上述第一个和第二个实施例中,在上述步骤S11发出警示信号后立即回到步骤S1进行条形码记号读入处理,可是由于要等待人掉换条形码记号有充分的时间间隔,例如2,3秒,要是这样再进行步骤S1的条形码记号的读入的话,省略上述步骤S6~S8的情形是可能的,成为可以较快速进行处理。对上述第三个和第四个实施例也同样地,从步骤S11回到步骤S1的时候,等待一个让人有充分地掉换条形码记号的时间间隔比较好。For above-mentioned first and second embodiment, get back to step S1 and carry out the bar code mark read-in processing immediately after above-mentioned step S11 sends warning signal, but have sufficient time interval owing to waiting for people to change bar code mark, for example 2, 3 seconds, if the reading of the barcode mark in step S1 is performed again in this way, it is possible to omit the above-mentioned steps S6-S8, and it becomes possible to perform the processing more quickly. The above-mentioned third and fourth embodiments are also the same, when returning to step S1 from step S11, it is better to wait for a time interval for people to fully change the barcode marks.
那么,在从上述步骤S5回到步骤S1的时侯也同样地等待一个让人有充分地掉换条形码记号的时间间隔这样比较好。第六个实施例Then, when returning to step S1 from above-mentioned step S5, it is also better to wait for a time interval in which people have enough to change the barcode marks. sixth embodiment
条形码记号位置信息可以不管标志的四个角的四个座标之中的一个或二个或三个。第七个实施例The position information of the barcode mark may be one, two or three of the four coordinates of the four corners of the mark. seventh embodiment
此外,在上述第一个到第六个实施例中,使用了CCD图象传感器10和帧存储器12的组合,作为摄象元件,如果使用可以随机存取的CMD(电荷调制器件charge modulation device)因为具备帧存储器的功能,所以另外设置帧存储器变得没有必要。第八个实施例In addition, in the above-mentioned first to sixth embodiments, the combination of the
作为第八个实施例,要说明读取贴在在皮带传输机上流动的商品之上的二元条形码记号的系统。As an eighth embodiment, a system for reading binary barcode marks attached to commodities flowing on a belt conveyor will be described.
图10是本实施例系统的构成图。在各种物品36的上面贴有二元条形码记号38,诸如物品的去处,物品名称,数量等被数码化在这个二元条形码38之上。各物品36随着皮带传送机40以其所具有的速度在一定方向上移动,在预定的位置上设置的摄象机42底下通过的时侯对条形码记号38摄象。摄象机42常是反复摄象,由于用闪光高速快门的缘故,不因物品36在移动而使成像模糊。由摄像机42摄得的条形码记号在译码器44中被施行译码处理,相应于译码内容,根据传送带控制器46来控制物品36的流动。Fig. 10 is a structural diagram of the system of this embodiment. A binary barcode mark 38 is pasted on
译码器44的构成和第一个实施例的帧存储器12以后的构成是同样的,只是比较部20的处理内容不同。The configuration of the
一边参照图11,一边详细说明作为二元条形码记号使用PDF417场合的本实施例的译码处理。Referring to FIG. 11, the decoding process of this embodiment when PDF417 is used as a binary barcode symbol will be described in detail.
首先,摄像机42反复进行图象摄取,收摄得的图像数据存入帧存储器12(步骤S80)。在条形码记号检出处理部14中一方面从帧存储器12读出数据,一方面根据前述的标志检出方法检出条形码记号的四个角的座标(步骤S81)。然后,判定是否找到四个角的座标,最后判定在图面内有没有记号(步骤S82),没有的话就回到上述步骤S80,转移到读取以下的图象。First, the
又,若被判定条形码记号存在,将检出的四个角的座标作为位置信息存入一次缓冲存储器16,在比较部20里和存入二次缓冲存储器18的前一次的记号的位置信息作比较。在比较部20中,先比较四个角的座标来判断前一次的记号位置和这一次的是否相同(步骤S83)。如果位置是相同的话,判断为相同的条形码记再次连续读入,这次读入的记号变作无效不进行译码,回到上述步骤S80,转移到下一次图象读入。Again, if it is judged that the barcode mark exists, the coordinates of the detected four corners are stored in the
另一方面,位置不同的场合,在本第八个实施例中,因为条形码记号38在皮带传送机上移动,所以着眼于条形码记号以一定速度在一定方向上移动着这一点上。图12表示投影在帧存器上的条形码记号的像48。在该图上,50表示前一次摄象所得的记号的图像S1,52表示这一次摄像所得的记号的图像S2,点a、b、c、d和点a’、b’、c’、d’分别表示检出的各该四个角的座标位置。条形码记号38在皮带传送机40上移动着,读入记号S1后,随着皮带传送机40的移动读入了平行移动了的记号S2。记号S1和S2的绝对位置不同了,可是相对地看,假如有平行移动了在摄像间隔之内皮带传送机40移动的距离这样的关系的话,应判断为相同的条形码记号38再次连续读入。摄像机42的摄取间隔短,这种位置不同但像同样的记号被读入的情况发生得多。On the other hand, when the positions are different, in the eighth embodiment, because the barcode mark 38 moves on the belt conveyor, attention should be paid to the fact that the barcode mark moves in a certain direction at a constant speed. Figure 12 shows an image 48 of the barcode indicia projected on the frame memory. In this figure, 50 represents the image S1 of the mark obtained by the previous imaging, and 52 represents the image S2 of the mark obtained by this imaging, points a, b, c, d and points a', b', c', d ' represent the coordinate positions of the detected four corners respectively. The barcode mark 38 is moving on the
因此,在本第八实施例中,接下来要判断相应于二个记号S1,S2的四个角的座体平行移动与否(步骤S84),若平行移动了的话,判断为相同的条形码记号二次连续读入,回到上述步骤S80转移到下次图像读入。再者,是全然不同的位置的话,作为新的条形码记号读入,由译码处理部22进行译码(步骤S85),将译码结果转送给传送机控制器46(步骤S86)。并且,这个时侯从一次缓冲存储器16来的译了码的记号的位置信息被输出到二次缓冲存储器18去。此后,回到上述步骤S80,转移为下一次的图像取入。Therefore, in the eighth embodiment, it is necessary to judge whether the bases corresponding to the four corners of the two marks S1 and S2 move in parallel (step S84). If they move in parallel, it is judged as the same barcode mark For the second continuous read-in, return to the above step S80 and transfer to the next image read-in. Furthermore, if it is a completely different position, it is read in as a new barcode mark, decoded by the decoding processing unit 22 (step S85), and the decoding result is forwarded to the conveyor controller 46 (step S86). And, at this time, the position information of the decoded symbol from the
这样,不单:比较记号的四个角的座标位置,还设有判断有否平行移动的比较处理,据此可以防止在一定方向上移动的条形码记号的双重读取。第九个实施例In this way, not only the coordinate positions of the four corners of the marks are compared, but also comparison processing for judging whether there is parallel movement is provided, thereby preventing double reading of barcode marks moving in a certain direction. ninth embodiment
下面,说明本发明的第九个实施例。Next, a ninth embodiment of the present invention will be described.
图13是表示其构成的图,由图上没有表示的照明装置照亮含有条有码记号54的标签等,它的反射光射入摄像机56。在摄像机56中将光信号变换成电信号,另外附加了同步信号等等成为视频信号,将它们送入视频回路58。在视频回路58中,将同步信号从输入的视频信号中分离,再作A/D变换而数字化。这个数字化了信号存入帧存储器60内。FIG. 13 is a diagram showing its configuration. A label or the like including a bar code mark 54 is illuminated by an illuminating device not shown in the figure, and the reflected light thereof enters a camera 56 . In the camera 56, the optical signal is converted into an electrical signal, and a synchronization signal and the like are added to form a video signal, which is sent to a video circuit 58. In the video circuit 58, the synchronizing signal is separated from the input video signal, followed by A/D conversion and digitization. This digitized signal is stored in frame memory 60 .
含有存入帧存储器60的条形码记号54的标签上的图像由高速演算回路扫描(从存储器60中检出图像信息),实施条形码记号54有无的检出以及条形码记号54的译码。译码的内容暂时存入译码结果寄存存储器64中。高速演算路62随这个译码完毕,清除译码许可标志(禁止译码)。The image on the label containing the barcode mark 54 stored in the frame memory 60 is scanned by the high-speed arithmetic circuit (image information is detected from the memory 60), and the presence or absence of the barcode mark 54 and the decoding of the barcode mark 54 are implemented. The decoded content is temporarily stored in the decoding result storage memory 64 . After the decoding is completed, the high-speed calculation circuit 62 clears the decoding permission flag (decoding is prohibited).
CPU68是控制各构成部分的东西,例如,向视频回路58输出指示向帧存储器60送入图像的送入开始信号、向高速演算回路62输出条形码记号54的检出开始信号及条形码记号54的译码开始信号、还有控制从高速演算回路62接收条形码记号54的检出状态信号和条形码记号54的译码及检查终了信号等的各部分的动作。另外,条形码记号54可以检出时,设定表示对条形码54译码是否可以的译码许可标志66(译码许可),从译码结果寄存存储器64中取出记录的条形码记号54的信息,控制主机接口电路70,将这个信息转送给图中没有表示的主计算机。CPU 68 controls each component, for example, outputs to video circuit 58 the sending start signal that instructs to send image into frame memory 60, and outputs the detection start signal of bar code mark 54 and the decoding of bar code mark 54 to high-speed calculation circuit 62. The code start signal also controls the operation of each part that receives the detection status signal of the barcode mark 54 from the high-speed calculation circuit 62 and the decoding and inspection end signal of the barcode mark 54 . In addition, when the barcode mark 54 can be detected, the decoding permission flag 66 (decoding permission) indicating whether it is possible to decode the barcode 54 is set, and the information of the barcode mark 54 recorded is taken out from the decoding result storage memory 64, and the control The host interface circuit 70 transfers this information to a host computer not shown in the figure.
以下,参照图14的流程图说明这种样子构成的条形码记号读取装置的“双重读取”防止机构的动作。Hereinafter, the operation of the "double reading" preventing mechanism of the barcode symbol reading device configured in this way will be described with reference to the flowchart of FIG. 14 .
首先,CPU68向视频回路58输出送入开始的信号,向帧存储器60进行图像的送入(步骤91)。这步图像送入完毕之后,CPU68向高速演算回路62输出条形码记号54的检出开始信号,由高速演算回路62进行条形码记号54有元的检出(步骤S92)。这个条形码记号的检出,除前面已叙述过的以外还已知有各种方法,例如,在日本国专利公报特开平2-23483号上公开的那样,已知一种在确认为有多个平行的条的情形的判断有条形码记号的方法。还有,对PDF417、DATA、CODE等这类的二元条形码记号,根据确认所称的起始粗条码和L字形外框的特征部分的存在,能取得检知条形码记号存在的方法。随后,高速演算回路62将条形码记号54的检出结果作为检出状态信号输出给CPU68。First, the CPU 68 outputs a start signal to the video circuit 58, and sends an image to the frame memory 60 (step 91). After this step image is sent in, CPU68 outputs the detection start signal of barcode mark 54 to high-speed computing circuit 62, carries out the detection of barcode mark 54 by high-speed computing circuit 62 (step S92). The detection of this bar code mark, also known various methods besides what has been described above, for example, as disclosed in Japanese Patent Publication No. Hei 2-23483, it is known that there are a plurality of Judgment of situation of parallel bar has method of barcode mark. Also, for binary barcodes such as PDF417, DATA, CODE, etc., a method for detecting the existence of barcodes can be obtained by confirming the existence of the so-called initial thick barcode and the characteristic part of the L-shaped frame. Subsequently, the high-speed calculation circuit 62 outputs the detection result of the barcode mark 54 to the CPU 68 as a detection status signal.
CPU68根据对从这个高速演算回路62来的检出状态信号作判断来判断送入帧存储器60的图像中是否存在条形码记号54(步骤S93)。于是,当条形码记号54不存在的时候,回到上述步骤S91,指示再一次送入图像。而条形码记54存在的时侯,向高速演算回路62输出条形码记号54的译码开始信号,在高速演速回路62中进行条形码记号54的译码(步骤S94)。高速演算回路62,相应于这个译码开始信号,确认了所设定的译码许可标志66(译码许可)的事实之后,从送入帧存储器60的条形码记号54的图像中对该条形码记号的信息进行译码。另外,高速演算回路62进行这个译码结果的检查(步骤S95)。这个译码内容的检查,单单确认译码结果的场合(JAN/UPC/E AN码、ITF(五隔二行)码、CODE39、NW-7码、CODE128等)里有,伴有错误订正的场合(PDF417、DATA、CODE等二元条形码记号)也有。以后,高速演算回路62向CPU68给出含有这个检查结果的信息的条形码记号54的译码及检查完毕信号。CPU 68 judges whether there is barcode mark 54 in the image sent into frame memory 60 according to the detection status signal coming from this high-speed calculation circuit 62 (step S93). Then, when the barcode mark 54 does not exist, return to the above-mentioned step S91, and instruct to send the image again. And when the bar code mark 54 exists, output the decoding start signal of the bar code mark 54 to the high-speed calculation circuit 62, and carry out the decoding of the bar code mark 54 in the high-speed derivation circuit 62 (step S94). The high-speed calculation circuit 62, corresponding to this decoding start signal, after confirming the fact of the set decoding permission flag 66 (decoding permission), marks the bar code from the image of the bar code mark 54 sent into the frame memory 60. information is decoded. In addition, the high-speed arithmetic circuit 62 checks the decoding result (step S95). The inspection of the decoding content is included in cases where only the decoding result is confirmed (JAN/UPC/E AN code, ITF (five-interval two-line) code, CODE39, NW-7 code, CODE128, etc.), with error correction Occasionally (binary barcode symbols such as PDF417, DATA, CODE, etc.) are also available. Afterwards, the high-speed calculation circuit 62 provides the decoding and inspection completion signal of the barcode mark 54 containing the information of the inspection result to the CPU 68.
这里,CPU68对来自高速演算回路62的上述译码及检查完毕信号作判断(步骤S96),在不能正确译码的时侯,回到上述步骤S91,再一次从图像送入开始重复。又,在能够正确译码的时侯,CPU68将译码结果保持信号输出到高速演算回路62。高速演算回路62,相应于这个译码结果保持信号,将已译码了的内容暂时寄存入译码结果寄存存储器64的同时,清除译码许可标志66(禁止译码)(步骤S97)。Here, CPU 68 judges (step S96) from the above-mentioned decoding of high-speed computing circuit 62 and the completion signal of inspection, and when it cannot be decoded correctly, returns to above-mentioned step S91, and starts repeating from image sending in again. Also, when the decoding can be performed correctly, the CPU 68 outputs a decoding result hold signal to the high-speed arithmetic circuit 62 . The high-speed calculation circuit 62 temporarily stores the decoded content in the decoding result storage memory 64 in response to the decoding result holding signal, and clears the decoding permission flag 66 (decoding prohibited) (step S97).
其次,CPU68从译码结果寄存存储器64取出记录的条形码记号54的信息,控制主机接口电路70,将此信息向图中未表示的主计算机转送(步骤S98)。Next, the CPU 68 fetches the information of the recorded barcode mark 54 from the decoding result storage memory 64, controls the host interface circuit 70, and transfers the information to a host computer not shown in the figure (step S98).
以后的处理是防止“双重读取”功能的部分。The later processing is part of the "double read" prevention function.
即,再一次,从CPU68向视频回路58输出向帧存储器60送入图像的开始信号而送入图像(步骤S99)。这个图像送入结束后,由高速演算回路62进行条形码记号54有无的检出(步骤S100)。这里,在送入帧存储器60的图像中存在条形码记号54的时候,确认了译码许可标志66被清除的事实(步骤S101),从上述步骤S99的图像的送入开始重复。结果,向主机的转送结束之后,在还存在有条形码记号54的场合,已结束了向主机转送的条形码记号54被判断为没有从该读取装置拿走的情形下,以后的处理就不进行。That is, again, a signal to start image input to the frame memory 60 is output from the CPU 68 to the video circuit 58 to input an image (step S99). After the sending of this image is completed, the presence or absence of the barcode mark 54 is detected by the high-speed arithmetic circuit 62 (step S100). Here, when the barcode mark 54 exists in the image sent into the frame memory 60, the fact that the decoding permission flag 66 is cleared is confirmed (step S101), and the sending of the image from the above-mentioned step S99 is repeated. As a result, after the transfer to the host is completed, if there is still a bar code mark 54, if the bar code mark 54 that has been transferred to the host is judged to have not been taken away from the reading device, subsequent processing will not be performed. .
另一方面,在条形码记号54不存在的时侯(步骤S101),再一次,从CPU68向视频回路58发出向帧存储器60的图像送入的开始信号而送入图像(步骤S102)。这个图像的送入结束之后,由高速演算回路62进行条形码记号54有无的检出(步骤S103)。在这里,在送入帧存储器60的图像中存在条形码记号54的时侯,确认译码许可标志66被清除的事实(步骤S104),从上述步骤S99的图像的送入开始重复。即作为步骤S102至步骤S104,重复和上述步骤S99至步骤S101的处理同样的处理。On the other hand, when the barcode mark 54 does not exist (step S101), once again, the video circuit 58 sends a start signal to the image input of the frame memory 60 from the CPU 68 to input the image (step S102). After the sending of this image is completed, the presence or absence of the barcode mark 54 is detected by the high-speed arithmetic circuit 62 (step S103). Here, when the barcode mark 54 exists in the image sent into the frame memory 60, the fact that the decoding permission flag 66 is cleared is confirmed (step S104), and the sending of the image from the above-mentioned step S99 is repeated. That is, as steps S102 to S104, the same processing as that of the above-mentioned steps S99 to S101 is repeated.
在上述步骤S104中判断为不存在条形码记号54的时侯,CPU68设定译码许可标志66(步骤S105)。即,在二次连续送入帧存储器60的图像中不存在条形码记号54的时侯,变成设定译码许可标志66。此后,回到上述步骤S91,重复前述的处理。When it is judged in step S104 that there is no barcode mark 54, the CPU 68 sets the decoding permission flag 66 (step S105). That is, when the barcode mark 54 does not exist in the image continuously sent to the frame memory 60 for the second time, the decoding permission flag 66 is set. Thereafter, return to the above-mentioned step S91, and repeat the above-mentioned processing.
如以上说明的那样,本第九个实施例中,因为不是根据条形码记号54译码的事实而仅根据记号有无的检出就能实现防止“双重读取”的功能,所以处理速度十分快。结果,由于先于条形码记号54的译码处理一定必需记号检出处理,与在本例中只要花费到记号检出处理完成为止的时间就可能解决问题相反,在已往则在这个时间上还必需要加上到译码处理完成为止所需的时间。又,如果记录条形码记号54的标签被忘在那里,也没有“双重读取”的事,因为也不使用开关等的附加部件,所以可以说从部件的件数和操作性都是非常好的方法。As explained above, in the present ninth embodiment, the function of preventing "double reading" can be realized only based on the detection of the presence or absence of the mark, so the processing speed is very fast. . As a result, since the decoding process prior to the barcode mark 54 must always require the mark detection process, in contrast to the problem that can be solved as long as it takes the time until the mark detection process is completed in this example, in the past, it was necessary at this time. The time required until the decoding process is completed needs to be added. Also, if the label on which the barcode mark 54 is recorded is left there, there is no "double reading", and since no additional parts such as switches are used, it can be said that the number of parts and operability are very good. .
如前所述,在二次连续送入帧存储器60的图像中不存在条形码记号54的时侯,就条形码记号54被拿掉才有设定译码许可标志66的事来说,则当该读取装置和条形码记号54因某种原因振动了的场合下,用这种定时法向帧存储器60送入了图像,如果不拿掉条形码记号54也最终判断为条形码记号54不存在,以及另外,在拿走的途中移动条形码记号的时侯,图像也被判断为条形码记号54不存在,可是在此途中一旦条形码记号54停下来了的时候,不管是已经译码完毕的条形码记号54也再译码,最后所谓双重读取的事就变得没有了。As previously mentioned, when the barcode mark 54 does not exist in the images that are continuously sent into the frame memory 60 for the second time, the decoding permission flag 66 is set only when the barcode mark 54 is removed, then when the barcode mark 54 is removed When the reading device and the barcode mark 54 vibrate for some reason, an image is sent to the frame memory 60 by this timing method, and if the barcode mark 54 is not removed, it is finally judged that the barcode mark 54 does not exist, and in addition When moving the barcode mark on the way of taking it away, the image is also judged as the barcode mark 54 does not exist, but once the barcode mark 54 stops during this process, no matter the barcode mark 54 that has been decoded is also removed. Decoding, and finally the so-called double reading thing becomes gone.
这里,这个第九个实施例中,二次连续送入帧存储器60的图像中不存在条形码记号54的时侯,条形码记号54被拿掉才会设定译码许可标志66,可是,譬如一次不存在的话,条形码记号54被拿走才会设定译码许可标志66使完成防止“双重读取”功能也是可能的。如这个实施例那样,无论连续二次判断为不存在的时候要设定译码许可标志66,也元论该读取装置和条形码记号因某种原因振动的场合里,以这种定时法向帧存储器60送入了图像,对于条形码记号54没有被拿掉也判断条形码记号54为不存在有担心时,还有在拿走动作的过程中结果移动了条形码记号54的时候图像被判断为不存在条形码记号54,可是如果在此过程中一旦条形码记号54停了下来时不管是已经译码完的条形码记号54也再译码,结果对也会发生双重读取有担心的时侯,就能够防止双重读取而言,本实施例提高了可靠性。此外,不限定在二次连续,用三次以上也能得同样的效果。Here, in this ninth embodiment, when the barcode mark 54 does not exist in the images that are continuously sent into the frame memory 60 for the second time, the decoding permission flag 66 will not be set until the barcode mark 54 is removed, but, for example, once If it does not exist, the bar code mark 54 will be taken away to set the decoding permission flag 66 so that it is also possible to prevent the "double reading" function from being completed. As in this embodiment, the decoding permission flag 66 will be set when it is judged as non-existent twice in a row, and in the case where the reading device and the bar code mark vibrate for some reason, with this timing method The frame memory 60 has sent the image, and when the barcode mark 54 is not removed, it is judged that the barcode mark 54 does not exist. There is concern, and when the barcode mark 54 is moved as a result during the removal action, the image is judged to be invalid. There is a barcode mark 54, but if once the barcode mark 54 stops during this process, no matter whether it is the barcode mark 54 that has been decoded, it will be decoded again, and as a result, double reading will also occur when there is concern, you can In terms of preventing double reading, this embodiment improves reliability. In addition, it is not limited to two consecutive times, and the same effect can be obtained by using more than three times.
另外,为了回避上述那样的担心,实际上,从条形码记号54的图像向帧存储器60送入到条形码记号54的有无判断为止的读入周期有密切的关系。即,这个读入周期过分长,尽管是在从步骤S99的送入到步骤S102的送入这段时间内条形码记号54换入完毕但还没有译码的条形码记号54变为不被译码。所以,在本实施例中,这个读入周期是0.3秒的程度。第十个实施例In addition, in order to avoid the above-mentioned concerns, actually, there is a close relationship between the reading period from when the image of the barcode mark 54 is sent to the frame memory 60 to when the presence or absence of the barcode mark 54 is determined. That is, this read-in cycle is too long, although the barcode symbol 54 is changed into but not yet decoded barcode symbol 54 becomes not decoded in this period of time from the sending in of step S99 to the sending in of step S102. Therefore, in this embodiment, this read-in cycle is about 0.3 seconds. Tenth embodiment
将上述第九个实施例中依次送入的图像中检出条形码记号54替代为,例如,取帧存储器60有两个图面的容量以限定的时间间隔送图像入图画面,在两画面上来检出条形码记号54的场合,就要设定译码许可标志66,能得到同样的效果。第十一个实施例In the above-mentioned ninth embodiment, detect the barcode mark 54 in the image sent in sequence to replace, for example, the frame memory 60 has the capacity of two graphs to send the image into the graph frame with a limited time interval, on the two frames When the barcode mark 54 is detected, the decoding permission flag 66 is set, and the same effect can be obtained. eleventh embodiment
另外,在上述第一到第十个实施例中,没有特别限定读取的条形码记号的种类,有关条形码记号54的检出方法,使用JAN/UPC/EAN码,ITF(五行隔二行)码,CODE39,NW-7码,CODE128等的各种条形码记号检出方法都可以,还有,二元条形码记号(CODE16K,CODE49,PDF417,DATA,CODE等)有关的各种条形码记号检出方法使用起来的话也没有问题。In addition, in the above-mentioned first to tenth embodiments, the type of the barcode mark to be read is not particularly limited, and the detection method of the barcode mark 54 uses JAN/UPC/EAN code, ITF (five lines every two lines) code , CODE39, NW-7, CODE128, etc., can be used for various barcode mark detection methods, and various barcode mark detection methods related to binary barcode marks (CODE16K, CODE49, PDF417, DATA, CODE, etc.) It's okay to get up.
这样,各实施例不限定条形码记号的种类,对于读取时间长的二元条形码记号特别有效。In this way, each embodiment does not limit the type of barcode marks, and is particularly effective for binary barcode marks that take a long time to read.
Claims (3)
Applications Claiming Priority (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP133533/92 | 1992-02-20 | ||
| JP033533/92 | 1992-02-20 | ||
| JP136725/92 | 1992-02-20 | ||
| JP4133533A JPH05325550A (en) | 1992-05-26 | 1992-05-26 | Substrate voltage generating circuit for mos dynamic ram |
| JP4136725A JPH05334482A (en) | 1992-05-28 | 1992-05-28 | Bar code symbol reader |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1075810A CN1075810A (en) | 1993-09-01 |
| CN1035287C true CN1035287C (en) | 1997-06-25 |
Family
ID=26467857
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN93101652A Expired - Fee Related CN1035287C (en) | 1992-02-20 | 1993-02-20 | Barcode marking reading device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1035287C (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007066107A (en) | 2005-08-31 | 2007-03-15 | Fujitsu Ltd | Biometric information collation device, biometric information collation method, and biometric information collation program |
| JP4546554B2 (en) * | 2008-04-04 | 2010-09-15 | 東芝テック株式会社 | Code symbol reader |
| JP5166490B2 (en) * | 2010-07-21 | 2013-03-21 | 東芝テック株式会社 | Product code reader and program |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4873426A (en) * | 1988-08-03 | 1989-10-10 | Image Business Systems Corporation | Technique for reading bar codes |
| EP0484935A2 (en) * | 1990-11-07 | 1992-05-13 | F & O ELECTRONIC SYSTEMS GmbH | Method and device for reading and identifying information represented by signs, in particular bar codes, in a two- or three-dimensional field using a video camera which is able te generate a binary videosignal of the image |
-
1993
- 1993-02-20 CN CN93101652A patent/CN1035287C/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4873426A (en) * | 1988-08-03 | 1989-10-10 | Image Business Systems Corporation | Technique for reading bar codes |
| EP0484935A2 (en) * | 1990-11-07 | 1992-05-13 | F & O ELECTRONIC SYSTEMS GmbH | Method and device for reading and identifying information represented by signs, in particular bar codes, in a two- or three-dimensional field using a video camera which is able te generate a binary videosignal of the image |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1075810A (en) | 1993-09-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5365048A (en) | Bar code symbol reading apparatus with double-reading preventing function | |
| EP2183702B1 (en) | Imaging system for reading target with multiple symbols | |
| CN1039458C (en) | Method and apparatus for decoding two-dimensional bar code using CCD/CMD camera | |
| JP3668275B2 (en) | Digital information recording method, decoding method and decoding device | |
| EP1388118B1 (en) | Method for operating an optical reader having a plurality of imaging modes | |
| US7077317B2 (en) | Bar code reading apparatus having one-dimensional image sensor and digital digitizer | |
| EP0631679B1 (en) | Reader for decoding two-dimensional optical information | |
| US7111787B2 (en) | Multimode image capturing and decoding optical reader | |
| CN1038789C (en) | Barcode marking reading device | |
| EP0685809A2 (en) | Method and apparatus for decoding two-dimensional bar code | |
| US20040206821A1 (en) | Autodiscriminating bar code reading apparatus having solid state image sensor | |
| WO2002071309A2 (en) | Apparatus and method for decoding damaged optical codes | |
| US20040262394A1 (en) | Optical reader having solid-state image sensor | |
| CN1036807C (en) | Barcode reader with automatic read start | |
| EP1831816B1 (en) | Methods and apparatus for information capture illumination | |
| EP2542998B1 (en) | User-customizable data capture terminal for and method of imaging and processing a plurality of target data on one or more targets | |
| CN1035287C (en) | Barcode marking reading device | |
| US20020079370A1 (en) | Illumination source for optical reading apparatus | |
| TW211614B (en) | A bar code signal read-in device with the mechanism of preventing second read-in | |
| US5923022A (en) | Method and apparatus for identifying bar code symbols using reading gates | |
| CN112560535A (en) | Decoding output method for panoramic sequencing | |
| US20090255994A1 (en) | Automatic video image reversal of difficult to read symbols | |
| JP2000057250A (en) | 2D code reading method | |
| JP3140184B2 (en) | Barcode symbol reader | |
| JP4383961B2 (en) | Digital information record carrier |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C19 | Lapse of patent right due to non-payment of the annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |