Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2900714B2 - Barcode detection method - Google Patents
[go: Go Back, main page]

JP2900714B2 - Barcode detection method - Google Patents

Barcode detection method

Info

Publication number
JP2900714B2
JP2900714B2 JP4204139A JP20413992A JP2900714B2 JP 2900714 B2 JP2900714 B2 JP 2900714B2 JP 4204139 A JP4204139 A JP 4204139A JP 20413992 A JP20413992 A JP 20413992A JP 2900714 B2 JP2900714 B2 JP 2900714B2
Authority
JP
Japan
Prior art keywords
bar
data
bar code
input
mask data
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 - Lifetime
Application number
JP4204139A
Other languages
Japanese (ja)
Other versions
JPH0652342A (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.)
NEC Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
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

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 from a signal input from an image input device in a mail automation device or the like.

【0002】[0002]

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

【0003】この種のバーコードの検出方式では、画像
入力装置より、バーコード上を走査することによって入
力された一定ビット数の入力信号(以下新入力信号)
を、前回入力された入力信号(旧入力信号)により加工
すると同時にバーコードの有無を決定するものである。
In this type of bar code detection system, an input signal of a fixed number of bits (hereinafter referred to as a new input signal) input by scanning the bar code from an image input device.
Is processed by the previously input signal (old input signal), and at the same time, the presence or absence of a 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 nine 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, when it is determined that there is a barcode because the barcode interval is constant, the position of the new input signal is masked to correct the signal deviation due to sampling deviation and ink scattering.

【0005】図6に加工方法の一例を示す。例の場合、
旧入力信号に応じて0,7ビット目を強制的に“0”
(データ無)とし他のビットに対しては新入力信号をそ
のまま登録する。旧入力信号の上位4ビットにより分け
られた9種類の飛び先では次に下位4ビットのデータに
より各々の飛び先(1種類に付き5種類の飛び先)に分
けられ新入力信号を再度加工し、加工後の信号を旧入力
信号として登録すると同時にバーコードの有/無を決定
する。
FIG. 6 shows an example of a processing method. In the example,
The 0th and 7th bits are forcibly set to "0" according to the old input signal
(No data) and the new input signal is registered as it is for the other bits. In the nine types of jump destinations divided by the upper 4 bits of the old input signal, each of the jump destinations is divided into the following four destinations (five types per one 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 the conventional bar code detection system, the program configuration is complicated and a large number of branches occur in the program according to the input data. If the barcode becomes longer or shorter due to problems on the transport path or being printed on other models, it is very difficult and complicated to read those barcodes because a significant change in the program is required. .

【0007】[0007]

【課題を解決するための手段】 本発明のバーコード検
出方式は、紙葉類上を走査し印字されたバーコードを検
出するバーコード読取方式において、紙面上を走査する
画像入力装置より得られた2値化画像を入力し、先に検
出されたバーの位置を基準として予め定められたビット
範囲の2値化画像データであるマスクデータを基にデー
タオン/オフテーブルを検索し、前記マスクデータにお
けるバーの有/無とその位置の検出を繰り返し、バーコ
ードを検出する手段を有している。バーコードのピッチ
が多少変化をしてもバー存在位置が周期的になっている
ことから、最初に検出されたバーを基準として次のバー
を検出するためのデータ入力し、このデータを予め設
定されたテーブルにより次の基準位置とバーの有無との
情報に変換し、同様に基準位置をずらしながらバーを検
出していくように動作する。
According to the bar code detection method of the present invention, a bar code printed by scanning a sheet is detected.
In the bar code reading method, scan on the paper
Input the binarized image obtained from the image input device, and check it first.
Predetermined bit based on the position of the issued bar
The data is based on the mask data that is the binarized image data of the range.
Search the on / off table and add the mask data
Repeat the detection of the presence / absence of the bar
A means for detecting the code. Even if the bar code pitch slightly changes, the bar existence position is periodic, so input data for detecting the next bar based on the bar detected first and input this data in advance. The information is converted into information on the next reference position and the presence / absence of a bar according to the set table, and the bar is similarly detected while shifting the reference position.

【0008】[0008]

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

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

【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 the start bit (10).
2). The start bit is checked from the beginning of the input data, and when two “1” s continue, the second “1” bit is set 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 the start bit as a reference position. The mask data covers 8-bit input data from the fourth bit input data to the eleventh bit input data counted from the start bit.
In FIG. 4, input data in the range indicated by (2) is obtained as mask data. The number is represented in octal and indicates the number of bits from the reference position. Next, a data search is performed by referring to the table using the 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 the position (upper row). The value indicating this position serves as a reference position for inputting the next mask data. The value of this position is shown in hexadecimal number in FIG.
It is indicated by a value in which only one bit becomes “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 or absence of a bar is "1", indicating that a bar is present.
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 are detected, including the start bit.

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

【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 creation of the next mask data is similarly performed based on the reference position obtained in the previous processing (106).
In the previous processing, since the bar is detected at the number “0”, the mask data is obtained from the input data of 8 bits from the fourth position after the position. This mask data is in the range of (3) in FIG. This mask data is “00111000”, and the position value “10H” and the bar existence “1” are obtained from the table. This position corresponds to the position of number 7. Hereinafter, the same processing is repeated. The mask data obtained next is the input data obtained in the range of (4) in the range of the fourth to eighth bits after the number 7 in (3). This mask data is all 0s. According to the table of FIG. 2, the position of this all 0 is 08
H indicates a bar. In the mask data in the next range (5), “1000011” with noise N at the beginning
0 "is obtained. This data has a position of 0 in the table.
2H indicates the presence of a bar. The noise N has been removed from the values in this table. By the above operation, the presence or absence of the bar is registered as 1, 1, 1, 0, 1, and it can be recognized that three bars are continuous and one bar is provided at one interval.

【0014】[0014]

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

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

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

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

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

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

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

【図6】従来技術のデータ処理の模式図。FIG. 6 is a schematic diagram of data processing according to the related art.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 紙葉類上を走査し印字されたバーコード
を検出するバーコード読取方式において、 紙面上を走査する画像入力装置より得られた2値化画像
を入力し、先に検出されたバーの位置を基準として予め
定められたビット範囲の2値化画像データであるマスク
データを基にデータオン/オフテーブル検索し、前記
マスクデータにおけるバーの有/無とその位置の検出を
繰り返し、バーコードを検出する手段を有することを特
徴とするバーコード検出方式。
In a bar code reading method for scanning a paper sheet and detecting a printed bar code, a binarized image obtained from an image input device that scans a paper surface is input, and the binarized image is detected first. Based on the bar position
Mask that is binary image data in a predetermined bit range
Data retrieving data on / off table based on the
Detection of presence / absence of bar and its position in mask data
A bar code detection method, comprising means for repeatedly detecting a bar code.
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 JPH0652342A (en) 1994-02-25
JP2900714B2 true 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)

Families Citing this family (1)

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

Also Published As

Publication number Publication date
JPH0652342A (en) 1994-02-25

Similar Documents

Publication Publication Date Title
US5298731A (en) Method for printing and reading for orthogonal bar code patterns
US5471549A (en) Method of detecting and correcting a direction of image data and document image filing system employing the same
US4608489A (en) Method and apparatus for dynamically segmenting a bar code
JPH01194079A (en) Printing inspection instrument using ink jet printer
US5661289A (en) Card and card check method
US4109143A (en) Optical reader
US7694216B2 (en) Automatic assignment of field labels
JP2900714B2 (en) Barcode detection method
JPH0731717B2 (en) Optical reader
JPS62553B2 (en)
JPH0421915B2 (en)
JP3009325B2 (en) How to analyze Karla code
JP2748207B2 (en) How to read barcodes on voting tickets
JP2619915B2 (en) Information processing method and apparatus
JPH11184965A (en) Slip identification register device
JPH1147696A (en) Slip classification sorting system
JPH08272884A (en) Form classifying and processing method and system
JP2946780B2 (en) Barcode printer and control method thereof
CA1078061A (en) Multiple code sensing optical reader
JPH11226516A (en) Address reading device on customer barcode printed mail
JP2000355149A (en) Printing system and printing defect detection system
JPS62119684A (en) Discriminating system for reading of bar code
JPS6155148B2 (en)
JPH06282670A (en) Image reading device
JPH04139593A (en) Postal code number recognition device

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