JPH0757036A - Bar code deciding method - Google Patents

Bar code deciding method

Info

Publication number
JPH0757036A
JPH0757036A JP5203101A JP20310193A JPH0757036A JP H0757036 A JPH0757036 A JP H0757036A JP 5203101 A JP5203101 A JP 5203101A JP 20310193 A JP20310193 A JP 20310193A JP H0757036 A JPH0757036 A JP H0757036A
Authority
JP
Japan
Prior art keywords
bar
character
determined
width
module
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.)
Granted
Application number
JP5203101A
Other languages
Japanese (ja)
Other versions
JP2736729B2 (en
Inventor
Hiroshi Yamamoto
博 山本
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 JP5203101A priority Critical patent/JP2736729B2/en
Publication of JPH0757036A publication Critical patent/JPH0757036A/en
Application granted granted Critical
Publication of JP2736729B2 publication Critical patent/JP2736729B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To decide a bar code by a relatively simple means. CONSTITUTION:In the bar code deciding means which reads a bar code, consisting of white bars and black bars that are as wide as or twice, three times, or four times as wide as one module, by a scanner 1, binarizes the read data by a binarization circuit 2, and decides the data in units of one character consisting of two white bars and two black bars by the character segmentation part 4 of the decision part 3, a thick/thin bar discrimination part 5 and a thick/ thin bar order decision part 6 are provided to discriminate which of an L4 bar which is >=3.5 times as wide as one module, an L3 bar which is <3.5->=2.5 times as wide as one module, an L1 bar which is <1.5 time, and any other L2 bar each bar of one character is, thereby making a decision according to the position of the bar of discriminated width in the character.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、バーコードの判定を行
うバーコード判定方法に関する。バーコードは、白黒バ
ーの組合せにより数字等を表すものであり、例えば、J
AN(Japan Article Number )コードが一般に使
用されている。この商品種別や価格等を示すバーコード
を商品等に印刷或いは貼付し、商品販売時にバーコード
を読取ることにより、レシートの発行処理や、商品販売
統計処理等を行うものである。従って、読取ったバーコ
ードを正確に判定する必要がある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code judging method for judging a bar code. The barcode is a combination of black and white bars that represents a number, such as J
An AN (Japan Article Number) code is generally used. By printing or pasting the bar code indicating the product type, price, etc. on the product or the like, and reading the bar code at the time of selling the product, a receipt issuance process, a product sales statistical process, and the like are performed. Therefore, it is necessary to accurately determine the read barcode.

【0002】[0002]

【従来の技術】前述のJANコードは、13桁の標準バ
ージョンと8桁の短縮バージョンとがあり、短縮バージ
ョンは小型の商品に対して適用されている。又1キャラ
クタを2本の白バーと2本の黒バーとの組合せにより構
成されている。この1キャラクタは7モジュール(7ビ
ット)構成であり、且つ1モジュールの1倍,2倍,3
倍,4倍の幅の何れかの幅の白バーと黒バーとの組合せ
から構成されている。又1モジュールの幅は、0.33
mmを基本とし、その0.8倍の0.26mmから2倍
の0.66mmまでの範囲で1モジュールの幅を選定す
ることができる。
2. Description of the Related Art The aforementioned JAN code has a standard version of 13 digits and a shortened version of 8 digits, and the shortened version is applied to small products. Further, one character is composed of a combination of two white bars and two black bars. This one character consists of 7 modules (7 bits), and is 1 times, 2 times, 3 times as large as one module.
It is composed of a combination of a white bar and a black bar having either a double width or a quadruple width. The width of one module is 0.33
Based on mm, the width of one module can be selected in the range of 0.26 mm, which is 0.8 times the value, and 0.66 mm, which is twice the value.

【0003】又標準バージョンの場合は、左から順に、
11モジュール以上のレフトマージン、3モジュールの
レフトガードバー、6キャラクタ(42モジュール)の
データキャラクタ、5モジュールのセンタバー、5キャ
ラクタ(35モジュール)のデータキャラクタ、1キャ
ラクタ(7モジュール)のチェックキャラクタ、3モジ
ュールのライトガードバー、7モジュール以上のライト
マージンの構成であり、レフトマージンとライトマージ
ンとを含めて113モジュールの長さとなる。なお、短
縮バージョンの場合は、レフトマージンとライトマージ
ンとを含めて、81モジュールの長さとなる。
In the case of the standard version, from the left,
Left margin of 11 modules or more, left guard bar of 3 modules, data character of 6 characters (42 modules), center bar of 5 modules, data character of 5 characters (35 modules), check character of 1 character (7 modules), 3 modules The right guard bar has a right margin of 7 modules or more, and the length is 113 modules including the left margin and the right margin. The shortened version has a length of 81 modules including the left margin and the right margin.

【0004】このようなバーコードに於いて、基本モジ
ュール幅とその倍数とにより、例えば、数字の「0」に
ついて示すと、センタバーより左側の奇数パリティの場
合は、白3(0.99mm),黒2(0.66mm),
白1(0.33mm),黒1(0.33mm)となる。
又偶数パリティの場合は、白1(0.33mm),黒1
(0.33mm),白2(0.66mm),黒3(0.
99mm)となる。又センタバーより右側の奇数パリテ
ィの場合は、黒3(0.99mm),白2(0.66m
m),黒1(0.33mm),白1(0.33mm)と
なる。
In such a bar code, for example, if the numeral "0" is shown by the basic module width and its multiple, white 3 (0.99 mm), in the case of odd parity on the left side of the center bar, Black 2 (0.66 mm),
White 1 (0.33 mm) and black 1 (0.33 mm).
For even parity, white 1 (0.33 mm), black 1
(0.33 mm), white 2 (0.66 mm), black 3 (0.
99 mm). For odd parity on the right side of the center bar, black 3 (0.99 mm) and white 2 (0.66 m)
m), black 1 (0.33 mm), and white 1 (0.33 mm).

【0005】このようなバーコードを光学的に読取って
判定する場合、レフトガードバーやライトガードバー或
いはセンタバーを基準にしてキャラクタを区切り、各キ
ャラクタについてバーの幅を計測し、1キャラクタが7
モジュール構成であるから、モジュール対応のビットに
より7ビット構成で1キャラクタを表す。例えば、前述
の数字「0」の左側の奇数パリティの場合、白バーと黒
バーとは、白3,黒2,白1,黒1の順序と幅の関係と
なり、白を“0”,黒を“1”とすると、“00011
01”の7ビット構成で表される。同様に、数字「1」
の左側の奇数パリティの場合は、“0011001”で
表される。同様にして、左側の奇数パリティ及び偶数パ
リティと右側の偶数パリティとの数字「0」〜「9」が
表されるから、判定部に於いては、この7ビットのパタ
ーンを用いて数字「0」〜「9」を判定することができ
る。
In the case of optically reading such a bar code for determination, the characters are divided based on the left guard bar, the right guard bar, or the center bar, and the width of the bar is measured for each character.
Since it has a module structure, a bit corresponding to the module represents one character with a 7-bit structure. For example, in the case of the odd parity on the left side of the above-mentioned number "0", the white bar and the black bar have a relationship of the order and width of white 3, black 2, white 1, black 1 and white is "0", black. Is "1", then "00011"
It is represented by a 7-bit structure of "01". Similarly, the number "1"
In the case of the odd parity on the left side of, it is represented by "0011001". Similarly, the numbers "0" to "9" of the odd parity and the even parity on the left side and the even parity on the right side are expressed. Therefore, in the determination unit, the number "0" is used by using this 7-bit pattern. "-" 9 "can be determined.

【0006】[0006]

【発明が解決しようとする問題点】前述のように、従来
例に於いては、バーコードを光学的に読取り、1キャラ
クタ毎に区切り、1キャラクタを構成する白バーと黒バ
ーとの幅を計測して7ビット構成のデータに変換し、こ
の7ビット構成のデータを基にキャラクタを判定するも
のであり、白バーと黒バーとの幅に対応してビット変換
する処理が必要であり、処理が複雑となる欠点があっ
た。又1キャラクタを構成する2本の白バーと2本の黒
バーとのそれぞれの幅の組合せについてキャラクタ判定
を行う方法も知られているが、各バーが4種類の幅の何
れに相当するかを判定した後、4本のバーの幅の組合せ
を判定する必要があるから、処理が複雑となる欠点があ
った。本発明は、比較的簡単な判定によってバーコード
の判定を行うことを目的とする。
As described above, in the conventional example, the bar code is optically read and divided into each character, and the width of the white bar and the black bar forming one character is determined. This is to measure and convert the data into 7-bit data, and determine the character based on the 7-bit data. It is necessary to perform a bit conversion process corresponding to the width of the white bar and the black bar. There is a drawback that the processing becomes complicated. There is also known a method of performing character determination with respect to a combination of widths of two white bars and two black bars constituting one character. Which of the four widths each bar corresponds to? Since it is necessary to determine the combination of the widths of the four bars after determining, the processing becomes complicated. It is an object of the present invention to make a bar code judgment by a relatively simple judgment.

【0007】[0007]

【課題を解決するための手段】本発明のバーコード判定
方法は、図1を参照して説明すると、1モジュールの1
倍,2倍,3倍,4倍の何れかの幅の白バーと黒バーと
の組合せからなるバーコードをスキャナ1により読取
り、2値化回路2により2値化して、判定部3のキャラ
クタ区切部4に於いて2個の白バーと2個の黒バーとの
組合せからなる1キャラクタ毎に区切って判定するバー
コードの判定方法に於いて、判定部3は、太細バー識別
部5と、太細バー順番判定部6とを備え、前記太細バー
識別部5により、1キャラクタの各バーが1モジュール
の3.5倍を超えた幅のバーであるか、又は3.5倍よ
り小さく2.5倍を超えた幅のバーであるか、又は1.
5倍以下のバーであるかを識別し、前記太細バー順番判
定部6により、前記識別した幅のバーの1キャラクタ内
の位置によりバーコードを判定するものである。
The barcode 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 with a width of any of double, double, triple, and quadruple is read by the scanner 1 and binarized by the binarizing circuit 2, and the character of the judging unit 3 In the method of determining a bar code, which is composed of a combination of two white bars and two black bars in the partitioning section 4, and is partitioned for each character, the determining section 3 includes a thick bar identifying section 5 And a thick-bar order determining unit 6, and the thick-bar identifying unit 5 causes each bar of one character to have a width exceeding 3.5 times that of one module, or 3.5 times. Is a bar smaller than 2.5 times wider, or 1.
It is determined whether the bar is five times or less, and the thick and thin bar order determination unit 6 determines the bar code based on the position of the bar having the identified width within one character.

【0008】[0008]

【作用】バーコードを構成する各バーの幅は、1モジュ
ールの1倍,2倍,3倍,4倍の何れかであり、従っ
て、3.5倍を超える幅のバーは1モジュールの4倍の
幅の最も太いバーである。又3.5倍より小さく2.5
倍を超える幅のバーは1モジュールの3倍の幅のバーで
あり、又1.5倍以下の幅のバーは1モジュールの1倍
の幅のバーであり、それ以外は1モジュールの2倍の幅
のバーである。そして、最も太いバーの1キャラクタ内
の位置は、例えば、センタバーより左側の奇数パリティ
の数字「3」の場合は2番目、数字「6」の場合は4番
目となる。又偶数パリティの数字「3」の場合は3番
目、数字「6」の場合は1番目となる。又センタバーよ
り右側の偶数パリティの数字「3」の場合は2番目、数
字「6」の場合は4番目となる。従って、1モジュール
の3.5倍を超える幅のバーを識別した時は、1キャラ
クタ内の位置により数字「3」,「6」を判定すること
ができる。又1モジュールの3倍の幅のバーの場合は、
そのバーが1キャラクタ内の1番目の位置で且つ1モジ
ュールの2倍の幅のバーが2番目の位置であると、左側
の奇数パリティの数字「0」と判定することができる。
即ち、識別した1種類或いは2種類の幅のバーについて
1キャラクタ内の位置によってバーコードを判定するこ
とができる。
The width of each bar constituting the bar code is one, two, three, or four times that of one module. Therefore, a bar having a width exceeding 3.5 times is four times that of one module. It is the thickest bar with double width. 2.5 times smaller than 3.5 times
A bar with a width more than double is a bar with a width three times that of one module, a bar with a width of 1.5 times or less is a bar with a width of one module, and a bar with a width other than that is twice the width of one module. The width of the bar. The position of the thickest bar in one character is, for example, the second position for the odd parity number “3” on the left side of the center bar and the fourth position for the number “6”. If the number is "3" for even parity, it is the third number, and if the number is "6", the number is first. Further, if the number "3" of even parity on the right side of the center bar, it is the second, and if the number "6", it is the fourth. Therefore, when a bar having a width exceeding 3.5 times the width of one module is identified, the numbers "3" and "6" can be determined by the position within one character. In the case of a bar three times wider than one module,
If the bar is at the first position in one character and the bar having a width twice that of one module is at the second position, it can be determined that the odd parity number "0" on the left side.
That is, the bar code can be determined by the position within one character for the identified one or two types of width bars.

【0009】[0009]

【実施例】バーコードは、図1に示すように、スキャナ
1により光学的に読取り、2値化回路2により2値化
し、判定部3に於いて判定するものであり、この判定部
3に於ける判定処理の本発明の実施例を図2〜図7に示
す。この判定部3では、キャラクタ区切部4に於いて、
図2に示すように、先ず、スキャナ1により読取って2
値化したバーコードの白バーと黒バーとの太さ(幅)を
計測し(A1)、次に、ガードバー及びセンタバーを検
出し(A2)、ガードバー或いはセンタバーを基準とし
て1キャラクタ毎に区切る(A3)。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As shown in FIG. 1, a bar code is optically read by a scanner 1 and binarized by a binarizing circuit 2 and is judged by a judging section 3. An embodiment of the present invention of the determination process in FIG. 2 is shown in FIGS. In this determination unit 3, in the character division unit 4,
First, as shown in FIG.
The thickness (width) of the white bar and the black bar of the binarized bar code is measured (A1), then the guard bar and the center bar are detected (A2), and each character is separated based on the guard bar or the center bar ( A3).

【0010】次に太細バー識別部5に於いて、1キャラ
クタの長さの計測値の1/7を求め(A4)、それを1
モジュールとして、その1.5倍,2.5倍,3.5倍
の値と各バーを比較する(A5)。
Next, in the thick and thin bar discriminating section 5, 1/7 of the measured value of the length of one character is obtained (A4), which is set to 1
As a module, each bar is compared with its 1.5 times, 2.5 times, and 3.5 times values (A5).

【0011】次に、センタバーの左側であるか否かを判
定し(A6)、左側の場合は、ステップ(A7)以降に
進み、右側の場合は、図7に示すステップ(G1)以降
に進む。そして、左側の場合は、バーが1モジュールの
3.5倍より大きいか否かを判定する(A7)。
Next, it is judged whether or not it is on the left side of the center bar (A6), and if it is on the left side, the process proceeds to step (A7) and thereafter, and if it is on the right side, it proceeds to step (G1) and thereafter shown in FIG. . Then, in the case of the left side, it is determined whether or not the bar is larger than 3.5 times one module (A7).

【0012】大きければ(肯定)、1モジュールの4倍
の幅の最も太いL4バーとして、図3に示すステップ
(B1)以降に進み、大きくなければ(否定)、バーが
1モジュールの2.5倍より大きいか否かを判定し(A
8)、大きければ(肯定)、1モジュールの3倍の幅の
L3バーとして、図4のステップ(C1)以降に進む。
又大きくなければ(否定)、1.5倍より小さいか否か
を判定し(A9)、小さければ(肯定)、L1バーとし
て、図6のステップ(D1)以降に進み、小さくなけれ
ば(否定)、L2バーとする(A10)。そして、太細
バー順番判定部6(図1参照)に於いてL4,L3,L
2,L1バーのキャラクタ内の順番によりバーコードを
判定する。
If it is larger (affirmative), the thickest L4 bar having a width four times as large as one module is proceeded to after step (B1) shown in FIG. 3, and if it is not large (negative), the bar is 2.5 times as large as one module. It is judged whether it is greater than double (A
8) If it is larger (affirmative), the L3 bar having a width three times as wide as one module is set, and the process proceeds to step (C1) and subsequent steps in FIG.
If it is not larger (negative), it is judged whether it is smaller than 1.5 times (A9), and if it is smaller (affirmative), the L1 bar is taken, and the process proceeds to the step (D1) onward in FIG. ), L2 bar (A10). Then, in the thick and thin bar order determination unit 6 (see FIG. 1), L4, L3, L
2, The bar code is determined by the order in the character of the L1 bar.

【0013】キャラクタについては、図8に示すよう
に、センタバーに対して左側のキャラクタと右側のキャ
ラクタとに分けて、左側キャラクタは奇数パリティと偶
数パリティとがあり、右側キャラクタは偶数パリティの
みとなる。そして、数字「0」〜「9」については、そ
れぞれ1モジュールを1ビットに対応させて、白バーを
“0”、黒バーを“1”として示すことができる。又L
4,L3,L2,L1はステップ(A7),(A8),
(A9)により判定された1モジュールの3.5倍以上
の幅のバー即ち4モジュール分の幅のバー、3.5倍よ
り小さく2.5倍により大きい幅のバー即ち3モジュー
ル分の幅のバー、2.5倍より小さく1.5倍より大き
い幅のバー即ち2モジュール分の幅のバー、1.5倍よ
り小さい幅のバー即ち1モジュール分の幅のバーを示
す。又(1) 〜(4) は1キャラクタ内の位置を示す。
As for the character, as shown in FIG. 8, the character is divided into a character on the left side and a character on the right side with respect to the center bar, the left character has odd parity and even parity, and the right character has only even parity. . For the numbers “0” to “9”, one module can be associated with one bit, and the white bar can be indicated as “0” and the black bar can be indicated as “1”. See also L
4, L3, L2 and L1 are steps (A7), (A8),
A bar having a width of 3.5 times or more of one module determined by (A9), that is, a bar having a width of 4 modules, a bar having a width of 3.5 times smaller than 2.5 times, that is, having a width of 3 modules, A bar, a bar smaller than 2.5 times and larger than 1.5 times, that is, a bar having a width of 2 modules, and a bar smaller than 1.5 times, that is, a bar having a width of 1 module are shown. Also, (1) to (4) indicate positions within one character.

【0014】ステップ(A7)に於いて1モジュールの
3.5倍を超えた幅のL4バーを識別すると、図3に示
すように、そのL4バーの1キャラクタ内の位置を判定
する(B1),(B2),(B3)。1キャラクタ内の
位置は図3の下方に示すように、左側キャラクタの場合
に白バー,黒バー,白バー,黒バーの順序でその位置を
(1) 〜(4) で示す。なお、右側キャラクタの場合は黒バ
ー,白バー,黒バー,白バーの順序となる。
When an L4 bar having a width exceeding 3.5 times the width of one module is identified in step (A7), the position of the L4 bar within one character is determined as shown in FIG. 3 (B1). , (B2), (B3). As shown in the lower part of FIG. 3, the positions within one character are set in the order of white bar, black bar, white bar, and black bar for the left character.
It is shown by (1) to (4). For the right character, the order is black bar, white bar, black bar, white bar.

【0015】そして、L4バーが1番目の位置(1) の場
合、図8に於いてL4(1) として示すように、偶数パリ
ティ6と判定し(B4)、L4バーが2番目の位置(2)
の場合は、L4(2) として示すように、奇数パリティ3
と判定し(B5)、L4バーが3番目の位置(3) の場合
は、L4(3) として示すように、偶数パリティ3と判定
し(B6)、L4バーが1番目〜3番目の位置でない
時、即ち、4番目の位置(4) の場合は、L4(4) として
示すように、奇数パリティ6と判定する(B7)。従っ
て、1モジュールの3.5倍を超える幅のL4バーを含
むキャラクタについては、そのL4バーの位置を判定す
ることにより、バーコードを識別することができる。
When the L4 bar is at the first position (1), it is determined that the parity is even parity 6 (B4), as shown by L4 (1) in FIG. 8, and the L4 bar is at the second position (1). 2)
, The odd parity is 3 as shown as L4 (2).
If the L4 bar is at the third position (3), it is determined to be an even parity 3 (B6), as shown by L4 (3), and the L4 bar is at the first to third positions. If not, that is, in the case of the fourth position (4), it is judged as odd parity 6 as indicated by L4 (4) (B7). Therefore, for a character including an L4 bar having a width exceeding 3.5 times the width of one module, the barcode can be identified by determining the position of the L4 bar.

【0016】又ステップ(A8)に於いて1モジュール
の3.5倍より小さく2.5倍より大きいL3バーを識
別すると、図4に示すように、L3バーが1番目〜3番
目の位置(1) 〜(3) であるか否かを判定し(C1),
(C2),(C3)、何れでもない場合は4番目の位置
(4) と判定する。ステップ(C1)に於いて、L3バー
が1番目(1) であると判定すると、L2バーが2番目又
は3番目の位置(2),(3)であるか否かを判定し(C
8),(C9)、L2バーが2番目の位置(2) である
と、図8に於いてL3(1) L2(2) として示すように、
奇数パリティ0と判定する(C9)。
When an L3 bar smaller than 3.5 times and 2.5 times larger than that of one module is identified in step (A8), as shown in FIG. 4, the L3 bar is located at the first to third positions ( 1) to (3) are judged (C1),
(C2), (C3), the fourth position if neither
Determined as (4). In step (C1), when it is determined that the L3 bar is at the first position (1), it is determined whether the L2 bar is at the second or third position (2), (3) (C
8), (C9), and the L2 bar at the second position (2), as shown in FIG. 8 as L3 (1) L2 (2),
Odd parity 0 is determined (C9).

【0017】又ステップ(C10)に於いてL2バーが
3番目の位置(3) であると判定すると、図8に於いてL
3(1) L2(3) として示すように、偶数パリティ8と判
定する(C11)。又L2バーが2番目でも3番目でも
ない場合は4番目であるから、図8に於いてL3(1) L
2(4) として示すように、奇数パリティ9と判定する
(C12)。
If it is determined in step (C10) that the L2 bar is in the third position (3), L in FIG.
As indicated by 3 (1) L2 (3), it is determined that the even parity is 8 (C11). If the L2 bar is neither the second nor the third, it is the fourth, so L3 (1) L in FIG.
As indicated by 2 (4), the odd parity 9 is determined (C12).

【0018】又ステップ(C2),(C3)に於いて、
それぞれL3バーが2番目及び3番目の位置(2),(3) で
ないと判定した時は、L3バーが4番目の位置(4) であ
ることを示し、その場合は、L2バーの位置が1番目か
2番目かを判定する(C4),(C5)。このステップ
(C4)に於いてL2バーが1番目の位置(1) であると
判定すると、図8に於いてL3(4) L2(1) で示すよう
に、偶数パリティ9と判定する(C13)。又ステップ
(C5)に於いてL2バーが2番目の位置(2)であると
判定すると、図8に於いてL3(4) L2(2) で示すよう
に、奇数パリティ8と判定する(C14)。又L2バー
が1番目でも2番目でもない場合は、3番目であること
を示すから、その場合は図8に於いてL3(4) L2(3)
で示すように、偶数パリティ0と判定する(C6)。
In steps (C2) and (C3),
When it is determined that the L3 bar is not at the second and third positions (2) and (3) respectively, it indicates that the L3 bar is at the fourth position (4). In that case, the position of the L2 bar is It is determined whether it is the first or second (C4), (C5). If it is determined in this step (C4) that the L2 bar is at the first position (1), it is determined to be an even parity 9 as shown by L3 (4) L2 (1) in FIG. 8 (C13). ). If it is determined in step (C5) that the L2 bar is at the second position (2), odd parity 8 is determined as indicated by L3 (4) L2 (2) in FIG. 8 (C14). ). If the L2 bar is neither the 1st nor the 2nd, it means that it is the 3rd, and in that case L3 (4) L2 (3) in FIG.
As shown by, the even parity 0 is determined (C6).

【0019】又ステップ(C2)に於いて、L3バーが
2番目の位置(2) であると判定すると、図5に示すよう
に、L2バーが1番目又は3番目の位置(1),(3) である
か否かを判定する(E1),(E2)。このステップ
(E1)に於いてL2バーが1番目の位置(1) であると
判定した時は、図8に於いてL3(2) L2(1) で示すよ
うに、偶数パリティ4と判定する(E4)。又ステップ
(E2)に於いてL2バーが3番目の位置であると判定
した時は、図8に於いてL3(2) L2(3) で示すよう
に、偶数パリティ5と判定する(E5)。又L2バーが
1番目でもなく3番目でもない場合は4番目の位置(4)
であるから、図8に於いてL3(2) L2(4)で示すよう
に、奇数パリティ7と判定する(E3)。
If it is determined in step (C2) that the L3 bar is at the second position (2), the L2 bar is at the first or third position (1), (as shown in FIG. 5). 3) It is determined whether or not (E1) and (E2). When it is determined in this step (E1) that the L2 bar is at the first position (1), it is determined to be an even parity 4 as shown by L3 (2) L2 (1) in FIG. (E4). When it is determined in step (E2) that the L2 bar is at the third position, it is determined to be even parity 5 as indicated by L3 (2) L2 (3) in FIG. 8 (E5). . If the L2 bar is neither first nor third, it is the fourth position (4).
Therefore, as indicated by L3 (2) and L2 (4) in FIG. 8, it is determined that the odd parity is 7 (E3).

【0020】又ステップ(C3)に於いて、L3バーが
3番目の位置(3) であると判定すると、図5に示すよう
に、L2バーが1番目か2番目の位置(1),(2) であるか
否かを判定する(F1),(F2)。ステップ(F1)
に於いてL2バーが1番目の位置(1) であると判定する
と、図8に於いてL3(3) L2(1) で示すように、偶数
パリティ7と判定する(F4)。又ステップ(F2)に
於いてL2バーが2番目の位置(2) であると判定する
と、図8に於いてL3(3) L2(2) で示すように、奇数
パリティ5と判定する(F5)。又L2バーが1番目で
も2番目でもない場合、4番目の位置(4) であることを
示すから、図8に於いてL3(3) L2(4)で示すよう
に、奇数パリティ4と判定する(F3)。
When it is determined in step (C3) that the L3 bar is at the third position (3), the L2 bar is at the first or second position (1), (as shown in FIG. 5). 2) It is determined whether or not (F1), (F2). Step (F1)
When it is determined that the L2 bar is at the first position (1) in (1), it is determined that the parity is even number 7 (F4), as indicated by L3 (3) L2 (1) in FIG. If it is determined in step (F2) that the L2 bar is at the second position (2), odd parity 5 is determined as shown by L3 (3) L2 (2) in FIG. 8 (F5 ). If the L2 bar is neither first nor second, it indicates the fourth position (4). Therefore, as shown by L3 (3) L2 (4) in FIG. 8, it is judged as odd parity 4. Yes (F3).

【0021】又ステップ(A9)に於いて1モジュール
の1.5倍より小さいL1バーと判定すると、図6に示
すように、そのL1バーが1番目〜4番目の何れの位置
であるかを判定する(D1)〜(D3)。この場合も、
1番目,2番目,3番目の何れでもない場合は4番目と
判定する。
When it is determined in step (A9) that the L1 bar is smaller than 1.5 times the size of one module, as shown in FIG. 6, which L1 bar is located at the 1st to 4th position. Judgment (D1) to (D3). Also in this case,
If none of the first, second, and third, it is determined to be the fourth.

【0022】ステップ(D1)に於いて、L1バーが1
番目の位置(1) であると判定すると、図8に於いてL1
(1) で示すように、偶数パリティ1と判定する(D
5)。又ステップ(D2)に於いて、L1バーが2番目
の位置(2) であると判定すると、図8に於いてL1(2)
で示すように、奇数パリティ2と判定する(D6)。又
ステップ(D3)に於いて、L1バーが3番目の位置
(3) であると判定すると、図8に於いてL1(3) で示す
ように、偶数パリティ2と判定する(D7)。又1倍目
〜3番目でない場合は4番目であることを示すから、図
8に於いてL1(4) で示すように、奇数パリティ1と判
定する(D4)。
In step (D1), L1 bar is 1
If it is determined that the position is the first position (1), L1 in FIG.
As shown in (1), the even parity 1 is determined (D
5). If it is determined in step (D2) that the L1 bar is in the second position (2), L1 (2) in FIG.
As shown by, the odd parity 2 is determined (D6). In step (D3), the L1 bar is in the third position.
If it is determined to be (3), it is determined to be even parity 2 as indicated by L1 (3) in FIG. 8 (D7). If it is not 1st to 3rd, it means that it is the 4th, and therefore it is judged as odd parity 1 as shown by L1 (4) in FIG. 8 (D4).

【0023】前述のように、L4バーとL3バーとを含
まないキャラクタに於いては、L1バーの位置が1番目
〜4番目の何れであるかにより、バーコードを判定する
ことができる。
As described above, in the character that does not include the L4 bar and the L3 bar, the bar code can be determined depending on whether the position of the L1 bar is the first to the fourth.

【0024】又図2のステップ(A6)に於いて、左側
キャラクタではないと判定した時、ステップ(A7),
(A8),(A9),(A10)と同様の図7に示すス
テップ(G1),(G2),(G3),(G7)によ
り、L4,L3,L2,L1バーを識別する。そして、
1モジュールの3.5倍を超える太さのL4バーの場合
は、2番目の位置(2) か否かを判定する(G8)。右側
キャラクタに於いてはL4バーは2番目か4番目の位置
であるから、2番目の位置(2) の場合は、図8のL4
(2) で示すように、偶数パリティ3と判定し(G1
0)、2番目の位置(2)でない場合は、4番目の位置(4)
であるから、図8のL4(4) で示すように、偶数パリ
ティ6と判定する(G9)。
When it is determined in step (A6) in FIG. 2 that the character is not the left character, step (A7),
L4, L3, L2 and L1 bars are identified by steps (G1), (G2), (G3) and (G7) shown in FIG. 7 similar to (A8), (A9) and (A10). And
In the case of the L4 bar having a thickness exceeding 3.5 times that of one module, it is determined whether or not it is at the second position (2) (G8). In the right character, the L4 bar is the second or fourth position, so in the case of the second position (2), L4 in FIG.
As shown in (2), it is determined that the even parity is 3 (G1
0) 4th position (4) if not the 2nd position (2)
Therefore, as shown by L4 (4) in FIG. 8, it is determined that the even parity is 6 (G9).

【0025】又ステップ(G3)に於いて1モジュール
の1.5倍より小さいL1バーと判定した時は、L1バ
ーは2番目の位置が4番目の位置であるから、2番目の
位置(2) であるか否かを判定し(G4)、2番目の位置
の場合は、図8に於けるL1(2) で示すように、偶数パ
リティ2と判定し(G6)、2番目の位置でない場合
は、4番目の位置(4) であるから、図8に於けるL1
(4) で示すように、偶数パリティ1と判定する(G
5)。
When it is determined in step (G3) that the L1 bar is smaller than 1.5 times the size of one module, the second position of the L1 bar is the fourth position, so the second position (2 ) Is determined (G4), and in the case of the second position, it is determined to be an even parity 2 as shown by L1 (2) in FIG. 8 (G6), and it is not the second position. In the case, since it is the fourth position (4), L1 in FIG.
As shown in (4), the even parity 1 is determined (G
5).

【0026】又ステップ(G2)に於いて1モジュール
の2.5倍より大きく、3.5倍より小さい幅のL3バ
ーと判定した時は、そのL3バーの位置が1番目〜4番
目の何れの位置であるかを判定する(G11),(G1
2),(G13)。ステップ(G11)に於いてL3バ
ーが1番目の位置(1) であると判定した時は、L2バー
が2番目の位置(2) であるか否かを判定する(G1
5)。L2バーが2番目の位置(2) の場合は、図8に於
いてL3(1) L2(2) で示すように、偶数パリティ0と
判定し(G17)、2番目の位置でない場合は4番目の
位置であるから、図8のL3(1) L2(4) で示すよう
に、偶数パリティ9と判定する(G16)。
When it is determined in step (G2) that the width of the L3 bar is greater than 2.5 times and less than 3.5 times that of one module, the position of the L3 bar is one of the first to fourth positions. (G11), (G1)
2), (G13). When it is determined in step (G11) that the L3 bar is at the first position (1), it is determined whether the L2 bar is at the second position (2) (G1
5). When the L2 bar is at the second position (2), it is judged as the even parity 0 (G17) as shown by L3 (1) L2 (2) in FIG. 8 and it is 4 if it is not the second position. Since it is at the th position, it is determined to be an even parity 9 as indicated by L3 (1) L2 (4) in FIG. 8 (G16).

【0027】又ステップ(G12)に於いてL3バーが
2番目の位置(2) であると判定すると、図8に於いてL
3(2) で示すように、偶数パリティ7と判定する(G1
8)。又ステップ(G13)に於いてL3バーが3番目
の位置(3) であると判定すると、L2バーが2番目の位
置(2) か否かを判定する(G19)。この場合のL2バ
ーは2番目か4番目の位置となるものであり、2番目の
位置(2) と判定すると、図8に於いてL3(3) L2(2)
で示すように、偶数パリティ5と判定し(G21)、2
番目の位置でないと判定すると、4番目の位置であるか
ら、図8に於いてL3(3) L2(4) で示すように、偶数
パリティ4と判定する(G20)。
When it is determined in step (G12) that the L3 bar is in the second position (2), L is set in FIG.
As indicated by 3 (2), it is determined that the even parity is 7 (G1
8). If it is determined in step (G13) that the L3 bar is at the third position (3), it is determined whether the L2 bar is at the second position (2) (G19). In this case, the L2 bar is located at the second or fourth position, and if it is determined to be the second position (2), L3 (3) L2 (2) in FIG.
, It is determined to be an even parity 5 (G21), 2
If it is determined that it is not the fourth position, since it is the fourth position, it is determined to be an even parity 4 as indicated by L3 (3) L2 (4) in FIG. 8 (G20).

【0028】又ステップ(G13)に於いて、L3バー
が3番目の位置でないと判定した時は、L3バーは4番
目の位置(4) であるから、図8に於いてL3(4) で示す
ように、偶数パリティ8と判定する(G14)。
In step (G13), when it is determined that the L3 bar is not at the third position, the L3 bar is at the fourth position (4). Therefore, at L3 (4) in FIG. As shown, it is determined that the even parity is 8 (G14).

【0029】前述のように、右側キャラクタについて
も、L4バーを含むキャラクタはその位置のみで判定す
ることができ、又L4バーとL3バーとを含まないキャ
ラクタはL1バーの位置のみで判定し、L3バーを含む
キャラクタはその位置或いは更にL2バーの位置を用い
て判定することができる。
As described above, also for the right side character, the character including the L4 bar can be judged only by its position, and the character not including the L4 bar and the L3 bar can be judged only by the position of the L1 bar. The character including the L3 bar can be determined using its position or the position of the L2 bar.

【0030】前述の本発明の実施例に於いては、JAN
コードについて示すものであるが、同様なバーコードに
対しても適用できるものである。
In the embodiment of the present invention described above, JAN
Although shown as a code, it is also applicable to similar bar codes.

【0031】[0031]

【発明の効果】以上説明したように、本発明は、判定部
3の太細バー識別部5により1キャラクタの各バーが1
モジュールの3.5倍を超えた幅のL4バーであるか、
3.5倍より小さく且つ2.5倍を超えた幅のL3バー
であるか、1.5倍より小さい幅のL1バーであるか、
或いは2.5倍より小さく且つ1.5倍を超えた幅のL
2バーであるかを識別し、それらの1キャラクタ内の位
置(1) 〜(4) により判定するものであり、太細バー順番
判定部6に於いて1種類或いは2種類のバーのキャラク
タ内の位置を識別することにより、ビットパターンに変
換した後に判定する従来例に比較して容易にバーコード
を判定することができる利点がある。
As described above, according to the present invention, each bar of one character is set to 1 by the thick and thin bar identifying section 5 of the judging section 3.
Is the L4 bar wider than 3.5 times the module,
Whether the width is less than 3.5 times and more than 2.5 times the width of L3 bar, or less than 1.5 times the width of L1 bar,
Alternatively, the width L is less than 2.5 times and more than 1.5 times.
It is determined whether or not there are two bars, and the positions (1) to (4) within the one character are used to make a determination. By identifying the position of, there is an advantage that the bar code can be easily determined as compared with the conventional example in which it is determined after the bit pattern is converted.

【図面の簡単な説明】[Brief description of 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 a flowchart of an embodiment of the present invention.

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

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

1 スキャナ 2 2値化回路 3 判定部 4 キャラクタ区切部 5 太細バー識別部 6 太細バー順番判定部 1 Scanner 2 Binarization Circuit 3 Judgment Section 4 Character Separation Section 5 Thick Bar Identification Section 6 Thick Bar Order Determination Section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 1モジュールの1倍,2倍,3倍,4倍
の何れかの幅の白バーと黒バーとの組合せからなるバー
コードをスキャナ(1)により読取り、2値化回路
(2)により2値化して、判定部(3)のキャラクタ区
切部(4)に於いて2個の白バーと2個の黒バーとの組
合せからなる1キャラクタ毎に区切って判定するバーコ
ード判定方法に於いて、 前記判定部(3)は、太細バー識別部(5)と太細バー
順番判定部(6)とを備え、前記太細バー識別部(5)
により、1キャラクタの各バーが1モジュールの3.5
倍を超えた幅のバーであるか、又は3.5倍より小さく
2.5倍を超えた幅のバーであるか、又は1.5倍以下
のバーであるかを識別し、前記太細バー順番判定部
(6)により、前記識別した幅のバーの1キャラクタ内
の位置によりバーコードを判定することを特徴とするバ
ーコード判定方法。
1. A bar code consisting of a combination of a white bar and a black bar having a width of 1, 2, 3, or 4 times that of one module is read by a scanner (1) and a binarization circuit ( 2) Binarization by the character division section (4) of the judgment section (3), and the bar code judgment is made for each character consisting of a combination of two white bars and two black bars. In the method, the judging section (3) includes a thick and thin bar identifying section (5) and a thick and thin bar order judging section (6), and the thick and thin bar identifying section (5).
As a result, each bar of 1 character is 3.5 in 1 module.
It is discriminated whether the bar has a width of more than double, a bar of less than 3.5 times and more than 2.5 times, or a bar of 1.5 times or less. A bar code determining method, wherein a bar order determining unit (6) determines a bar code based on a position of a bar having the identified width within one character.
JP5203101A 1993-08-17 1993-08-17 Barcode judgment method Expired - Fee Related JP2736729B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5203101A JP2736729B2 (en) 1993-08-17 1993-08-17 Barcode judgment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5203101A JP2736729B2 (en) 1993-08-17 1993-08-17 Barcode judgment method

Publications (2)

Publication Number Publication Date
JPH0757036A true JPH0757036A (en) 1995-03-03
JP2736729B2 JP2736729B2 (en) 1998-04-02

Family

ID=16468409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5203101A Expired - Fee Related JP2736729B2 (en) 1993-08-17 1993-08-17 Barcode judgment method

Country Status (1)

Country Link
JP (1) JP2736729B2 (en)

Also Published As

Publication number Publication date
JP2736729B2 (en) 1998-04-02

Similar Documents

Publication Publication Date Title
JP2616921B2 (en) Label identification device
JPS6077279A (en) Initiation of character image
JP2000357205A (en) Method and device for bar code read
US4109143A (en) Optical reader
US5393968A (en) Method and device for reading bar code
JPH09161001A (en) Bar code reader
JPS64744B2 (en)
JP2736729B2 (en) Barcode judgment method
KR19990023128A (en) Bar code readers, bar code reading methods and computer readable media
JP2718442B2 (en) Barcode demodulation method and apparatus
US5059775A (en) Slip and method of and apparatus for automatic reading of the slip
JP3448404B2 (en) Barcode reading device and barcode reading method
US6305606B1 (en) Process for scanning a bar code
JP4641315B2 (en) Method for decoding bar code symbols using a plurality of scanning lines
EP0144202A2 (en) Optical reader
US5519199A (en) Method and apparatus for detecting and storing bar bode data and re-detecting undetected data
JP2953143B2 (en) Barcode reading device and barcode reading method
JP2754440B2 (en) Barcode judgment method
GB2292241A (en) Reading bar-codes
JPH07334607A (en) Bar code reading device
JPS60110091A (en) Character recognizing system
JPS62169287A (en) Recorded character type discriminating system
JPH05165997A (en) Bar code reader
JP3131866B2 (en) Bar code reading method and apparatus
JPS5935478B2 (en) Barcode symbol reading method

Legal Events

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