JPH0652342A - Bar code detecting system - Google Patents

Bar code detecting system

Info

Publication number
JPH0652342A
JPH0652342A JP4204139A JP20413992A JPH0652342A JP H0652342 A JPH0652342 A JP H0652342A JP 4204139 A JP4204139 A JP 4204139A JP 20413992 A JP20413992 A JP 20413992A JP H0652342 A JPH0652342 A JP H0652342A
Authority
JP
Japan
Prior art keywords
data
bar code
bar
mask data
start bit
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
JP4204139A
Other languages
Japanese (ja)
Other versions
JP2900714B2 (en
Inventor
Takeshi Okamura
武 岡村
Yasuo Ono
康夫 大野
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4204139A priority Critical patent/JP2900714B2/en
Publication of JPH0652342A publication Critical patent/JPH0652342A/en
Application granted granted Critical
Publication of JP2900714B2 publication Critical patent/JP2900714B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To easily change a program by making the detecting system a table registering system with a pitch between respective bar codes as a reference. CONSTITUTION:Mask data are prepared based on a detected start bit (102) and the start bit investigates pits from the head of input data. When the two bits of '1' are continued, the bit of this second '1' is defined as the start bit and with this start bit as a reference position, the mask data are prepared. Next, data retrieval is performed by referring to a table corresponding to these mask data (103,) this result is registered (104) and two bars are detected including the start bit on this stage. Then, it is investigated whether all the data are completely checked or not (105) and when all the data are completely checked, processing is finished. When the check is not completed, the preparation of the next mask data corresponding to the latest data (106) is started. When the mask data are '00111000', for example, a value '10H' of a position and presence '1' of the bar can be provided from the table.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、郵便自動化装置等にお
いて、画像入力装置より入力された信号によりバーコー
ドを検出する方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system for detecting a bar code by a signal input from an image input device in a postal automation device or the like.

【0002】[0002]

【従来の技術】郵便自動化装置で用いられるバーコード
は均一の幅を持つバーを一定間隔(ピッチ)で、配置し
ているかしていないかにより情報を示すものである。
2. Description of the Related Art A bar code used in a postal automation device indicates information depending on whether or not bars having a uniform width are arranged at regular intervals (pitch).

【0003】この種のバーコードの検出方式では、画像
入力装置より、バーコード上を走査することによって入
力された一定ビット数の入力信号(以下新入力信号)
を、前回入力された入力信号(旧入力信号)により加工
すると同時にバーコードの有無を決定するものである。
In this type of bar code detection method, an input signal of a certain number of bits (hereinafter referred to as a new input signal) input by scanning the bar code from the image input device.
Is processed by the input signal (old input signal) input last time, and at the same time, the presence or absence of the bar code is determined.

【0004】図5を参考に従来の技術について説明す
る。画像入力装置より入力された新入力信号は、最初に
旧入力信号の上位4ビットの内容により9種類の飛び先
に分けられ各々の飛び先により新入力信号を加工する。
加工する方法として、バーコードの間隔は一定であるの
でバーコード有と判断した場合、新入力信号の位置をマ
スクし、サンプリングのずれ、インクの飛び散りによる
信号の乱れを補正している。
A conventional technique will be described with reference to FIG. The new input signal input from the image input device is first divided into 9 types of jump destinations according to the contents of the upper 4 bits of the old input signal, and the new input signal is processed by each jump destination.
As a processing method, since the bar code interval is constant, when it is judged that the bar code is present, the position of the new input signal is masked to correct the sampling deviation and the signal disturbance due to the ink scattering.

【0005】図6に加工方法の一例を示す。例の場合、
旧入力信号に応じて0,7ビット目を強制的に“0”
(データ無)とし他のビットに対しては新入力信号をそ
のまま登録する。旧入力信号の上位4ビットにより分け
られた9種類の飛び先では次に下位4ビットのデータに
より各々の飛び先(1種類に付き5種類の飛び先)に分
けられ新入力信号を再度加工し、加工後の信号を旧入力
信号として登録すると同時にバーコードの有/無を決定
する。
FIG. 6 shows an example of the processing method. For example,
Forcibly sets the 0th and 7th bits to "0" according to the old input signal
(No data) and the new input signal is registered as it is for other bits. The 9 types of jump destinations divided by the upper 4 bits of the old input signal are then divided into the respective jump destinations (5 types of jump destinations per type) by the data of the lower 4 bits, and the new input signal is processed again. , The processed signal is registered as the old input signal and at the same time the presence / absence of the barcode is determined.

【0006】[0006]

【発明が解決しようとする課題】この従来のバーコード
検出方式では、プログラムの構成が複雑でなおかつ、入
力データに応じてプログラム内で多数分岐しているた
め、バーコードの印字されるピッチが、搬送路上の問題
や他機種で印字される事により長くなったり短かくなっ
たりした場合、それらのバーコードを読ませる事は、プ
ログラムの大幅な変更を必要とする為大変困難で複雑で
あった。
In this conventional bar code detection method, the pitch of the bar code is printed because the program structure is complicated and a large number of branches are made in the program according to the input data. If it becomes longer or shorter due to problems on the transport path or because it is printed by another model, it is very difficult and complicated to read those bar codes because it requires a large change in the program. .

【0007】[0007]

【課題を解決するための手段】本発明のバーコード検出
方式は、バーコードのピッチが多少変化をしてもバー存
在位置が周期的になっていることから、最初に検出され
たバーを基準として次のバーを検出するためのデータ入
力し、このデータを予め設定されたテーブルにより次の
基準位置とバーの有無との情報に変換し、同様に基準位
置をずらしながらバーを検出していくように動作する。
According to the bar code detecting method of the present invention, even if the bar code pitch changes a little, the bar existing position is periodic. Therefore, the bar detected first is used as a reference. Input the data for detecting the next bar as, and convert this data to the information of the next reference position and the presence or absence of the bar by the preset table, and similarly detect the bar while shifting the reference position. Works like.

【0008】[0008]

【実施例】次に本発明の実施例について図面を参照して
説明する。まず、図1のフローに従い、図2乃至図4を
参照して第1の実施例について説明する。
Embodiments of the present invention will now be described with reference to the drawings. First, according to the flow of FIG. 1, a first embodiment will be described with reference to FIGS. 2 to 4.

【0009】まずバーコードリーダにより、バーコード
を読取り、2値データとして入力する(101)。本発
明で対象としているバーコードは図4に示すように単一
のピッチを有するバーが平行に並び、このバーの間隔に
よって情報を示すものである。このバーコードはバーに
対して垂直な方向でスキャンされ、バーがある所では
“1”でない所では“0”を示す2値データとして入力
される。特に本実施例では、1つのバーをスキャンした
時、3つの“1”が入力されるようにタイミングが設定
されている。バーコードのスキャンにより図4に示すよ
うな入力データが得られる。この入力データは入力時の
誤差を含み、バーの間隔に若干のばらつきが生じている
と共にNで示す、バーコードのよごれ等に起因するノイ
ズが含まれている。
First, the bar code is read by the bar code reader and input as binary data (101). As shown in FIG. 4, the bar code targeted by the present invention is such that bars having a single pitch are arranged in parallel, and information is shown by the intervals between the bars. This bar code is scanned in a direction perpendicular to the bar, and is input as binary data indicating "0" where the bar is not "1". In particular, in this embodiment, the timing is set so that three "1" s are input when one bar is scanned. By scanning the barcode, the input data as shown in FIG. 4 is obtained. This input data includes an error at the time of input, a slight variation occurs in the interval between the bars, and noise indicated by N due to dirt on the bar code is included.

【0010】次にスタートビットを検出し、このスター
トビットに基づき、マスクデータを作成する(10
2)。スタートビットは入力データの先頭からビットを
調査し、“1”が2つ連続した場合に、この2つ目の
“1”のビットをスタートビットとする。このスタート
ビットはバーコードの最初のバーの検出を示す。図4で
は(1)で示すビットがスタートビットとなる。このス
タートビットを基準位置としてマスクデータを作成す
る。このマスクデータは、スタートビットの次から数え
て4番目のビットの入力データから11番目のビットの
入力データまでの8ビットの入力データが対象となる。
図4においては(2)で示す範囲の入力データがマスク
データとして得られる。番号は8進数で表示され、基準
位置からのビット数を示す。 次にこのマスタデータに
より、テーブルを参照してデータ検索を行なう(10
3)。このテーブルの具体例は図2に示されている。こ
のテーブルはマスクデータのそれぞれの値に対して2つ
の数値を有するものである。この2つの値は、バーの有
無を示す値(下段)とその位置を示す値(上段)とであ
る。この位置を示す値は次のマスクデータを入力するた
めの基準位置となるものである。この位置の値は図2で
は16進数で示されており、この値は2進数にすると8
ビットで1つだけ“1”となる値で示されている。この
“1”のビットでマスクデータ中の位置を示している。
図3はこの対応を示したものである。図4において
(2)のマスクデータは“00011100”である。
この値で図2のテーブルを参照すると位置は“08H”
でバーの有無は“1”であり、バーありを示している。
つまり、番号が“0”の位置でバーありが検出される。
Next, a start bit is detected, and mask data is created based on this start bit (10
2). For the start bit, the bit is examined from the beginning of the input data, and when two "1" s are consecutive, the second bit of "1" is used as the start bit. This start bit indicates the detection of the first bar of the bar code. In FIG. 4, the bit indicated by (1) is the start bit. Mask data is created using this start bit as a reference position. This mask data is intended for 8-bit input data from the input data of the 4th bit to the input data of the 11th bit counted from the start bit.
In FIG. 4, the input data in the range (2) is obtained as mask data. The number is displayed in octal and indicates the number of bits from the reference position. Next, a data search is performed by referring to the table using this master data (10
3). A specific example of this table is shown in FIG. This table has two numerical values for each value of the mask data. These two values are a value indicating the presence or absence of a bar (lower row) and a value indicating its position (upper row). The value indicating this position serves as a reference position for inputting the next mask data. The value at this position is shown in hexadecimal in FIG. 2, and this value is 8 when converted to binary.
Only one bit is indicated by a value of "1". This "1" bit indicates the position in the mask data.
FIG. 3 shows this correspondence. In FIG. 4, the mask data of (2) is “00011100”.
Referring to the table of FIG. 2 with this value, the position is “08H”
The presence / absence of a bar is "1", indicating that there is a bar.
That is, the presence of the bar is detected at the position where the number is "0".

【0011】そしてこの結果を登録する(104)。こ
の段階でスタートビットを含め、2つのバーが検出され
る。
Then, the result is registered (104). At this stage, two bars including the start bit are detected.

【0012】そして入力データのチュックが全て終了し
たか調べ、全て終了していれば処理を終わり、終了して
いなければ次のマスクデータの作成(106)に入る。
Then, it is checked whether the check of all the input data has been completed. If all the check of the input data have been completed, the processing is ended, and if not completed, the next mask data creation (106) is started.

【0013】次のマスクデータの作成は前の処理で得ら
れた基準位置に基づいて同様に行なわれる(106)。
前の処理では番号“0”においてバーの検出が行なわれ
たため、この位置の次から4番目の位置から8ビット分
の入力データからマスクデータを得る。このマスクデー
タは図4の(3)の範囲となる。このマスクデータは
“00111000”であり、テーブルから位置の値
“10H”とバーの有“1”が得られる。この位置は番
号7の位置に対応する。以下同様の処理を繰り返す。次
に得られるマスクデータは、(3)の中の番号7の次か
ら4番目から8ビットの範囲の(4)の範囲で得られる
入力データである。このマスクデータはオール0であ
る。このオール0は図2のテーブルによると位置は08
Hでバーは無を示す。この次の範囲(5)におけるマス
クデータでは先頭にノイズNが入った“1000011
0”が得られる。このデータは、テーブルでは位置が0
2Hでバー有りを示している。このテーブルの値はノイ
ズNが取り除かれている。以上の動作によりバーの有無
は1、1、1、0、1、と登録され、バーが3つ連続
し、1つ間隔をおいて、バーが1つあることが認識でき
る。
The next mask data is similarly created based on the reference position obtained in the previous process (106).
Since the bar was detected at the number "0" in the previous processing, mask data is obtained from the input data of 8 bits from the fourth position from this position. This mask data falls within the range of (3) in FIG. This mask data is "00111000", and the position value "10H" and bar existence "1" are obtained from the table. This position corresponds to the position number 7. The same process is repeated thereafter. The mask data obtained next is the input data obtained in the range of (4) in the range from the 4th bit to the 8th bit after the number 7 in (3). This mask data is all 0s. The position of this all 0 is 08 according to the table of FIG.
H indicates no bar. In the mask data in the next range (5), "1000011" with noise N at the beginning is included.
0 "is obtained. This data has the position 0 in the table.
2H indicates that there is a bar. Noise N has been removed from the values in this table. With the above operation, the presence / absence of a bar is registered as 1, 1, 1, 0, 1, and it can be recognized that there are three bars in succession and one bar at an interval.

【0014】[0014]

【発明の効果】以上説明したように本発明は、各バーコ
ード間のピッチを基準にしテーブル登録方式にすること
により、バーコードのピッチが長かったり短かかったり
した場合にも簡単に対応出来、プログラムの変更が容易
に出来る効果がある。
As described above, according to the present invention, by adopting the table registration system with the pitch between the bar codes as a reference, it is possible to easily deal with the case where the bar code pitch is long or short. The effect is that the program can be changed easily.

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

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

【図2】本発明の実施例のテーブル。FIG. 2 is a table of an embodiment of the present invention.

【図3】本発明の実施例のマスクデータを示す図。FIG. 3 is a diagram showing mask data according to an embodiment of the present invention.

【図4】図1のフローチャートにおける動作を説明する
模式図。
FIG. 4 is a schematic diagram illustrating an operation in the flowchart of FIG.

【図5】従来技術のフローチャート。FIG. 5 is a flowchart of a conventional technique.

【図6】従来技術のデータ処理の模式図。FIG. 6 is a schematic diagram of data processing of a conventional technique.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 紙葉類上を走査し印字されたバーコード
を検出するバーコード読取装置において、紙面上を走査
する画像入力装置より得られた2値化画像を入力し、旧
2値化画像を基に検索されたデータオン/オフテーブル
によりバーコードの有/無を検出する手段を有すること
を特徴とするバーコード検出方式。
1. A bar code reading device for scanning a paper sheet and detecting a printed bar code, wherein a binarized image obtained from an image input device for scanning the paper surface is input to convert the old binarized image. A bar code detecting method comprising means for detecting presence / absence of a bar code based on a data on / off table retrieved based on an image.
JP4204139A 1992-07-30 1992-07-30 Barcode detection method Expired - Lifetime JP2900714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4204139A JP2900714B2 (en) 1992-07-30 1992-07-30 Barcode detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4204139A JP2900714B2 (en) 1992-07-30 1992-07-30 Barcode detection method

Publications (2)

Publication Number Publication Date
JPH0652342A true JPH0652342A (en) 1994-02-25
JP2900714B2 JP2900714B2 (en) 1999-06-02

Family

ID=16485486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4204139A Expired - Lifetime JP2900714B2 (en) 1992-07-30 1992-07-30 Barcode detection method

Country Status (1)

Country Link
JP (1) JP2900714B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703740A (en) * 2019-10-28 2020-01-17 深圳市元征科技股份有限公司 Automobile diagnosis data processing method and device and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110703740A (en) * 2019-10-28 2020-01-17 深圳市元征科技股份有限公司 Automobile diagnosis data processing method and device and computer storage medium

Also Published As

Publication number Publication date
JP2900714B2 (en) 1999-06-02

Similar Documents

Publication Publication Date Title
US4109143A (en) Optical reader
JP2900714B2 (en) Barcode detection method
US6305606B1 (en) Process for scanning a bar code
JPH06124366A (en) Address reader
JPH0421915B2 (en)
JP2990942B2 (en) Optical character reader
US3188610A (en) Machine readable characters and process of translating characters
JP2754440B2 (en) Barcode judgment method
JPS62103777A (en) Character stretch-breaking system
JPH09212586A (en) Character reading method
JPH064609A (en) Automatic reading system in attribute registeration of cad
JPS6155148B2 (en)
JP2878772B2 (en) Optical character reader
JP2690483B2 (en) Character line extraction method
JP3101073B2 (en) Post-processing method for character recognition
JPH08164365A (en) Address reader
JPH04353986A (en) Optical character reader
JPS62128382A (en) Character frame detecting device
JPH0814836B2 (en) Print medium discrimination device
JPH05114043A (en) Method for controlling reading of optical character reader
JPS6027077A (en) Optical character reader
JPH04139593A (en) Postal code number recognition device
JPH0831133B2 (en) Print interval judgment method
JPH0922457A (en) Method for determining slice level of image reading mechanism
JPH08190607A (en) Optical character reader

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19990216