JP3021150B2 - Barcode reading synchronization circuit - Google Patents

Barcode reading synchronization circuit

Info

Publication number
JP3021150B2
JP3021150B2 JP3338020A JP33802091A JP3021150B2 JP 3021150 B2 JP3021150 B2 JP 3021150B2 JP 3338020 A JP3338020 A JP 3338020A JP 33802091 A JP33802091 A JP 33802091A JP 3021150 B2 JP3021150 B2 JP 3021150B2
Authority
JP
Japan
Prior art keywords
character
circuit
image data
bar code
delay circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3338020A
Other languages
Japanese (ja)
Other versions
JPH05151376A (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.)
Tohoku Ricoh Co Ltd
Original Assignee
Tohoku Ricoh 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 Tohoku Ricoh Co Ltd filed Critical Tohoku Ricoh Co Ltd
Priority to JP3338020A priority Critical patent/JP3021150B2/en
Publication of JPH05151376A publication Critical patent/JPH05151376A/en
Application granted granted Critical
Publication of JP3021150B2 publication Critical patent/JP3021150B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related 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 bar code reading synchronization circuit which is most suitable for reading a bar code label, particularly for reading a curved bar code label.

【0002】[0002]

【従来の技術】近年、ほとんどの流通商品は、バーコー
ドを用いた在庫管理が行われている。このバーコードは
複数本の細線と太線の組み合わせからなり、これを商品
の袋などに直接に印刷し、或いは、一旦ラベルなどに印
刷して商品に貼付される。バーコードは、一般に読取光
に赤外線を用いたバーコードスキャナを用いて読み取ら
れる。
2. Description of the Related Art In recent years, inventory management using barcodes has been carried out for most distribution products. This barcode is composed of a combination of a plurality of thin lines and thick lines, and is printed directly on a product bag or the like, or is temporarily printed on a label or the like and is affixed to the product. The barcode is generally read using a barcode scanner using infrared light as reading light.

【0003】スーパーマーケットなどの小売店で使われ
るレジスタなどでは、一般に据置型のバーコードリーダ
が用いられるが、顧客との間で金銭をやり取りすること
から、正確な読み取りが要求される。一方、商品によっ
ては、バーコードの印刷面あるいは貼付面が湾曲してい
る場合が多く、これをデコーダで正確に読み取ることが
できるか否かで、その性能が決定される。この問題を解
決する手段として、例えば、以前に読み取った近傍のバ
ーコード数本から1モジュールを求める方法が提案され
ている(特願平3−16243号)。
In a register used in a retail store such as a supermarket, a stationary bar code reader is generally used. However, since money is exchanged with customers, accurate reading is required. On the other hand, depending on the product, the printing surface or the sticking surface of the barcode is often curved, and its performance is determined by whether or not it can be accurately read by a decoder. As a means for solving this problem, for example, a method has been proposed in which one module is obtained from several bar codes in the vicinity that have been read before (Japanese Patent Application No. Hei 3-16243).

【0004】[0004]

【発明が解決しようとする課題】しかし、上記した従来
技術にあっては、以前に読み取ったデータを基にしてい
るため、マージンからスタートバー(ガードバー)に入
る最初の読み取り領域で読み誤る可能性が高い。
However, in the above-mentioned prior art, since the previously read data is used as a basis, there is a possibility that a read error may occur in the first read area from the margin to the start bar (guard bar). Is high.

【0005】また、4値レベルのバーコード(WPC、
CODE93、CODE128)の場合、以前に読み取
ったデータから1モジュールを求めるとき、4種類の太
さの黒バーや白バーの幅から算出するため、その回路構
成が複雑になり、高速デコーダには不適当である。
[0005] In addition, four-level bar codes (WPC,
In the case of CODE93 and CODE128), when one module is obtained from previously read data, the calculation is made from the widths of black bars and white bars of four different thicknesses. Appropriate.

【0006】本発明の目的は、4値レベルのバーコード
の記された湾曲したラベルに対しても高精度の読み取り
ができるようにしたバーコード読取用同期回路を提供す
ることにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a bar code reading synchronization circuit capable of reading a curved label on which a 4-level bar code is written with high accuracy.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、バーコードスキャナから得られるバーコ
ードイメージデータからキャラクタ間隔を検出すると共
に1キャラクタ幅を基準クロックでカウントするキャラ
クタ間隔計数回路と、該回路によってカウントした計数
値をキャラクタビット数で除算して1モジュール幅デー
タを得る除算回路と、該除算回路から出力される1モジ
ュール幅データを遅延させる1モジュール幅データ遅延
回路と、前記バーコードイメージデータを一時的に遅延
させるイメージデータ遅延回路と、該イメージデータ遅
延回路の出力、基準クロックの2倍の周波数のクロック
及び前記1モジュール幅データ遅延回路の出力の各々に
基づいて読み取り用クロックを発生させる読取クロック
発生回路とを設けるようにしている。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a character interval counter for detecting a character interval from bar code image data obtained from a bar code scanner and counting one character width by a reference clock. A circuit, a division circuit that divides the count value counted by the circuit by the number of character bits to obtain one module width data, a one module width data delay circuit that delays one module width data output from the division circuit, An image data delay circuit for temporarily delaying the bar code image data, reading based on each of an output of the image data delay circuit, a clock having a frequency twice as high as a reference clock, and an output of the one-module width data delay circuit Read clock generation circuit for generating a clock for It is way.

【0008】[0008]

【作用】上記した手段によれば、バーコードイメージデ
ータからキャラクタ間隔を検出ならびに計数した値をキ
ャラクタビット数で除算して1モジュール幅データを
得、この1モジュール幅データ及び基準クロックの2倍
の周波数のクロックに基づいて読み取り用クロックを得
ることができる。この結果、キャラクタ単位にその各々
のキャラクタ幅に連動してキャラクタビットの読み取り
間隔が変動し、湾曲ラベルのバーコードが読み取れるた
め、読み取り精度の向上及び読み誤りの低減を図ること
ができる。
According to the above-described means, one module width data is obtained by dividing the value obtained by detecting and counting the character interval from the bar code image data by the number of character bits, and the one module width data and twice the reference clock are obtained. The reading clock can be obtained based on the clock of the frequency. As a result, the reading interval of the character bit varies in accordance with the width of each character in character units, and the bar code of the curved label can be read, so that the reading accuracy can be improved and the reading error can be reduced.

【0009】[0009]

【実施例】以下、本発明の実施例について図面を参照し
ながら説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は本発明によるバーコード読取用同期
回路の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a bar code reading synchronous circuit according to the present invention.

【0011】キャラクタ間隔を計数するキャラクタ間隔
計数回路1には、バーコードスキャナから出力されるイ
メージデータがシリアルに入力される。キャラクタ間隔
計数回路1には1/2分周回路2が接続され、倍クロッ
クを1/2に分周して基準クロックを生成する。キャラ
クタ間隔計数回路1には、そのパラレル出力を1/n
(ただし、nはキャラクタビット数)に除算する除算回
路3が接続され、この除算回路3に1モジュール幅デー
タを遅延させる1モジュール幅データ遅延回路4が接続
されている。また、イメージデータを遅延してキャラク
タビット数を出力するためにイメージデータ遅延回路5
が設けられている。1モジュール幅データ遅延回路4の
出力、倍クロック及びイメージデータ遅延回路5の出力
に基づいて読取クロックを発生するために、読取クロッ
ク発生回路6が設けられている。
Image data output from a bar code scanner is serially input to a character interval counting circuit 1 for counting character intervals. The character interval counting circuit 1 is connected to a 1/2 frequency dividing circuit 2 which divides the double clock by 1/2 to generate a reference clock. The parallel output of the character interval counting circuit 1 is 1 / n
(Where n is the number of character bits) is connected to a division circuit 3, to which a one-module-width data delay circuit 4 for delaying one-module-width data is connected. An image data delay circuit 5 for delaying the image data and outputting the number of character bits.
Is provided. A read clock generation circuit 6 is provided to generate a read clock based on the output of the one-module width data delay circuit 4, the double clock, and the output of the image data delay circuit 5.

【0012】次に、POS用バーコードWPCを読み取
る場合について説明する。ここでは、キャラクタビット
1ビット分の波形の長さを1モジュールとしている。
Next, a case where the POS bar code WPC is read will be described. Here, the length of one character bit waveform is one module.

【0013】バーコードスキャナからのイメージデータ
は、キャラクタ間隔計数回路1に入力されると共にイメ
ージデータ遅延回路5に入力される。キャラクタ間隔計
数回路1にあっては、入力データの立ち下がりエッジ
(黒バーから白バーへの変化点)からキャラクタ間隔の
幅を基準クロックでカウントし、その結果を2進数値と
して除算回路3に印加される。除算回路3は、入力され
た2進数値をキャラクタビット数で割ることにより、1
モジュール当たり(または1キャラクタビット当たり)
の幅データである2進数値が得られる。この2進数値は
次の1モジュール幅データ遅延回路4に送られ、一時的
に記憶される。
The image data from the bar code scanner is input to the character interval counting circuit 1 and to the image data delay circuit 5. In the character interval counting circuit 1, the width of the character interval is counted from the falling edge of the input data (the point of change from the black bar to the white bar) using the reference clock, and the result is sent to the division circuit 3 as a binary value. Applied. The division circuit 3 divides the input binary value by the number of character bits to obtain 1
Per module (or per character bit)
Is obtained. This binary value is sent to the next one-module width data delay circuit 4 and is temporarily stored.

【0014】一方、イメージデータ遅延回路5において
は、キャラクタ間隔計数回路1によって全キャラクタ幅
についてカウントし終えるまで、入力データを一時的に
記憶する。そして、全キャラクタのキャラクタ幅を求め
た後に記憶していたイメージデータが送出され、このイ
メージデータが読取クロック発生回路6に入力される。
読取クロック発生回路6では、イメージデータから全て
のエッジ信号を検出し、これをビット同期に用いる。ま
た、1モジュール幅データ遅延回路4に一時的に記憶さ
れた2進数値は、キャラクタ同期として用いられ、1キ
ャラクタ毎に読取クロック発生回路6に送られ、読取ク
ロック発生周期の基になる。なお、ビット同期によりイ
メージデータの各エッジと読取クロックの0位相(基準
となる片方のエッジ)とは常に一致するように調整され
る。
On the other hand, the image data delay circuit 5 temporarily stores the input data until the character interval counting circuit 1 finishes counting the entire character width. After the character widths of all the characters have been obtained, the stored image data is transmitted, and this image data is input to the read clock generation circuit 6.
The read clock generation circuit 6 detects all edge signals from the image data and uses them for bit synchronization. The binary value temporarily stored in the one-module width data delay circuit 4 is used for character synchronization, sent to the read clock generation circuit 6 for each character, and becomes the basis of the read clock generation cycle. It should be noted that the bit synchronization is adjusted so that each edge of the image data always coincides with the 0 phase (one reference edge) of the read clock.

【0015】上記した実施例によれば、具体的に以下の
効果が得られる。
According to the above-described embodiment, the following effects can be specifically obtained.

【0016】バーコードのイメージデータにおいて、
キャラクタ間隔を測り、その測った値をキャラクタビッ
ト数nで除算することにより、そのキャラクタにおいて
ジッタ成分が1/nになるため、精度の高いモジュール
幅データが算出できる。例えば、仮に1キャラクタが7
ビットで構成される場合、n=7となるため、イメージ
データのジッタの分布が1モジュールの±40%内であ
るとすると、これから算出される1モジュール幅データ
はその分布が±5.7%内に減少する。これにより、よ
り正確な読み取りクロックを発生できるため、イメージ
データからキャラクタビットへの変換(読み取り)は、
図5に示すように正しく行われる。この場合の読み取り
クロック周期の精度は次のようになる。
In the bar code image data,
By measuring the character interval and dividing the measured value by the character bit number n, the jitter component in the character becomes 1 / n, so that highly accurate module width data can be calculated. For example, if one character is 7
If the number of bits is n, then n = 7. Therefore, assuming that the jitter distribution of the image data is within ± 40% of one module, the distribution of one module width data calculated from this is ± 5.7%. Decreases within. As a result, since a more accurate reading clock can be generated, the conversion (reading) from the image data to the character bits is
This is done correctly as shown in FIG. The accuracy of the read clock cycle in this case is as follows.

【0017】最狭バーのみから求めた場合 :1±0.
4モジュール 1キャラクタ幅から求めた場合:1±0.057モジュ
ール キャラクタ間隔を測ることで、そのキャラクタ毎に対
応した1モジュール幅データを算出するため、バーコー
ドラベルが湾曲している場合でも湾曲の程度に応じた最
適な1モジュール幅データをキャラクタ単位で算出す
る。このため、読み取りクロックの周期をキャラクタ毎
に適宜可変することが可能になり、図2〜図4に示すよ
うに湾曲ラベルの読み取りが容易になる。
When calculated from only the narrowest bar: 1 ± 0.
4 modules When calculated from 1 character width: 1 ± 0.057 modules By measuring the character interval, 1 module width data corresponding to each character is calculated. Therefore, even if the barcode label is curved, Optimum one-module width data according to the degree is calculated for each character. For this reason, the period of the read clock can be appropriately changed for each character, and the reading of the curved label becomes easy as shown in FIGS.

【0018】図2は平面ラベルを読み取った例を示すタ
イミングチャートである。また、図3及び図4は2種の
湾曲ラベルを読み取った例を示すタイミングチャートで
ある。図2について説明すると、イメージデータのガー
ドバーの検出タイミングでキャラクタ間隔パルスが発生
し、同時にキャラクタ間隔計数回路1によりカウントが
開始される。1つのキャラクタ幅のカウントが終了する
と、その終了時点に同期して出力されるキャラクタ同期
信号を開始タイミングとして、倍クロックにより読取ク
ロック発生回路6から読取クロックが出力される。図3
及び図4の動作も同様であるので、ここでは重複する説
明を省略する。
FIG. 2 is a timing chart showing an example of reading a flat label. FIGS. 3 and 4 are timing charts showing examples in which two types of curved labels are read. Referring to FIG. 2, a character interval pulse is generated at the detection timing of the guard bar of the image data, and counting is started by the character interval counting circuit 1 at the same time. When the counting of one character width is completed, the read clock is output from the read clock generation circuit 6 by the double clock with the character synchronization signal output in synchronization with the end point as a start timing. FIG.
4 are the same as those in FIG.

【0019】なお、以上の説明ではPOS用バーコード
であるWPCへの適用を例に説明したが、これに限定さ
れるものではなく、キャラクタ幅が一定なNRZ符号タ
イプのバーコードすべてに適用可能である。例えば、F
A(ファクトリー・オートメーション)用4値レベルバ
ーコードのCODE93,128の場合、図6に示すよ
うになる。
In the above description, application to WPC, which is a bar code for POS, has been described as an example. However, the present invention is not limited to this, and is applicable to all NRZ code type bar codes having a constant character width. It is. For example, F
FIG. 6 shows the case of CODE 93, 128 of a four-level bar code for A (factory automation).

【0020】[0020]

【発明の効果】以上説明した通り、この発明は、バーコ
ードスキャナから得られるバーコードイメージデータか
らキャラクタ間隔を検出すると共に1キャラクタ幅を基
準クロックでカウントするキャラクタ間隔計数回路と、
該手段によってカウントした計数値をキャラクタビット
数で除算して1モジュール幅データを得る除算回路と、
該除算回路から出力される1モジュール幅データを遅延
させる1モジュール幅データ遅延回路と、前記バーコー
ドイメージデータを一時的に遅延させるイメージデータ
遅延回路と、該イメージデータ遅延回路の出力、基準ク
ロックの2倍の周波数のクロック及び前記1モジュール
幅データ遅延回路の出力の各々に基づいて読み取り用ク
ロックを発生させる読取クロック発生回路とを設けるよ
うにしたので、湾曲ラベルのバーコードの読み取りの精
度の向上ならびに読み誤りの低減を図ることができる。
As described above, the present invention provides a character interval counting circuit for detecting a character interval from bar code image data obtained from a bar code scanner and counting one character width by a reference clock;
A division circuit for dividing the count value counted by the means by the number of character bits to obtain one module width data;
A one-module width data delay circuit for delaying one-module width data output from the division circuit; an image data delay circuit for temporarily delaying the bar code image data; an output of the image data delay circuit; Since a read clock generating circuit for generating a read clock based on each of a clock having a double frequency and an output of the one-module width data delay circuit is provided, the accuracy of reading a bar code on a curved label is improved. In addition, reading errors can be reduced.

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

【図1】本発明のバーコード読取用同期回路の一実施例
を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a barcode reading synchronization circuit according to the present invention.

【図2】平面ラベルを読み取った例を示すタイミングチ
ャートである。
FIG. 2 is a timing chart showing an example of reading a flat label.

【図3】図3は湾曲ラベルを読み取った例を示すタイミ
ングチャートである。
FIG. 3 is a timing chart showing an example of reading a curved label.

【図4】図4は他の湾曲ラベルを読み取った例を示すタ
イミングチャートである。
FIG. 4 is a timing chart showing an example in which another curved label is read.

【図5】1キャラクタが7ビットで構成される場合のイ
メージデータのジッタの発生状況及びイメージデータか
らキャラクタビットへの変換を示す説明図である。
FIG. 5 is an explanatory diagram showing a state of occurrence of jitter in image data and a conversion from image data to character bits when one character is composed of 7 bits.

【図6】FA用4値レベルバーコードのCODE93,
128の場合の変換を示す説明図である。
FIG. 6 shows CODE93, a four-level barcode for FA.
It is explanatory drawing which shows conversion in case of 128.

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

1 キャラクタ間隔計数回路 2 1/2分周回路 3 除算回路 4 1モジュール幅データ遅延回路 5 イメージデータ遅延回路 6 読取クロック発生回路 DESCRIPTION OF SYMBOLS 1 Character interval counting circuit 2 1/2 frequency dividing circuit 3 Dividing circuit 4 1 Module width data delay circuit 5 Image data delay circuit 6 Read clock generation circuit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06K 7/016 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) G06K 7/016

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 バーコードスキャナから得られるバーコ
ードイメージデータからキャラクタ間隔を検出すると共
に1キャラクタ幅を基準クロックでカウントするキャラ
クタ間隔計数回路と、該回路によってカウントした計数
値をキャラクタビット数で除算して1モジュール幅デー
タを得る除算回路と、該除算回路から出力される1モジ
ュール幅データを遅延させる1モジュール幅データ遅延
回路と、前記バーコードイメージデータを一時的に遅延
させるイメージデータ遅延回路と、該イメージデータ遅
延回路の出力、基準クロックの2倍の周波数のクロック
及び前記1モジュール幅データ遅延回路の出力の各々に
基づいて読み取り用クロックを発生させる読取クロック
発生回路とを具備することを特徴とするバーコード読取
用同期回路。
1. A character interval counting circuit for detecting a character interval from bar code image data obtained from a bar code scanner and counting one character width by a reference clock, and dividing a count value counted by the circuit by the number of character bits. And a 1-module width data delay circuit for delaying 1-module width data output from the division circuit, and an image data delay circuit for temporarily delaying the barcode image data. A read clock generation circuit for generating a read clock based on each of an output of the image data delay circuit, a clock having a frequency twice as high as a reference clock, and an output of the one-module width data delay circuit. Bar code reading synchronous circuit.
JP3338020A 1991-11-28 1991-11-28 Barcode reading synchronization circuit Expired - Fee Related JP3021150B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3338020A JP3021150B2 (en) 1991-11-28 1991-11-28 Barcode reading synchronization circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3338020A JP3021150B2 (en) 1991-11-28 1991-11-28 Barcode reading synchronization circuit

Publications (2)

Publication Number Publication Date
JPH05151376A JPH05151376A (en) 1993-06-18
JP3021150B2 true JP3021150B2 (en) 2000-03-15

Family

ID=18314187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3338020A Expired - Fee Related JP3021150B2 (en) 1991-11-28 1991-11-28 Barcode reading synchronization circuit

Country Status (1)

Country Link
JP (1) JP3021150B2 (en)

Also Published As

Publication number Publication date
JPH05151376A (en) 1993-06-18

Similar Documents

Publication Publication Date Title
US3854036A (en) Tag reader to digital processor interface circuit
US4414468A (en) Systematic error correction in bar code scanner
US3891831A (en) Code recognition apparatus
US4272675A (en) Symbol processing system
US5194722A (en) Enhanced UPC bar code decoding system reconstructing complete bar code signals from partial bar code scans
US3916154A (en) Method and circuitry for decoding a high density bar code
US4095096A (en) Code discriminator
US4533825A (en) Bar code recognition apparatus
US3737632A (en) Rate adaptive nonsynchronous demodulator apparatus for biphase binary signals
EP0028242B1 (en) Code sensing system
US4004131A (en) Article carrying coded indicia
US4253018A (en) Symbol decoding system
JP3021150B2 (en) Barcode reading synchronization circuit
US3959625A (en) Coded information-reading device
US4079240A (en) Asynchronous to synchronous converter
US4074852A (en) Symbol decoding method and means
JP2728817B2 (en) Barcode reading decoder
JP3324123B2 (en) Card reader
US4061900A (en) Indicia validation system
US3947662A (en) Distorted two frequency coded data interpreting method and apparatus
US5227616A (en) Barcode information recognizing and processing method
WO1989006018A1 (en) Method and apparatus for reading characters
JPH0344353B2 (en)
US20030122654A1 (en) Process for detecting simultaneous transmissions from electronic tags
US3959626A (en) Distorted two frequency coded data interpreting method and apparatus

Legal Events

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