JP2754440B2 - Barcode judgment method - Google Patents

Barcode judgment method

Info

Publication number
JP2754440B2
JP2754440B2 JP4319986A JP31998692A JP2754440B2 JP 2754440 B2 JP2754440 B2 JP 2754440B2 JP 4319986 A JP4319986 A JP 4319986A JP 31998692 A JP31998692 A JP 31998692A JP 2754440 B2 JP2754440 B2 JP 2754440B2
Authority
JP
Japan
Prior art keywords
white
black
bar
pattern
character
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
Application number
JP4319986A
Other languages
Japanese (ja)
Other versions
JPH06168353A (en
Inventor
▲泰▼雄 大岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Telecom Networks Ltd
Original Assignee
Fujitsu Telecom Networks Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fujitsu Telecom Networks Ltd filed Critical Fujitsu Telecom Networks Ltd
Priority to JP4319986A priority Critical patent/JP2754440B2/en
Publication of JPH06168353A publication Critical patent/JPH06168353A/en
Application granted granted Critical
Publication of JP2754440B2 publication Critical patent/JP2754440B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、バーコードを読取って
コード判定を行うバーコード判定方法に関する。バーコ
ードは、白黒のバーの組合せにより数字等を表すもの
で、例えば、JAN(Japanese Article Number )
が一般に使用されている。このバーコードを商品等に印
刷或いは貼付し、商品販売時にバーコードを読取ること
により、レシートの発行処理や、商品販売統計処理等に
適用されている。従って、読取ったバーコードを正確に
判定することが必要である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code judging method for reading a bar code and judging the code. The bar code represents a number or the like by a combination of black and white bars, and is, for example, JAN (Japanese Article Numer).
Is commonly used. This barcode is printed or affixed to a product or the like, and is read at the time of sale of the product, thereby being applied to a receipt issuing process, a product sales statistical process, and the like. Therefore, it is necessary to accurately determine the read barcode.

【0002】[0002]

【従来の技術】図9はバーコードの説明図であり、白バ
ー,黒バーの幅は、0.33mmを1モジュールとし
て、その1倍,2倍,3倍,4倍の何れかであり、1キ
ャラクタは、白バー,黒バー,白バー,黒バーの順序又
はその逆の順序の4個のバーから構成され、1キャラク
タ分の長さは2.31mm一定となる。この寸法を標準
として、印刷の精度等の関係で拡大或いは縮小した寸法
とすることができる。又白バーと黒バーとは、白色,黒
色以外の所定のコントラストが得られる色の組合せを用
いることができる。又センタバーの左側に6キャラクタ
分の左側キャラクタと、レフトガードバーとが配置さ
れ、そのレフトガードバーの左側には、3.63mmの
レフトマージンが定められている。又センタバーの右側
に5キャラクタ分の右側キャラクタと、チェックキャラ
クタと、ライトガードバーとが配置され、そのライトガ
ードバーの右側には、2.31mmのライトマージンが
定められている。
2. Description of the Related Art FIG. 9 is an explanatory view of a bar code. The width of a white bar and a black bar is any one, twice, three or four times as large as 0.33 mm as one module. One character is composed of four bars in the order of a white bar, a black bar, a white bar, and a black bar or the reverse order, and the length of one character is constant at 2.31 mm. With this dimension as a standard, the dimension can be enlarged or reduced in relation to printing accuracy or the like. For the white bar and the black bar, a combination of colors that can obtain a predetermined contrast other than white and black can be used. A left character for six characters and a left guard bar are arranged on the left side of the center bar, and a left margin of 3.63 mm is defined on the left side of the left guard bar. A right character for five characters, a check character, and a light guard bar are arranged on the right side of the center bar, and a light margin of 2.31 mm is defined on the right side of the light guard bar.

【0003】図10はキャラクタの説明図であり、左側
キャラクタは、白バー,黒バー,白バー,黒バーの順序
で1キャラクタが構成され、奇数パリティと偶数パリテ
ィとがあり、又右側キャラクタは、黒バー,白バー,黒
バー,白バーの順序で1キャラクタが構成され、偶数パ
リティのみである。例えば、「0」は、左側キャラクタ
の奇数パリティは、1モジュールの倍数と幅とを白と黒
とのバーに併記すると、白3(0.99mm),黒2
(0.66mm),白1(0.33mm),黒1(0.
33mm)となり、偶数パリティは、白1(0.33m
m),黒1(0.33mm),白2(0.66mm),
黒3(0.99mm)となる。又右側キャラクタの場合
は、黒3(0.99mm),白2(0.66mm),黒
1(0.33mm),白1(0.33mm)となる。又
「1」の左側キャラクタの奇数パリティは、白2(0.
69mm),黒2(0.63mm),白2(0.69m
m),黒1(0.30mm)となる。この場合、黒1
は、1モジュールの寸法と異なるが、これは誤読率を低
下する為に規定されている。このような各種のパターン
により0〜9の数字を表すことができる。
FIG. 10 is an explanatory diagram of a character. A left character is composed of one character in the order of a white bar, a black bar, a white bar, and a black bar, has odd parity and even parity, and has a right character. , A black bar, a white bar, a black bar, and a white bar, one character is composed in this order, and only the even parity is included. For example, "0" indicates that the odd parity of the left character is white 3 (0.99 mm), black 2 when the multiple and width of one module are written together with white and black bars.
(0.66 mm), white 1 (0.33 mm), black 1 (0.
33 mm), and the even parity is white 1 (0.33 m
m), black 1 (0.33 mm), white 2 (0.66 mm),
Black 3 (0.99 mm). In the case of the right character, black 3 (0.99 mm), white 2 (0.66 mm), black 1 (0.33 mm), and white 1 (0.33 mm). The odd parity of the left character of “1” is white 2 (0.
69 mm), black 2 (0.63 mm), white 2 (0.69 m
m) and black 1 (0.30 mm). In this case, black 1
Is different from the size of one module, but this is specified to reduce the misreading rate. The numbers 0 to 9 can be represented by such various patterns.

【0004】[0004]

【発明が解決しようとする課題】バーコードを光学的に
読取って判定する場合、レフトガードバーやライトガー
ドバー或いはセンタバーを基準にしてキャラクタ毎に区
切り、各キャラクタについて、バーの幅を計測し、4種
類の幅の何れに相当するかを判定し、その結果に基づい
て、図10に示すパターンに従った判定を行うものであ
った。従って、4種類の幅のバーの組合せについて判定
するから、判定処理が複雑となる欠点があった。又バー
コードをカード型バーコードリーダやペン型バーコード
リーダにより読取る場合、手動によるものであるから、
読取速度が一定ではないことになり、バーの幅の計測に
於いて誤りが生じることになる。従って、誤読率が高く
なる欠点があった。本発明は、比較的簡単な処理により
誤読率を低下させることを目的とする。
When a bar code is optically read and determined, each character is divided based on a left guard bar, a right guard bar or a center bar, and the bar width is measured for each character. Is determined, and based on the result, the determination according to the pattern shown in FIG. 10 is performed. Therefore, there is a drawback that the determination process is complicated because the determination is made on the combination of the bars having four types of widths. Also, when a barcode is read by a card type barcode reader or a pen type barcode reader, it is manually operated.
The reading speed will not be constant, and errors will occur in the measurement of the bar width. Therefore, there is a disadvantage that the misreading rate is increased. An object of the present invention is to reduce the misreading rate by relatively simple processing.

【0005】[0005]

【課題を解決するための手段】本発明のバーコード判定
方法は、図1を参照して説明すると、1モジュールの1
倍,2倍,3倍,4倍の何れかの幅の白バーと黒バーと
の組合せからなるバーコードをスキャナ1等により読取
り、2値化回路2等により2値化した読取信号を、コー
ド判定部3のキャラクタ区切部4により、2個の白バー
と2個の黒バーとからなる1キャラクタ毎に区切り、次
に、太細パターン分類部5により1キャラクタ分の長さ
の3/14倍の値と、読取った白バーと黒バーとの幅を
比較して太細の2種類に分類し、次に、太細パターン規
則性判定部6により、センタバーに対する左側キャラク
タと右側キャラクタとに対して太細によるパターンの規
則性を基にコードを判定し、重複パターンについては、
重複パターン判定部7により、太幅の中の幅の大小を比
較してコードを判定するものである。
The bar code determination method of the present invention will be described with reference to FIG.
A bar code consisting of a combination of a white bar and a black bar of any of double, double, triple and quadruple widths is read by the scanner 1 or the like, and the read signal binarized by the binarization circuit 2 or the like is read. The character separation unit 4 of the code determination unit 3 separates each character consisting of two white bars and two black bars, and then the thick / thin pattern classification unit 5 sets the length of one character to 3/3. The value of 14 times and the width of the read white bar and black bar are compared and classified into two types of thick and thin. Then, the thick and thin pattern regularity determination unit 6 determines the left character and the right character for the center bar. To determine the code based on the regularity of the bold pattern, and for duplicate patterns,
The overlap pattern determination unit 7 determines the code by comparing the widths of the wide widths.

【0006】[0006]

【作用】スキャナ1等によりバーコードを読取った読取
信号は、バーコードの各バーの幅を示すものとなる。コ
ード判定部3は、プログラム制御のプロセッサ等により
構成されるものであり、比較演算機能により、キャラク
タ区切部4,太細パターン分類部5,太細パターン規則
性判定部6,重複パターン判定部7等を実現することが
できる。又キャラクタは2個の白バーと2個の黒バーと
からなるものであるから、キャラクタ区切部4によりキ
ャラクタ毎に容易に区切ることができる。太細パターン
分類部5により、1キャラクタ分の長さを1/7する
と、1モジュールの大きさを示すことになり、これを
1.5倍した大きさを判定基準として、各バーの幅を太
細の2種類に分類する。即ち、1キャラクタ分の長さを
3/14倍した長さを判定基準とする。各バーは、1モ
ジュールの大きさの1倍,2倍,3倍,4倍の何れかの
幅であるから、1倍のバーを細バー、2倍,3倍,4倍
のバーを太バーとして分類する。そして、太細パターン
規則性判定部6により、太細パターンの規則性を基にコ
ードを判定する。例えば、図10の「1」の左側キャラ
クタの奇数パリティは、白2,黒2,白2,黒1である
から、太,太,太,細のパターンとなり、左側キャラク
タに於いてはこれと同一のパターンがないから、直ち
に、奇数パリティの「1」であると判定できる。
A read signal obtained by reading a barcode by the scanner 1 or the like indicates the width of each bar of the barcode. The code judging section 3 is constituted by a processor under program control, etc., and has a character dividing section 4, a thick and thin pattern classifying section 5, a thick and thin pattern regularity judging section 6, an overlapping pattern judging section 7 by a comparison operation function. Etc. can be realized. Since the character is composed of two white bars and two black bars, the character can be easily separated for each character by the character separating section 4. When the length of one character is reduced to 1/7 by the thick and thin pattern classifying unit 5, the size of one module is indicated. It is classified into two types, thick and thin. That is, the length obtained by multiplying the length of one character by 3/14 is used as a criterion. Each bar has a width of one, two, three, or four times the size of one module, so a one-time bar is a thin bar, and a two-, three-, or four-fold bar is a thick bar. Classify as a bar. The code is determined by the thick and thin pattern regularity determination unit 6 based on the regularity of the thick and thin pattern. For example, since the odd parity of the left character of "1" in FIG. 10 is white 2, black 2, white 2, and black 1, the pattern becomes thick, thick, thick, and thin. Since there is no identical pattern, it can be immediately determined to be odd parity "1".

【0007】しかし、図10の例えば左側キャラクタの
偶数パリティの「7」は白2,黒1,白3,黒1である
から、太,細,太,細のパターンとなり、「8」は白
3,黒1,白2,黒1であるから、太,細,太,細のパ
ターンとなる。即ち、重複パターンとなる。この場合
は、重複パターン判定部7により判定するものであり、
太幅のバーについて、「7」は、白2,白3の順序であ
り、「8」は白3,白2の順序であるから、白バー
(A),黒バー(B),白バー(C),黒バー(D)と
すると、(A)<(C)か否かを判定することにより、
「7」か「8」かを判定することができる。即ち、重複
パターンについては、太幅の中の幅の大小を比較するこ
とにより、コードを判定することができる。
However, in FIG. 10, for example, the even parity "7" of the left character is white 2, black 1, white 3, and black 1, so that the pattern is thick, thin, thick, and thin, and "8" is white. 3, black 1, white 2, and black 1, the pattern is thick, thin, thick, and thin. That is, an overlapping pattern is obtained. In this case, the determination is made by the overlapping pattern determination unit 7,
For the thick bar, “7” is the order of white 2 and white 3 and “8” is the order of white 3 and white 2, so the white bar (A), black bar (B), and white bar (C) and black bar (D), by determining whether (A) <(C),
It can be determined whether “7” or “8”. That is, with respect to the overlapping pattern, the code can be determined by comparing the widths of the wide widths.

【0008】[0008]

【実施例】図2乃至図6は本発明の実施例のフローチャ
ートであり、先ず、図2に示すように、バーコードを読
取り(1)、そのバーコードのガードバーとセンタバー
とを検出する(2)。そして、キャラクタ毎に区切る
(3)。例えば、図1のスキャナ1によりバーコードを
読取り、2値化回路2により2値化してコード判定部3
に入力し、キャラクタ区切部4により、ガードバー或い
はセンタバーを基準にして、左側キャラクタの場合は、
白,黒,白,黒の順序の4個のバーを1キャラクタとし
て区切り、右側キャラクタの場合は、黒,白,黒,白の
順序の4個のバーを1キャラクタとして区切る。
FIGS. 2 to 6 are flowcharts of an embodiment of the present invention. First, as shown in FIG. 2, a bar code is read (1), and a guard bar and a center bar of the bar code are detected (2). ). Then, the character is separated for each character (3). For example, a bar code is read by the scanner 1 of FIG.
To the left character based on the guard bar or center bar.
Four bars in the order of white, black, white, and black are separated as one character, and in the case of the right character, four bars in the order of black, white, black, and white are separated as one character.

【0009】次に、太細パターン分類部5に於いて、読
取信号の信号長を基に各バーの幅を計測し、且つキャラ
クタ毎に区切られた1キャラクタ長を計測する。この1
キャラクタ長を1/7として1モジュールの幅を求める
(4)。この1キャラクタ長を2.31mmとすると、
1モジュールは0.33mmとなる。そして、1モジュ
ールの幅を1.5倍する。そして、各バーの幅と比較
し、各バーを太細に分類する(5)。従って、1モジュ
ールの幅の1.5倍以上の幅を太幅のバーとし、それよ
り細いバーを細幅バーとする。即ち、4種類の幅のバー
を2種類の幅のバーに分類する。
Next, in the thick and thin pattern classifying section 5, the width of each bar is measured based on the signal length of the read signal, and one character length divided for each character is measured. This one
The width of one module is determined by setting the character length to 1/7 (4). If the length of one character is 2.31 mm,
One module is 0.33 mm. Then, the width of one module is multiplied by 1.5. Each bar is compared with the width of each bar, and each bar is classified into thick and thin (5). Therefore, a width of 1.5 times or more of the width of one module is defined as a wide bar, and a narrower bar is defined as a narrow bar. That is, bars of four different widths are classified into bars of two different widths.

【0010】次に、図3に示すように、センタバーの左
側のキャラクタか右側のキャラクタかを判定し(6)、
左側のキャラクタの場合(7)は、太細パターンの判定
を行う(8)。図10に示すキャラクタについて、太細
判定結果は、図7に示すものとなる。左側キャラクタの
奇数パリティのA,B,C,Dと偶数パリティのa,
b,c,dは、白バー,黒バー,白バー,黒バーを示
し、又右側キャラクタの偶数パリティW,X,Y,Z
は、黒バー,白バー,黒バー,白バーを示す。例えば、
左側キャラクタの奇数パリティの「1」は、太,太,
太,細のパターンであるから、ステップ(9)の判定に
より奇数パリティ1と判定することになる。このよう
に、ステップ(9)〜(14)により、奇数パリティ
1,2,3,6と偶数パリティ1,2とを判定すること
ができる。
Next, as shown in FIG. 3, it is determined whether the character is on the left or right side of the center bar (6).
In the case of the character on the left side (7), a thick pattern is determined (8). For the character shown in FIG. 10, the result of the thick and thin determination is as shown in FIG. A, B, C, D of odd parity of the left character and a, of even parity a,
b, c, d denote a white bar, a black bar, a white bar, and a black bar, and the even parity W, X, Y, Z of the right character.
Indicates a black bar, a white bar, a black bar, and a white bar. For example,
The odd parity "1" of the left character is thick, thick,
Since the patterns are thick and thin, the odd parity 1 is determined by the determination in step (9). As described above, the odd parities 1, 2, 3, 6 and the even parities 1, 2 can be determined by steps (9) to (14).

【0011】又図4に示すように、ステップ(15),
(16)により偶数パリティ3,6を判定することがで
きる。又ステップ(17)により太,太,細,細のパタ
ーンと判定した場合、このパターンは、奇数パリティ0
と偶数パリティ4とを示す重複パターンである。そこ
で、この場合は、A>Bか否かを判定する(18)。即
ち、図10に示すように、奇数パリティ0は、白3,黒
2,白1,黒1であり、偶数パリティ4は、白2,黒
3,白1,黒1であるから、白3(A)>黒2(B)の
太幅バーの幅の大小関係の場合は奇数パリティ0を示
し、白2(A)<黒3(B)の太幅バーの幅の大小関係
の場合は偶数パリティ4を示すことになる。従って、ス
テップ(18)により奇数パリティ0か偶数パリティ4
かを判定することができる。
Further, as shown in FIG.
By (16), the even parities 3 and 6 can be determined. If it is determined in step (17) that the pattern is a thick pattern, a thick pattern, a thin pattern, or a thin pattern, this pattern is determined to have an odd parity of 0.
And an even parity 4. Therefore, in this case, it is determined whether or not A> B (18). That is, as shown in FIG. 10, the odd parity 0 is white 3, black 2, white 1, and black 1, and the even parity 4 is white 2, black 3, white 1, and black 1. In the case of (A)> the relationship of the width of the wide bar of black 2 (B), odd parity 0 is indicated. Even parity 4 will be indicated. Therefore, in step (18), odd parity 0 or even parity 4
Can be determined.

【0012】又ステップ(19)により細,太,細,太
のパターンと判定した場合、図10に示すように、この
パターンは、奇数パリティ7(白1,黒3,白1,黒
2)と奇数パリティ8(白1,黒2,白1,黒3)との
重複パターンであり、奇数パリティ7は黒3(B)>黒
2(D)、又奇数パリティ8は黒2(B)<黒3(D)
の関係となるから、ステップ(20)に於いてB>Dか
否かの判定により、奇数パリティ7か奇数パリティ8か
を判定することができる。
If it is determined in step (19) that the pattern is a thin, thick, thin, or thick pattern, this pattern has an odd parity 7 (white 1, black 3, white 1, black 2) as shown in FIG. And an odd parity 8 (white 1, black 2, white 1, black 3). The odd parity 7 is black 3 (B)> black 2 (D), and the odd parity 8 is black 2 (B). <Black 3 (D)
Therefore, it is possible to determine whether the odd parity 7 or the odd parity 8 by determining whether or not B> D in step (20).

【0013】又ステップ(21)により太,細,細,太
のパターンと判定した場合、図10に示すように、この
パターンは、奇数パリティ9(白3,黒1,白1,黒
2)と偶数パリティ9(白2,黒1,白1,黒3)との
重複パターンであり、奇数パリティ9は白3(A)>黒
2(D)、又偶数パリティ9は白2(A)<黒3(D)
の関係となるから、ステップ(22)に於いてA>Dか
否かの判定により、奇数パリティ9か偶数パリティ9か
を判定することができる。
If it is determined in step (21) that the pattern is thick, thin, thin, or thick, the pattern is odd parity 9 (white 3, black 1, white 1, black 2) as shown in FIG. And an even parity 9 (white 2, black 1, white 1, black 3). The odd parity 9 is white 3 (A)> black 2 (D), and the even parity 9 is white 2 (A). <Black 3 (D)
Therefore, it can be determined whether odd parity 9 or even parity 9 in step (22) by determining whether A> D.

【0014】又図5に示すように、ステップ(23)に
より細,太,太,細のパターンと判定した場合、図10
に示すように、このパターンは、奇数パリティ5(白
1,黒2,白3,黒1)と偶数パリティ5(白1,黒
3,白2,黒1)との重複パターンであり、奇数パリテ
ィ5は黒2(B)<白3(C)、又偶数パリティ5は黒
3(B)>白2(C)の関係となるから、ステップ(2
4)に於いてB>Cか否かの判定により、奇数パリティ
5か偶数パリティ5かを判定することができる。
As shown in FIG. 5, when it is determined in step (23) that the pattern is thin, thick, thick, or thin,
This pattern is an overlap pattern of odd parity 5 (white 1, black 2, white 3, black 1) and even parity 5 (white 1, black 3, white 2, black 1) as shown in FIG. Parity 5 has a relationship of black 2 (B) <white 3 (C), and even parity 5 has a relationship of black 3 (B)> white 2 (C).
By determining whether B> C in 4), it is possible to determine whether odd parity 5 or even parity 5.

【0015】又ステップ(25)により細,細,太,
太,のパターンと判定した場合、このパターンは、図1
0に示すように、奇数パリティ4(白1,黒1,白3,
黒2)と偶数パリティ0(白1,黒1,白2,黒3)と
の重複パターンであり、奇数パリティ4は、白3(C)
>黒2(D)、又偶数パリティ0は、白2(C)<黒3
(D)の関係となるから、ステップ(26)に於いてC
>Dか否かの判定により、奇数パリティ4か偶数パリテ
ィ0かを判定することができる。
In step (25), fine, thin, thick,
If it is determined that the pattern is thick, this pattern is
0, odd parity 4 (white 1, black 1, white 3,
This is an overlapping pattern of black 2) and even parity 0 (white 1, black 1, white 2, black 3), and odd parity 4 is white 3 (C)
> Black 2 (D) and even parity 0 are white 2 (C) <Black 3
Because of the relationship of (D), in step (26), C
By determining whether or not> D, it is possible to determine whether the odd parity is 4 or the even parity is 0.

【0016】又ステップ(9)〜(17),(19),
(21),(23),(25)による判定パターンと異
なる場合は、図10に示すように、偶数パリティ7(白
2,黒1,白3,黒1)と偶数パリティ8(白3,黒
1,白2,黒1)との重複パターンであり、偶数パリテ
ィ7は、白2(A)<白3(C)、又偶数パリティ8
は、白3(A)>白2(C)の関係となるから、ステッ
プ(27)に於いてA<Cか否かの判定により、偶数パ
リティ7か偶数パリティ8かを判定することができる。
Steps (9) to (17), (19),
If the judgment patterns are different from those of (21), (23), and (25), as shown in FIG. 10, even parity 7 (white 2, black 1, white 3, black 1) and even parity 8 (white 3, black 3) are used. Black 1, white 2, black 1), and the even parity 7 is white 2 (A) <white 3 (C) and even parity 8
Has a relationship of white 3 (A)> white 2 (C), so that it is possible to determine even parity 7 or even parity 8 by determining whether A <C in step (27). .

【0017】又図3のステップ(7)に於いて左側キャ
ラクタではないと判定された時、太細パターンの判定を
行い、図6に示すように、ステップ(30)〜(36)
により、偶数パリティ0〜6を判定する。例えば、偶数
パリティ0は、黒3,白2,黒1,白1の太,太,細,
細のパターンとなるから、ステップ(30)により偶数
パリティ0と判定することができる。同様に、偶数パリ
ティ1は、黒2,白2,黒2,白1の太,太,太,細の
パターンとなるから、ステップ(31)により偶数パリ
ティ1と判定することができる。
When it is determined in step (7) of FIG. 3 that the character is not the left character, a thick pattern is determined and, as shown in FIG. 6, steps (30) to (36).
To determine even parity 0 to 6. For example, even parity 0 is black 3, white 2, black 1, white 1, thick, thick, thin,
Since the pattern becomes a fine pattern, it can be determined that even parity is 0 in step (30). Similarly, even parity 1 is a black, white 2, black 2, and white 1 thick, thick, thick, and thin pattern, and thus can be determined to be even parity 1 in step (31).

【0018】又ステップ(37)による細,太,細,太
のパターンか否かの判定は、このパターンが図10に示
すように、偶数パリティ7(黒1,白3,黒1,白2)
と偶数パリティ8(黒1,白2,黒1,白3)との重複
パターンであり、偶数パリティ7は、白3(X)>白2
(Z)、又偶数パリティ8は白2(X)<白3(Z)の
関係となるから、ステップ(38)に於いてX>Zか否
かの判定により、偶数パリティ7か偶数パリティ8かを
判定することができる。又ステップ(30)〜(37)
による判定パターン以外のパターンの場合は、太,細,
細,太のパターンの偶数パリティ9(黒3,白1,黒
1,白2)と判定することができる。
In step (37), it is determined whether or not the pattern is a thin, thick, thin, or thick pattern by determining whether the pattern is an even parity 7 (black 1, white 3, black 1, white 2) as shown in FIG. )
And even parity 8 (black 1, white 2, black 1, white 3), and even parity 7 is white 3 (X)> white 2
(Z) and even parity 8 have a relationship of white 2 (X) <white 3 (Z). Therefore, in step (38), it is determined whether X> Z or not, so that even parity 7 or even parity 8 is determined. Can be determined. Steps (30) to (37)
For patterns other than the judgment pattern by
It can be determined as an even parity 9 (black 3, white 1, black 1, white 2) of a thin or thick pattern.

【0019】前述の重複パターンをまとめて示すと、図
8のようになる。その重複パターンに於いては、太幅の
バーの大小関係の規則性があるから、重複パターンにつ
いては、図1の重複パターン判定部7により、重複パタ
ーンの規則性を基に判定することができる。
FIG. 8 shows the above-mentioned overlapping patterns collectively. In the overlapping pattern, there is regularity in the magnitude relation of the thick bars, and therefore the overlapping pattern can be determined by the overlapping pattern determining unit 7 in FIG. 1 based on the regularity of the overlapping pattern. .

【0020】前述の太細パターンによる判定ステップ
は、前述の実施例以外の順序とすることも可能であり、
又並列的に実行することも可能である。又コード判定部
3に於けるプログラム制御による判定に於いて、リード
オンリメモリ等の照合テーブルを用いて判定処理を行う
ことも可能である。
The above-described determination step using the thick and thin pattern can be performed in an order other than the above-described embodiment.
It is also possible to execute them in parallel. Further, in the determination by the program control in the code determination unit 3, the determination processing can be performed using a collation table such as a read-only memory.

【0021】[0021]

【発明の効果】以上説明したように、本発明は、1モジ
ュールの1倍,2倍,3倍,4倍の何れかの幅の白バー
と黒バーとの組合せからなるバーコードをスキャナ1等
により読取り、これを2値化回路2等により2値化し、
コード判定部3のキャラクタ区切部4により、2個の白
バーと2個の黒バーとからなる1キャラクタ毎に区切
り、次に、太細パターン分類部5により、1キャラクタ
分の長さの3/14倍の値を判定基準として、白バーと
黒バーとの幅を比較して、太幅バーと細幅バーとの2種
類に分類し、太細パターン規則性判定部6により、4種
類の幅のバーの組合せを2種類の幅のバーの組合せとし
て判定処理を行うもので、判定処理が簡単となり、誤読
率を低減することができる利点がある。又2種類の幅の
バーの組合せとした時、重複パターンが生じるが、その
場合は、分類した太幅バーの実際の幅の大小関係に規則
性があるから、その大小関係を基に容易に判定できる利
点がある。
As described above, according to the present invention, a bar code composed of a combination of a white bar and a black bar having a width of one, two, three or four times as large as one module is used for the scanner 1. And the like, and this is binarized by a binarization circuit 2 and the like.
The character separation unit 4 of the code determination unit 3 separates each character consisting of two white bars and two black bars, and then the thick and thin pattern classification unit 5 sets the length of one character to three. By comparing the width of the white bar and the width of the black bar with the value of 1414 times as a criterion, the data is classified into two types, that is, a wide bar and a narrow bar. The determination process is performed by using a combination of bars having widths of two types as a combination of bars having two widths. This has an advantage that the determination process is simplified and the erroneous reading rate can be reduced. In addition, when a combination of two types of bars is used, an overlapping pattern occurs. In this case, since there is a regularity in the magnitude relationship of the actual widths of the classified wide bars, it is easy to use the magnitude relationship based on the magnitude relationship. There is an advantage that can be determined.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】本発明の実施例のフローチャートである。FIG. 2 is a flowchart of an embodiment of the present invention.

【図3】本発明の実施例のフローチャートである。FIG. 3 is a flowchart of an embodiment of the present invention.

【図4】本発明の実施例のフローチャートである。FIG. 4 is a flowchart of an embodiment of the present invention.

【図5】本発明の実施例のフローチャートである。FIG. 5 is a flowchart of an embodiment of the present invention.

【図6】本発明の実施例のフローチャートである。FIG. 6 is a flowchart of an embodiment of the present invention.

【図7】太細判定結果の説明図である。FIG. 7 is an explanatory diagram of a result of determining the thickness.

【図8】重複パターンの規則性の説明図である。FIG. 8 is an explanatory diagram of regularity of an overlapping pattern.

【図9】バーコードの説明図である。FIG. 9 is an explanatory diagram of a barcode.

【図10】キャラクタの説明図である。FIG. 10 is an explanatory diagram of a character.

【符号の説明】[Explanation of symbols]

1 スキャナ 2 2値化回路 3 コード判定部 4 キャラクタ区切部 5 太細パターン分類部 6 太細パターン規則性判定部 7 重複パターン判定部 DESCRIPTION OF SYMBOLS 1 Scanner 2 Binarization circuit 3 Code judgment part 4 Character division part 5 Thick and thin pattern classification part 6 Thick and thin pattern regularity judgment part 7 Duplication pattern judgment part

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1モジュールの1倍,2倍,3倍,4倍
の何れかの幅の白バーと黒バーとの組合せからなるバー
コードの読取信号を、2個の白バーと2個の黒バーとか
らなる1キャラクタ毎に区切り、 次に、該1キャラクタ分の長さの3/14倍の値と、前
記読取った白バーと黒バーとの幅をそれぞれ比較して、
太細の2種類に分類し、 次に、センタバーに対する左側キャラクタと右側キャラ
クタとに対して前記太細によるパターンの規則性を基に
コードを判定し、 前記太細によるパターンの重複パターンについては、太
幅の中の幅の大小を比較して、該重複パターンのコード
を判定することを特徴とするバーコード判定方法。
1. A bar code read signal composed of a combination of a white bar and a black bar having a width of one, two, three or four times as large as one module is read by two white bars and two Next, a value of 3/14 times the length of the one character is compared with the width of the read white bar and the black bar, respectively.
Then, the code is determined for the left character and the right character with respect to the center bar based on the regularity of the thick and thin pattern. For the overlapping pattern of the thick and thin pattern, A bar code determination method comprising comparing the widths of the wide widths to determine the code of the overlapping pattern.
JP4319986A 1992-11-30 1992-11-30 Barcode judgment method Expired - Fee Related JP2754440B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4319986A JP2754440B2 (en) 1992-11-30 1992-11-30 Barcode judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4319986A JP2754440B2 (en) 1992-11-30 1992-11-30 Barcode judgment method

Publications (2)

Publication Number Publication Date
JPH06168353A JPH06168353A (en) 1994-06-14
JP2754440B2 true JP2754440B2 (en) 1998-05-20

Family

ID=18116474

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4319986A Expired - Fee Related JP2754440B2 (en) 1992-11-30 1992-11-30 Barcode judgment method

Country Status (1)

Country Link
JP (1) JP2754440B2 (en)

Also Published As

Publication number Publication date
JPH06168353A (en) 1994-06-14

Similar Documents

Publication Publication Date Title
US5128527A (en) Apparatus for reading a bar code
US5194720A (en) Method and apparatus for performing on-line integrated decoding and evaluation of bar code data
US3891831A (en) Code recognition apparatus
JPH02244288A (en) Apparatus and method for judging bar code for optical type mark reader
JPH0157836B2 (en)
US4533825A (en) Bar code recognition apparatus
US4109143A (en) Optical reader
US3637993A (en) Transition code recognition system
JP2754440B2 (en) Barcode judgment method
JPH0448392A (en) Bar code reader
JP2718442B2 (en) Barcode demodulation method and apparatus
JPH0421915B2 (en)
JP2729168B2 (en) Barcode, barcode reader, and method of reading the same
US3893077A (en) Method and a system for checking the accuracy of information derived from an encoded carrier member
JPH0344353B2 (en)
US5519199A (en) Method and apparatus for detecting and storing bar bode data and re-detecting undetected data
US6651887B1 (en) Reading and interpreting barcodes using low resolution line scan cameras
JPS5981766A (en) Optical reading device
JPS62197877A (en) Bar code reading system
JP2655758B2 (en) Barcode reader and barcode reading method
JP2742920B2 (en) Barcode reader
JP2953143B2 (en) Barcode reading device and barcode reading method
JP2001216464A (en) Bar code
JPS641831B2 (en)
JPH0259878A (en) Code reader

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees