JP2689158B2 - Barcode reader - Google Patents

Barcode reader

Info

Publication number
JP2689158B2
JP2689158B2 JP1003739A JP373989A JP2689158B2 JP 2689158 B2 JP2689158 B2 JP 2689158B2 JP 1003739 A JP1003739 A JP 1003739A JP 373989 A JP373989 A JP 373989A JP 2689158 B2 JP2689158 B2 JP 2689158B2
Authority
JP
Japan
Prior art keywords
time width
reference time
thinness
bar code
thin
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
JP1003739A
Other languages
Japanese (ja)
Other versions
JPH02184987A (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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP1003739A priority Critical patent/JP2689158B2/en
Publication of JPH02184987A publication Critical patent/JPH02184987A/en
Application granted granted Critical
Publication of JP2689158B2 publication Critical patent/JP2689158B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、バーコード読取装置、特にバーカード(バ
ーコードが印刷されているカード)等にしわや折れがあ
るとき、或いはバーカードの送りむらが生じたときに
も、バーコードが正しく読み取られるバーコード読取装
置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a bar code reading device, particularly when a bar card (a card on which a bar code is printed) or the like has wrinkles or folds, or a bar card is fed. The present invention relates to a bar code reading device that can correctly read a bar code even when unevenness occurs.

〔従来の技術〕[Conventional technology]

バーコードが色々な分野で使用されるようになってき
ている。POS(販売時点情報管理)のみならず、例えば
バーコードが印刷された名刺を電話機に挿入するだけで
電話がかけられる様な技術も開発されている。
Bar codes have been used in various fields. In addition to POS (point-of-sale information management), technologies have been developed that allow users to make calls by simply inserting a business card with a barcode printed into the phone.

この様に色々な分野で使用され応用されてくると、バ
ーコードの印刷される用紙もハードなものからソフトな
ものまで用いられ、バーコードを読み取る際種々の誤読
の要因がバーコードの印刷されている用紙側に発生する
場合も存在する。例えば用紙がソフトなものの場合、バ
ーコード部分にしわや折れが生じ、バーコード読み取り
の際の誤読の一原因ともなる。
When used and applied in various fields like this, the paper on which the barcode is printed is also used from hard to soft, and when reading the barcode, various misreading factors cause the barcode to be printed. There is also a case where it occurs on the side of the paper. For example, when the paper is soft, wrinkles and folds occur in the bar code portion, which may cause misreading when reading the bar code.

従来のバーコード読取装置は、第7図の様な構成が用
いられていた。すなわち、バーコード読取部1で読み出
されたバーコードを光信号から電気信号に変換し、2値
化手段2で設定されているスライスレベルLとの比較を
行って白黒の2値化と共に波形整形を行い、時間幅検出
手段3で白黒の2値化された整形波形からその白黒の波
形幅をそれぞれ時間幅に変換していた。そして細太判定
手段4でその時間幅と白黒の細又は太を判別する一定時
間幅の判定基準時間幅とが比較され、白黒についての細
太を判定し、解析手段5へ送出し、解析手段5で細太判
定手段4から送られてくる細黒バー、太黒バー、細白ス
ペース、太白スペースの組合せのコードを解析するよう
にしていた。
A conventional bar code reader has a structure as shown in FIG. That is, the bar code read by the bar code reading unit 1 is converted from an optical signal into an electric signal, and is compared with the slice level L set by the binarizing means 2 to perform binarization of black and white and waveform. The shaping is performed, and the time width detection means 3 converts the black and white binarized shaping waveform into the time width. Then, the thinness determination means 4 compares the time width with a determination reference time width of a constant time width for determining the thinness or thickness of black and white, determines the thinness of black and white, and sends it to the analysis means 5, and the analysis means. In 5, the code of the combination of the thin black bar, the thick black bar, the thin white space, and the thick white space sent from the thin judgment means 4 is analyzed.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら従来の第7図に示される様な構成のバー
コード読取装置では、時間幅検出手段3から検出された
時間幅と、常に一定時間幅Tの判定基準時間幅とが細太
判定手段4で比較される構成となっているため、バーコ
ード読取部1側で正常状態から逸脱していると誤読され
る欠点があった。
However, in the conventional bar code reading apparatus having the structure as shown in FIG. 7, the thin width determining unit 4 determines the time width detected by the time width detecting unit 3 and the determination reference time width of the constant time width T. Since the configurations are compared, there is a drawback that the barcode reading unit 1 side erroneously reads as a deviation from the normal state.

例えば、バーコード読取部1で読み取られるバーコー
ドにしわや折れがあるとき、該バーコード読取部1で読
み取られる波形が第8図の様に波打ち、2値化手段2で
は一定のスライスレベルLで2値化が行われるため、正
常状態における正しい時間幅で2値化の波形整形がされ
ず、従って細太判定手段4では、本来太のものが細と判
定されたり、また逆に細のものが、太と判定され、誤読
される欠点があった。
For example, when the bar code read by the bar code reader 1 has wrinkles or folds, the waveform read by the bar code reader 1 is corrugated as shown in FIG. Since the binarization is performed in step 1, the binarized waveform is not shaped in the correct time width in the normal state. Therefore, the thick / thin determination means 4 determines that the thick one is originally thin, or vice versa. However, there is a defect that the object is judged to be thick and is misread.

また、バーコードが印刷されたバーカードの送りむら
が生じると、第9図図示の如くバーカードの送りが遅く
なると細が太に判定されたり、また第10図図示の如くバ
ーカードの送りが速くなると太が細に判定されたりする
欠点があった。
Further, if unevenness in the feeding of the bar card on which the bar code is printed occurs, the thinness is judged to be thick if the feeding of the bar card is delayed as shown in FIG. 9, or the feeding of the bar card is not shown as shown in FIG. There is a drawback that the thickness is finely judged when the speed is high.

本発明は、上記の欠点を解決することを目的としてお
り、常に一定時間幅Tの判定基準時間幅をバーコード読
取部側で読み取られた値に応じて該判定基準時間幅を変
化させるようにし、バーコードの印刷されたバーカード
のしわや折れ、或いはバーカードの送りむら等があって
も、常に正確に安定した読取りを行なうことのできるバ
ーコード読取装置を提供することを目的としている。
An object of the present invention is to solve the above-mentioned drawbacks by always changing the judgment reference time width of the constant time width T according to the value read by the barcode reading unit side. SUMMARY OF THE INVENTION An object of the present invention is to provide a bar code reader capable of always reading accurately and stably even if a bar card on which a bar code is printed is wrinkled or bent, or the bar card is unevenly fed.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的を達成するために、本発明のバーコード読取
装置は、バーコードを読み取るバーコード読取部と、該
バーコード読取部で読み取られた出力を黒白の整形波形
に2値化する2値化手段と、該2値化手段で2値化され
た波形からその時間幅を検出する時間幅検出手段と、該
時間幅検出手段で検出された時間幅と細太を判定する基
準となる判定基準時間幅とからその細又を判定する細太
判定手段と、前記時間幅検出手段から得られる細太は太
の検出時間幅とその1つ前の対応した細又は太の時間幅
との差に所定の係数を掛けて、前記判定基準時間幅の補
正値を算出する判定基準時間幅補正手段と、該判定基準
時間幅補正手段で算出された補正値を前記判定基準時間
幅に加算して、前記細太判定手段で細太の判定基準とな
る新たな判定基準時間幅を作成する判定基準時間幅作成
手段と、前記細太判定手段で判定された黒白の細太コー
ドからそのバーコードを解読する解析手段とを備えてい
る。
In order to achieve the above-mentioned object, a bar code reading device of the present invention is a binarization part for reading a bar code and a binarization for binarizing an output read by the bar code reading part into a black and white shaped waveform. Means, a time width detecting means for detecting the time width from the waveform binarized by the binarizing means, and a criterion for judging the time width and the thinness detected by the time width detecting means. The thinness determining means for determining the fineness from the time width and the thinness obtained from the time width detecting means are the difference between the thickness detection time width and the immediately preceding thin or thick time width. By multiplying by a predetermined coefficient, a judgment reference time width correction means for calculating a correction value for the judgment reference time width, and a correction value calculated by the judgment reference time width correction means is added to the judgment reference time width, When a new judgment criterion is used as a judgment criterion for thinness by the thinness judgment means. It comprises a reference time width generating means for generating a width, and an analysis means for decoding the bar code from the HosoFutoshi code black and white, which is determined by the HosoFutoshi determining means.

以下図面を参照しながら本発明の一実施例を説明す
る。
An embodiment of the present invention will be described below with reference to the drawings.

〔実施例〕〔Example〕

第1図は本発明に係るバーコード読取装置の基本構成
図、第2図は本発明に係るバーコード読取装置の一実施
例構成、第3図はバーカードにしわがあるときの判定基
準時間幅が検出時間幅に追従する一例の説明図、第4図
はバーカードの送りが遅くなるときの判定基準時間幅の
可変説明図、第5図はバーカードの送りが速くなるとき
の判定基準時間幅の可変説明図、第6図(I),(II)
はバーカードにしわがあるときの黒バー、白スペースの
判定基準時間幅の追従実験の一例をそれぞれ示してい
る。
FIG. 1 is a basic configuration diagram of a bar code reading device according to the present invention, FIG. 2 is an example configuration of a bar code reading device according to the present invention, and FIG. 3 is a judgment reference time width when a bar card has wrinkles. Shows an example of tracking the detection time width, FIG. 4 is a variable explanatory view of the judgment reference time width when the bar card feeding is slow, and FIG. 5 is a judgment reference time when the bar card feeding is fast. Width variable explanatory diagram, FIG. 6 (I), (II)
Shows an example of the follow-up experiment of the judgment reference time width of the black bar and the white space when the bar card has wrinkles.

第1図の本発明に係るバーコード読取装置の基本構成
図において、1ないし5は第7図のものに対応し、6は
判定基準時間幅補正手段、7は判定基準時間幅作成手段
を表わしている。
In the basic configuration diagram of the bar code reading apparatus according to the present invention in FIG. 1, 1 to 5 correspond to those in FIG. 7, 6 is a judgment reference time width correcting means, and 7 is a judgment reference time width creating means. ing.

判定基準時間幅補正手段6は、時間幅検出手段3で検
出される黒バー又は白スペースについての細又は太の検
出時間幅と、その1つ前の対応した黒バー又は白スペー
スについての細又は太の検出時間幅、すなわち時間幅検
出手段3で検出される検出時間幅が、例えば黒バーの細
ならばその1つ前の細黒バーの検出時間幅、又白スペー
スの細ならばその1つ前の細白スペースの検出時間幅と
を比較し、その時間幅の差を求め、該時間幅の差に或る
一定の係数を掛けて得られる値を判定基準時間幅の補正
値として出力するようになっている。上記一定の係数は
バーカードの搬送速度等により定められる。
The judgment reference time width correction means 6 detects the thin or thick detection time width of the black bar or white space detected by the time width detection means 3 and the thin or thick detection time width of the immediately preceding black bar or white space. If the thick detection time width, that is, the detection time width detected by the time width detection means 3 is, for example, a thin black bar, the detection time width of the preceding thin black bar, or 1 if the white space is thin It compares the detection time width of the previous white space, finds the time width difference, and outputs the value obtained by multiplying the time width difference by a certain coefficient as a correction value for the judgment reference time width. It is supposed to do. The constant coefficient is determined by the transportation speed of the bar card.

判定基準時間幅作成手段7は、細太判定手段4におけ
る判定基準時間幅を作成するものであり、最初の細太判
定の際には外部から設定された初期値が判定基準時間幅
となる。次からは前記判定基準時間幅補正手段6から出
力される補正値を該初期値に累算した値が判定基準時間
幅となるようになっている。つまり時間幅検出手段3か
ら検出される太なら太、或いは細なら細の検出時間幅の
変化に追従して判定基準時間幅が変化するようになって
いる。
The determination reference time width creating means 7 creates the determination reference time width in the thin weight determining means 4, and the initial value set from the outside becomes the determination reference time width in the first thin weight determination. From then on, the value obtained by accumulating the correction value output from the judgment reference time width correction means 6 to the initial value becomes the judgment reference time width. That is, the determination reference time width changes in accordance with the change in the detection time width that is thick if it is thick or thin if it is detected by the time width detection means 3.

次に第1図の動作を説明すると、バーコード読取部
1、2値化手段2及び時間幅検出手段3は第7図に示さ
れた従来のバーコード読取装置のものと同じであり、該
時間幅検出手段3から2値化された整形波形の波形幅を
時間幅に変換した検出時間幅、すなわちバーコード読取
部1で読み取られた黒バー、白スペースの時間幅が交互
に出力されてくる。今、例えば黒バーについて説明する
と、該時間幅検出手段3から出力される黒バーの検出時
間幅は、細太判定手段4に入力し該細太判定手段4で、
次に説明する様にして判定基準時間幅作成手段7で作成
された黒バーの判定基準時間幅と比較され、その細太が
判定される。そして該判定結果が解析手段5に送られ解
読のデータとして保持される。
Next, the operation of FIG. 1 will be described. The bar code reading section 1, the binarizing means 2 and the time width detecting means 3 are the same as those of the conventional bar code reading apparatus shown in FIG. The time width detecting means 3 outputs the detection time width obtained by converting the waveform width of the binarized shaped waveform into the time width, that is, the time width of the black bar and the white space read by the bar code reading unit 1 is alternately output. come. Now, for example, a black bar will be described. The detection time width of the black bar output from the time width detection means 3 is input to the thin weight determination means 4 and the thin weight determination means 4
As described below, it is compared with the determination reference time width of the black bar created by the determination reference time width creating means 7, and the thinness thereof is determined. Then, the judgment result is sent to the analysis means 5 and held as decoding data.

一方、上記時間幅検出手段3から出力される黒バーの
検出時間幅は、同時に判定基準時間幅補正手段6に入力
し、細太判定手段4で判定された細又は太の情報を基に
して読み出される1つ前の対応した細又は太の検出時間
幅と比較される。この比較から両者間の時間幅の差が求
められ、該時間幅の差に或る一定の係数を掛けて得られ
た値が補正値として判定基準時間幅補正手段6から判定
基準時間幅作成手段7へ向けて出力される。判定基準時
間幅作成手段7では判定基準時間幅補正手段6から入力
されてくる上記補正値と前の判定基準時間幅とを加算
し、新たな判定基準時間幅を作成する。この新たに作成
された判定基準時間幅は細太判定手段4へ送られ、時間
幅検出手段3から入力される次の黒バーの検出時間幅に
対する細太判定の基準となる。
On the other hand, the black bar detection time width output from the time width detection means 3 is simultaneously input to the judgment reference time width correction means 6 and based on the thin or thick information judged by the thin judgment means 4. It is compared with the immediately preceding corresponding thin or thick detection time width. From this comparison, the difference in the time width between the two is obtained, and the value obtained by multiplying the difference in the time width by a certain coefficient is used as the correction value from the judgment reference time width correcting means 6 to the judgment reference time width creating means. It is output to 7. The judgment reference time width creating means 7 adds the correction value input from the judgment reference time width correcting means 6 and the previous judgment reference time width to create a new judgment reference time width. This newly created determination reference time width is sent to the thin weight determination means 4 and serves as a reference for the thin weight determination for the detection time width of the next black bar input from the time width detection means 3.

以上は黒バーについて、判定基準時間幅補正手段6で
の補正値、及び判定基準時間幅作成手段7での判定基準
時間幅の作成を説明したが、白スペースについても全く
同様にしてその補正値及び判定基準時間幅の作成がなさ
れ、従って新たに作成される判定基準時間幅を基準にし
て細太判定手段4で白スペースの細太の判定が行われ
る。
The above has described the correction value by the judgment reference time width correction unit 6 and the creation of the judgment reference time width by the judgment reference time width creation unit 7 for the black bar. Then, the judgment reference time width is created. Therefore, the thin judgment means 4 judges the thinness of the white space on the basis of the newly created judgment reference time width.

この様にして細太判定の基準となる判定基準時間幅
が、バーコード読取部1で読み取られる読取波形に応
じ、すなわち時間幅検出手段3から出力される検出時間
幅に応じ可変するので、第8図ないし第10図に示されて
いる如くバーコード読取部1で読み取られる読取波形が
拡大傾向にあるときには、判定基準時間幅が長くなり、
また逆に読取波形が縮小傾向にあるときには、判定基準
時間幅が短くなって、バーコードが正しく読み取られ
る。
In this way, the judgment reference time width serving as the reference for the thin and thick judgment is changed according to the reading waveform read by the barcode reading unit 1, that is, according to the detection time width output from the time width detecting means 3. As shown in FIGS. 8 to 10, when the reading waveform read by the barcode reading unit 1 tends to expand, the judgment reference time width becomes longer,
On the contrary, when the read waveform tends to shrink, the judgment reference time width becomes short and the bar code is read correctly.

第2図は本発明に係るバーコード読取装置の一実施例
構成を示しており、1は第7図のものに対応している。
8は2値化回路、9は発振器、10はカウンタ、11はメモ
リ、12は黒バー細太検出回路、13は白スペース細太検出
回路、14はレジスタ、15は解読器、16は減算器、17は掛
算器、18は累算器、19は比較器、20は減算器、21は掛算
器、22は累算器、23は比較器である。
FIG. 2 shows the construction of an embodiment of the bar code reading apparatus according to the present invention, and 1 corresponds to that of FIG.
8 is a binarization circuit, 9 is an oscillator, 10 is a counter, 11 is a memory, 12 is a black bar thin detection circuit, 13 is a white space thin detection circuit, 14 is a register, 15 is a decoder, 16 is a subtractor , 17 is a multiplier, 18 is an accumulator, 19 is a comparator, 20 is a subtractor, 21 is a multiplier, 22 is an accumulator, and 23 is a comparator.

バーコードが印刷されたバーカードがバーコード読取
装置のバーコード読取部1に送られてくると、該バーコ
ード読取部1により該バーコードが走査され読み取られ
る。バーコード読取部1により読み取られた該バーコー
ドの細太黒バーと細太白スペースとの組合せに係る明暗
の光信号は、読取波形としての電気信号に変換され、2
値化回路8へ送出される。2値化回路8では電気信号に
変換された上記読取波形を基に所定のスライスレベルL
で黒白の2値化と共に波形整形を行なう。この2値化さ
れた黒白の整形波形をゲートにしてカウンタ10で発振器
9から発振パルスをカウントする。カウンタ10でカウン
トされるカウント値は、バーコード読取部1で読み取ら
れた読取波形の黒白についての時間幅を示している。
今、カウンタ10が黒バーの波形についての時間幅をカウ
ントしたものとしたとき、該カウンタ10のカウント値が
メモリ11に記憶されると共に、黒バー細太検出回路12の
減算器16に入力される。該メモリ11に記憶されたこのカ
ウント値は直ちに該メモリ11から読み出され、比較器19
に転送されて、累算器18から既に入力されている細太の
判定基準となる判定基準時間幅の値と比較される。カウ
ンタ10からのカウント値と該判定基準時間幅の値との大
小により黒バーの細太が判定され、その判定結果がレジ
スタ14に記憶される。又この判定結果がメモリ11に送ら
れ、該メモリ11から1つ前のこの判定結果に対応した黒
バーの波形についてのカウント値が読み出される。すな
わち、レジスタ14に記憶されたこの判定結果が、例えば
細であったとき、今判定がなされた細黒バーの1つ前の
細黒バーのカウント値がメモリ11から読み出される。メ
モリ11から読み出されたこの対応波形の1つ前のカウン
ト値は、減算器16へ送られ、該減算器16に既に入力され
ている上記カウンタ10からのカウント値との間でその差
が求められる。該減算器16で求められた両者間の差の値
は、掛算器17で所定の係数が掛けられ、補正値として該
掛算器17から出力される。この補正値は累算器18に入力
され、細太の判定基準となっていた判定基準時間幅の値
と加算され、カウンタ10から出力される次の黒バーのカ
ウント値に対する新判定基準時間幅の値となる。すなわ
ち累算器18に新判定基準時間幅の基準値が作成される。
When a barcode printed with a barcode is sent to the barcode reading unit 1 of the barcode reading device, the barcode is scanned and read by the barcode reading unit 1. A light / dark optical signal related to the combination of the thin black bar and the thin white space of the barcode read by the barcode reading unit 1 is converted into an electric signal as a read waveform, and 2
It is sent to the digitization circuit 8. The binarization circuit 8 uses a predetermined slice level L based on the read waveform converted into an electric signal.
The black and white binarization and waveform shaping are performed. The counter 10 counts oscillation pulses from the oscillator 9 using the binarized black and white shaped waveform as a gate. The count value counted by the counter 10 indicates the time width for the black and white of the read waveform read by the barcode reading unit 1.
Now, assuming that the counter 10 counts the time width of the waveform of the black bar, the count value of the counter 10 is stored in the memory 11 and is also input to the subtracter 16 of the black bar thin detection circuit 12. It This count value stored in the memory 11 is immediately read out from the memory 11 and the comparator 19
And is compared with the value of the judgment reference time width which has already been input from the accumulator 18 and serves as the judgment reference for the thin weight. The thinness of the black bar is determined based on the magnitude of the count value from the counter 10 and the value of the determination reference time width, and the determination result is stored in the register 14. Further, this determination result is sent to the memory 11, and the count value for the waveform of the black bar corresponding to the previous determination result is read from the memory 11. That is, when the determination result stored in the register 14 is, for example, fine, the count value of the thin black bar immediately before the currently determined thin black bar is read from the memory 11. The previous count value of the corresponding waveform read from the memory 11 is sent to the subtracter 16 and its difference from the count value from the counter 10 already input to the subtracter 16 is subtracted. Desired. The value of the difference between the two obtained by the subtracter 16 is multiplied by a predetermined coefficient in the multiplier 17, and output from the multiplier 17 as a correction value. This correction value is input to the accumulator 18, is added to the value of the judgment reference time width used as the thin judgment reference, and is a new judgment reference time width for the next black bar count value output from the counter 10. Becomes the value of. That is, the reference value of the new determination reference time width is created in the accumulator 18.

次にカウンタ10からは白スペースの波形についてのカ
ウント値が出力されるので、該カウント値はメモリ11に
記憶されると共に、白スペース細太検出回路13に入力す
る。該白スペース細太検出回路13では、前述の黒バー細
太検出回路12の動作と全く同様のことが行われ、レジス
タ14にその判定された結果が記憶されると共に、累算器
22には、カウンタ10から出力される次の白スペースのカ
ウント値に対する新判定基準時間幅の基準値が作成され
る。
Next, since the counter 10 outputs a count value for the waveform of the white space, the count value is stored in the memory 11 and also input to the white space thin / thick detection circuit 13. The white space thin line detection circuit 13 performs exactly the same operation as the black bar thin line detection circuit 12 described above, and the judgment result is stored in the register 14 and the accumulator is also stored.
In 22, a reference value of a new determination reference time width for the count value of the next white space output from the counter 10 is created.

この様にして黒バー細太検出回路12と白スペース細太
検出回路13とが、交互にカウンタ10から出力されるカウ
ント値を基に黒バー、白スペースの細太を検出し、その
結果がレジスタ14に記憶される。解読器15はレジスタ14
に記憶された黒バー、白スペースの細太の組合せから、
例えばバーカードにしわや折れがあっても、またバーカ
ードの送りむらが生じても、正しく解読することができ
る。
In this way, the black bar thin line detection circuit 12 and the white space thin line detection circuit 13 alternately detect the thin lines of the black bar and white space based on the count value output from the counter 10, and the result is It is stored in the register 14. Decoder 15 is register 14
From the combination of the black bar and the thin space of the white space,
For example, even if the bar card has wrinkles or folds, or if the bar card has uneven feeding, it can be correctly decoded.

なおカウンタ10から出力される最初の黒バー及び白ス
ペースの各カウント値に対しては、黒バー細太検出回路
12及び白スペース細太検出回路13の各累算器18,22に設
定される初期値が判定基準時間幅の基準値となることは
言うまでもない。これらの初期値、及び掛算器17,21で
用いられる係数は、バーカードの搬送速度を勘案し、実
験結果に基づいて定められる。
For each count value of the first black bar and white space output from the counter 10, the black bar thin and thick detection circuit
It goes without saying that the initial values set in the accumulators 18 and 22 of 12 and the thin white space detection circuit 13 become the reference value of the determination reference time width. These initial values and the coefficients used in the multipliers 17 and 21 are determined based on the experimental results in consideration of the bar card transportation speed.

また、バーコード読取部1とメモリ11以外はマイクロ
プセッサによるプログラムで処理することができ、該マ
イクロプロセッサの動作が速いときには、カウンタ10の
出力するカウント値をメモリ11に記憶すると共に直接各
比較器19,23へ入力させ、リアルタイム処理を行わせる
ようにしてもよい。
Further, except for the bar code reading unit 1 and the memory 11, it can be processed by a program by a microprocessor, and when the operation of the microprocessor is fast, the count value output from the counter 10 is stored in the memory 11 and the comparators are directly connected. You may make it input to 19,23 and perform real-time processing.

第6図(I),(II)はバーカードにしわがあるとき
の黒バー、白スペースの判定基準時間幅の追従実験の一
例をそれぞれ示しており、同図(I)が黒バー、(II)
が白スペースのものである。黒バー細太検出回路12の累
算器18には同図(I)の点Aの値が初期値として設定さ
れ判定基準時間幅の最初の基準値となっている。同様に
白スペース細太検出回路13の累算器22には、同図(II)
の点Bの値が初期値として設定され判定基準時間幅の最
初の基準値となっている。また各掛算器17,21の掛算の
係数は1/2が用いられ、かつ掛算結果の小数点以下を切
捨てた値を補正値としている。
FIGS. 6 (I) and (II) show an example of the follow-up experiment of the judgment reference time width of the black bar and the white space when the bar card has wrinkles, and FIG. 6 (I) shows the black bar, (II). )
Is for white space. In the accumulator 18 of the black bar thin / thick detection circuit 12, the value of the point A in FIG. 9 (I) is set as an initial value and becomes the first reference value of the judgment reference time width. Similarly, the accumulator 22 of the white space thin detection circuit 13 has the same (II) in FIG.
The value of point B is set as an initial value and becomes the first reference value of the determination reference time width. Also, 1/2 is used as the multiplication coefficient of each of the multipliers 17 and 21, and the value obtained by rounding down the decimal point of the multiplication result is used as the correction value.

第6図(I),(II)から黒バー、白スペースの各細
のカウント値C、各太のカウント値Dに応じて各判定基
準時間幅の値X,Yが変化していることが判る。同図にお
いて黒丸印がその時点で読み取られた細又は太を表わ
し、三角印のA,Bが初期値を表わしている。
It can be seen from FIGS. 6 (I) and (II) that the values X and Y of the respective judgment reference time widths are changed in accordance with the count value C of each thin black bar and the count value D of each thick space. I understand. In the figure, the black circle marks represent the thin or thick read at that time, and the triangular marks A and B represent the initial values.

〔発明の効果〕〔The invention's effect〕

以上説明した如く、本発明によれば、バーカードにし
わや折れ等があるとき、或いはバーカードの送りむらが
生じたときには、判定基準時間幅が変わるので、安定し
たバーコード読取りの復調が可能となり、バーコード読
取措置の誤読が減少する。
As described above, according to the present invention, the judgment reference time width changes when the bar card has wrinkles, folds or the like, or when the bar card is unevenly fed, so that stable bar code reading demodulation is possible. Therefore, the misreading of the barcode reading measure is reduced.

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

第1図は本発明に係るバーコード読取装置の基本構成
図、第2図は本発明に係るバーコード読取装置の一実施
例構成、第3図はバーカードにしわがあるときの判定基
準時間幅が検出時間幅に追従する一例の説明図、第4図
はバーカードの送りが遅くなるときの判定基準時間幅の
可変説明図、第5図はバーカードの送りが速くなるとき
の判定基準時間幅の可変説明図、第6図(I),(II)
はバーカードにしわがあるときの黒バー、白スペースの
判定基準時間幅の追従実験の一例、第7図は従来のバー
コード読取装置の構成図、第8図はバーカードにしわが
あるときの従来の誤読発生説明図、第9図はバーカード
の送りむらが生じ、バーカードの送りが遅くなるときの
従来の誤読発生説明図、第10図はバーカードの送りむら
が生じ、バーカードの送りが速くなるときの従来の誤読
発生説明図である。 図中、1はバーコード読取部、2は2値化手段、3は時
間幅検出手段、4は細太判定手段、5は解析手段、6は
判定基準時間幅補正手段、7は判定基準時間幅作成手
段、8は2値化回路、9は発振器、10はカウンタ、11は
メモリ、12は黒バー細太検出回路、13は白スペース細太
検出回路、14はレジスタ、15は解読器、16は減算器、17
は掛算器、18は累算器、19は比較器、20は減算器、21は
掛算器、22は累算器、23は比較器である。
FIG. 1 is a basic configuration diagram of a bar code reading device according to the present invention, FIG. 2 is an example configuration of a bar code reading device according to the present invention, and FIG. 3 is a judgment reference time width when a bar card has wrinkles. Shows an example of tracking the detection time width, FIG. 4 is a variable explanatory view of the judgment reference time width when the bar card feeding is slow, and FIG. 5 is a judgment reference time when the bar card feeding is fast. Width variable explanatory diagram, FIG. 6 (I), (II)
Is an example of an experiment for following the judgment reference time width of a black bar and a white space when the bar card has wrinkles. Fig. 7 is a block diagram of a conventional bar code reader, and Fig. 8 is a conventional method when the bar card has wrinkles. Fig. 9 is an explanatory view of the occurrence of misreading of a bar card, and Fig. 9 is an explanatory diagram of a conventional misreading when the bar card is fed slowly. FIG. 8 is a diagram for explaining a conventional erroneous reading occurrence when the speed becomes faster. In the figure, 1 is a bar code reading unit, 2 is a binarization unit, 3 is a time width detection unit, 4 is a thinness judgment unit, 5 is an analysis unit, 6 is a judgment reference time width correction unit, and 7 is a judgment reference time. Width creating means, 8 binarization circuit, 9 oscillator, 10 counter, 11 memory, 12 black bar thin detection circuit, 13 white space thin detection circuit, 14 register, 15 decoder, 16 is a subtractor, 17
Is a multiplier, 18 is an accumulator, 19 is a comparator, 20 is a subtractor, 21 is a multiplier, 22 is an accumulator, and 23 is a comparator.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】バーコードを読み取るバーコード読取部
(1)と、 該バーコード読取部で読み取られた出力を黒白の整形波
形に2値化する2値化手段(2)と、 該2値化手段で2値化された波形からその時間幅を検出
する時間幅検出手段(3)と、 該時間幅検出手段で検出された時間幅と細太を判定する
基準となる判定基準時間幅とからその細太を判定する細
太判定手段(4)と、 前記時間幅検出手段から得られる細又は太の検出時間幅
とその1つ前の対応した細又は太の時間幅との差に所定
の係数を掛けて、前記判定基準時間幅の補正値を算出す
る判定基準時間幅補正手段(6)と、 該判定基準時間幅補正手段で算出された補正値を前記判
定基準時間幅に加算して、前記細太判定手段で細太の判
定基準となる新たな判定基準時間幅を作成する判定基準
時間幅作成手段(7)と、 前記細太判定手段で判定された黒白の細太コードからそ
のバーコードを解読する解析手段(5)とを備えたこと
を特徴とするバーコード読取装置。
1. A bar code reading unit (1) for reading a bar code, a binarizing unit (2) for binarizing an output read by the bar code reading unit into a black and white shaped waveform, and the binary value. A time width detecting means (3) for detecting the time width from the binarized waveform by the digitizing means, and a time width detected by the time width detecting means and a judgment reference time width which is a reference for judging thinness. A thinness determining means (4) for determining the thinness, and a predetermined difference between the detection time width of the thinness or the thickness obtained from the time width detecting means and the corresponding time width of the thinness or the thickness immediately before that. And a correction value calculated by the judgment reference time width correction means (6) for calculating a correction value for the judgment reference time width and adding the correction value calculated by the judgment reference time width correction means to the judgment reference time width. Then, the thinness determination means creates a new determination reference time width as a thinness determination reference. A bar code reading device comprising: a judgment reference time width creating means (7); and an analyzing means (5) for decoding the bar code from the black and white thin code judged by the thin judgment means. apparatus.
JP1003739A 1989-01-12 1989-01-12 Barcode reader Expired - Lifetime JP2689158B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1003739A JP2689158B2 (en) 1989-01-12 1989-01-12 Barcode reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1003739A JP2689158B2 (en) 1989-01-12 1989-01-12 Barcode reader

Publications (2)

Publication Number Publication Date
JPH02184987A JPH02184987A (en) 1990-07-19
JP2689158B2 true JP2689158B2 (en) 1997-12-10

Family

ID=11565591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1003739A Expired - Lifetime JP2689158B2 (en) 1989-01-12 1989-01-12 Barcode reader

Country Status (1)

Country Link
JP (1) JP2689158B2 (en)

Also Published As

Publication number Publication date
JPH02184987A (en) 1990-07-19

Similar Documents

Publication Publication Date Title
JP3004017B2 (en) Barcode decryption method
US5036182A (en) Bar code reading and decoding apparatus
US5537431A (en) Method and apparatus for bar code reading and decoding
US5077463A (en) Bar code reading apparatus
US5036183A (en) Code reading device
JPH0354388B2 (en)
JP2740418B2 (en) Barcode reading demodulation method
US6357660B1 (en) Bar code reading apparatus and a method for the same
JP2689158B2 (en) Barcode reader
US5637853A (en) Reading indicia by analysis of different light reflecting portions based on signal-to-noise ratios
JP2718442B2 (en) Barcode demodulation method and apparatus
JP2729168B2 (en) Barcode, barcode reader, and method of reading the same
JP3324123B2 (en) Card reader
US6305606B1 (en) Process for scanning a bar code
US4061900A (en) Indicia validation system
CN101208706B (en) Method and system for decoding a barcode
US20180181781A1 (en) Virtual wave decoder for blurred images and subpixel performance
JPH0344353B2 (en)
JP2766768B2 (en) Barcode decoder decoding method
US7051937B2 (en) System and method for fast binarization of bar codes in the presence of noise
US6651887B1 (en) Reading and interpreting barcodes using low resolution line scan cameras
JP2677805B2 (en) Code reader
JP2576370B2 (en) ID mark reading device
JPS59201174A (en) Signal processing method for bar code reader
JP2677806B2 (en) Code reader