JPH01116776A - Optical reader - Google Patents

Optical reader

Info

Publication number
JPH01116776A
JPH01116776A JP62275036A JP27503687A JPH01116776A JP H01116776 A JPH01116776 A JP H01116776A JP 62275036 A JP62275036 A JP 62275036A JP 27503687 A JP27503687 A JP 27503687A JP H01116776 A JPH01116776 A JP H01116776A
Authority
JP
Japan
Prior art keywords
circuit
count value
counting
signal
edge
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.)
Pending
Application number
JP62275036A
Other languages
Japanese (ja)
Inventor
Kazuo Hasegawa
和男 長谷川
Hiroaki Sasaki
弘明 佐々木
Koji Nakase
中瀬 康二
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.)
Alps Alpine Co Ltd
Original Assignee
Alps 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP62275036A priority Critical patent/JPH01116776A/en
Priority to US07/208,182 priority patent/US4859840A/en
Publication of JPH01116776A publication Critical patent/JPH01116776A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decide a start even when a start margin is short by deciding the start according to the numerical relation between a counted value whose count is started by a counting means and a counted value counted between edges according to the width of an immediately preceding code. CONSTITUTION:According to the numerical relation between the counted value whose count is started by the counting means 6 and the counted value counted between the edges according to the width of the immediately preceding code, the start is decided and if it is improper, a reset signal is applied to a decoding means. Namely, if the counted value according to the improper code is read to the decoding means, it is immediately reset, the counted value is newly reread and the reading probability of information read to the decoding means is high. A decision whether the start is proper or improper is not influenced by scanning speed for reading the code by a detecting means but the decision is executed in a time according to the scanning speed. Thereby, a narrow space as the start margin is satisfactory.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、媒体上に表示された符号(例えばバー・コー
ド表示)を光電変換器で走査して読み取り、その符号で
示される情報を計算機で処理可能な信号に解読して出力
する光学読取装置に係わり、特に、読取解読確率を改善
した光学読取装置に関するものである。
Detailed Description of the Invention (Industrial Field of Application) The present invention scans and reads a code displayed on a medium (for example, a bar code display) with a photoelectric converter, and converts the information represented by the code into a computer. The present invention relates to an optical reading device that decodes and outputs a signal that can be processed by a computer, and particularly relates to an optical reading device that improves the probability of reading and decoding.

(従来の技術) 光学読取装置は、帳票や物品表面等の媒体上に一種々の
コード体系で光学的に表示された符号を光電変換し、マ
イクロプロセッサ等の計算器で処理可能な信号に解読し
て出力するものである。表示される符号には、バー・コ
ード、カルラコード等の専用表示符号や一般文字があり
、これらを解読するため表示方法に一定の基準を持たせ
である。
(Prior art) Optical reading devices photoelectrically convert codes optically displayed in one code system on a medium such as a form or the surface of an article, and decode it into a signal that can be processed by a computer such as a microprocessor. and output it. The displayed codes include special display codes such as bar codes and Carla codes, as well as general characters, and in order to decipher these codes, certain standards must be set for the display method.

この基準には、表示間隔及び表示範囲に関する規定があ
る。例えば、バー・コードでは日本工業規格[JIS 
 X  0502]  (昭和62年4月30日第1刷
発行)第3〜9頁に記載されているものや、Ameri
can National 5tandard [A 
N S I MHIo、8M−1983]の第8頁等に
規定され′  ているものがある。これらの表示は、光
学読取装置の中でもペン型のみならずセルフ・スキャニ
ング・タイプのハンド・ワンド・モデルや据置型のいず
れであっても、バー・コード表示部分に対する走査速度
の補償範囲の優位差を有しているものの、表示環境変化
が著しく、符号のスタート判定が困難となり解読確率が
低下する傾向にある。この様な光学読取装置の代表例と
してバー・コード・リーダーの従来の光学読取装置を第
3図および第4図を参照して説明する。第3図は、従来
のバー・コード・リーダーの光学読取装置のブロック回
路図であり、第4図は、第3図の装置の動作を説明する
図である。
This standard includes regulations regarding display intervals and display ranges. For example, for bar codes, Japanese Industrial Standards [JIS]
X 0502] (first printing issued on April 30, 1985), those listed on pages 3 to 9, and Ameri
can National 5 standard [A
NSI MHIo, 8M-1983], page 8, etc. These displays are not only pen-type but also self-scanning type hand wand models and stationary types among optical reading devices. However, the display environment changes significantly, making it difficult to determine the start of the code, and the probability of decoding tends to decrease. As a typical example of such an optical reading device, a conventional optical reading device for a bar code reader will be explained with reference to FIGS. 3 and 4. FIG. 3 is a block circuit diagram of a conventional optical reading device for a bar code reader, and FIG. 4 is a diagram explaining the operation of the device shown in FIG.

第3図において、媒体上に光反射効率の高いスペースと
光吸収率の高しくバーとの2つの状態で交互に表示され
た符号が光電変換器1で検出されるとともに所定電圧レ
ベルの電気信号に変換され、検出手段である2値化回路
2により例えば光反射率の高い白色のスペースがローレ
ベル(以下“L”と記す)で、また例えば光吸収率の高
い黒色のバーがハイレベル(以下“H”と記す)の読取
信号としての2値化信号に変換される。この2値化信号
が、常開の第1スイツチ3を介してエツジ検出回路4に
与えられるとともに、立下り検出回路5に与えられる。
In FIG. 3, codes alternately displayed on the medium in two states: a space with high light reflection efficiency and a bar with high light absorption rate are detected by the photoelectric converter 1, and an electrical signal of a predetermined voltage level is detected. The binarization circuit 2, which is a detection means, indicates that, for example, a white space with a high light reflectance is at a low level (hereinafter referred to as "L"), and a black bar with a high light absorption rate is at a high level (hereinafter referred to as "L"). (hereinafter referred to as "H") is converted into a binary signal as a read signal. This binarized signal is applied to the edge detection circuit 4 via the normally open first switch 3 and also to the fall detection circuit 5.

この立下り検出回路5は、光電変換回路1がバー・コー
ドの直前に設けられたスタート・マージンの白地に対向
される等により2値化回路2の出力が“H”から“L”
に切り換えられるエツジを検出して短いパルス状のエツ
ジ検出信号を出力する。このエツジ検出信号は、計数回
路6に与えられてこれをリセットさせるとともに入来す
るクロックのカウントを開始させ、また第1自己保持回
路7に与えられて自己保持をセット状態とする。この第
1自己保持回路7のセット状態により、第1スイツチ3
はエツジ検出信号より若干遅れて閉成される。第1スイ
ツチ3の閉成により、エツジ検出手段であるエツジ検出
回路4は2値化回路2から出力される2値化信号の以後
の“L”から“H”、および“H″から“L”に切り換
わるいずれのエツジをも検出して短いパルス状のエツジ
検出信号を出力する。このエツジ検出回路4のエツジ検
出信号は、計数手段である計数回路6に与えられてこれ
をリセットさせるとともにカウントを開始させ、また常
閉の第2スイツチ8と常開の第3スイツチ9に与えられ
、さらに第2自己保持回路lOに与えられて自己保持を
セット状態とする。この第2自己保持回路lOのセット
状態により、第3スイツチ9は若干遅れて閉成され、以
後のエツジ検出信号がビット・イメージ変換回路11に
与えられる。また、計数回路6でエツジ検出信号と次の
エツジ検出信号との間に入来するクロックがカウントさ
れたカウント値が、比較回路12とビット・イメージ変
換回路11に与えられる。また、計数回路6がオーバー
フローしたときは、リセット信号がリセットライン13
に出力され、計数回路6自体がリセットされる。なお、
このとき計数回路6はカウントが開始されない。また、
上記リセットライン13には電源投入時および外部リセ
ット手段で計数回路6をリセットさせるための図示しな
い別のリセット信号が供給される。比較回路12は、カ
ウント値と定数回路14に予め記憶された定数値とを比
較し、カウント値≧定数値のときに信号を出力する。こ
の信号は、常開の第4スイツチ15を介してイメージ・
キャラクタ変換回路16にデコード信号として与えられ
、また第3自己保持回路17に与えられて自己保持をセ
ット状態とする。この第3自己保持回路17のセット状
態により、第2スイツチ8は比較回路12からの信号よ
り若干遅れて開成され、第4スイツチ15は信号より若
干遅れて閉成される。第2スイツチ8が閉成された状態
では、エツジ検出回路4から出力されるエツジ検出信号
がリセットライン13にリセット信号として与えられる
。ビット・イメージ変換回路11は、第3スイツチ9を
介して与えられるエツジ検出信号によりカウンタ値を読
み込み、イメージ信号に変換してイメージ・キャラクタ
変換回路16に出力する。このイメージ・キャラクタ変
換回路16は、イメージ信号をキャラクタ信号に変換し
、第4スイツチ15を介して与えられる信号をデコード
信号として、キャラクタ信号を出力回路18に出力する
。そして、このイメージ・キャラクタ変換回路16は−
、イメージ信号をキャラクタ信号に変換できなければ、
リセット信号をリセットライン13に出力するとともに
、イメージ・キャラクタ変換器16自体がリセットされ
る。また、リセットラインI3からリセット信号が与え
られると内蔵されるメモリーに記憶されているイメージ
信号およびキャラクタ信号がクリアされる。出力回路1
8は、キャラクタ信号を外部機器に適した適宜な出力型
式に変換して出力し、出力が終了するとリセット信号を
リセットライン13に出力する。リセットライン13の
リセット信号は、さらに第1と第2と第3の自己保持回
路7゜to、 17にそれぞれに与えられて自己保持を
リセット状態とする。なお、定数回路14に予め記憶さ
れる定数値は、光電変換器1が通常速度でバー・コード
上を走査されてワイドスペースおよびワイドバーから得
られるカウント値より大きく、しかも光電変換器1の走
査速度の変化を充分に考慮した余裕のある値に設定され
る。また、ビット・イメージ変換回路11とイメージ・
キャラクタ変換回路!6および出力回路18により解読
手段が形成される。
This falling detection circuit 5 detects when the output of the binarization circuit 2 changes from "H" to "L" due to the fact that the photoelectric conversion circuit 1 is opposed to the white background of the start margin provided immediately before the bar code.
Detects the edge that is switched to and outputs a short pulse-shaped edge detection signal. This edge detection signal is applied to the counting circuit 6 to reset it and start counting the incoming clock, and is also applied to the first self-holding circuit 7 to set the self-holding state. Due to the set state of the first self-holding circuit 7, the first switch 3
is closed a little later than the edge detection signal. By closing the first switch 3, the edge detection circuit 4, which is an edge detection means, detects whether the binary signal outputted from the binarization circuit 2 goes from "L" to "H" and from "H" to "L". ” and outputs a short pulse-shaped edge detection signal. This edge detection signal from the edge detection circuit 4 is applied to a counting circuit 6, which is a counting means, to reset it and start counting, and is also applied to a normally closed second switch 8 and a normally open third switch 9. and is further applied to the second self-holding circuit 1O to set the self-holding state. Due to this set state of the second self-holding circuit IO, the third switch 9 is closed with a slight delay, and the subsequent edge detection signal is applied to the bit image conversion circuit 11. Further, a count value obtained by counting the clocks that come in between the edge detection signal and the next edge detection signal by the counting circuit 6 is provided to the comparison circuit 12 and the bit image conversion circuit 11. Also, when the counting circuit 6 overflows, the reset signal is sent to the reset line 13.
The counter circuit 6 itself is reset. In addition,
At this time, the counting circuit 6 does not start counting. Also,
Another reset signal (not shown) is supplied to the reset line 13 when the power is turned on and for resetting the counting circuit 6 by an external reset means. Comparison circuit 12 compares the count value with a constant value stored in advance in constant circuit 14, and outputs a signal when count value≧constant value. This signal is transmitted to the image signal via the fourth switch 15 which is always open.
It is applied as a decode signal to the character conversion circuit 16, and is also applied to the third self-holding circuit 17 to set the self-holding state. Due to this set state of the third self-holding circuit 17, the second switch 8 is opened slightly later than the signal from the comparator circuit 12, and the fourth switch 15 is closed slightly later than the signal. When the second switch 8 is closed, the edge detection signal output from the edge detection circuit 4 is applied to the reset line 13 as a reset signal. The bit/image conversion circuit 11 reads the counter value based on the edge detection signal applied via the third switch 9, converts it into an image signal, and outputs the image signal to the image/character conversion circuit 16. The image/character conversion circuit 16 converts the image signal into a character signal, uses the signal applied via the fourth switch 15 as a decode signal, and outputs the character signal to the output circuit 18. This image/character conversion circuit 16 is -
, if the image signal cannot be converted to a character signal,
At the same time as outputting the reset signal to the reset line 13, the image/character converter 16 itself is reset. Furthermore, when a reset signal is applied from the reset line I3, the image signal and character signal stored in the built-in memory are cleared. Output circuit 1
8 converts the character signal into an appropriate output format suitable for external equipment and outputs it, and outputs a reset signal to the reset line 13 when the output is completed. The reset signal on the reset line 13 is further applied to the first, second, and third self-holding circuits 7 to 17, respectively, to set the self-holding to a reset state. Note that the constant value stored in the constant circuit 14 in advance is larger than the count value obtained from the wide space and wide bar when the photoelectric converter 1 is scanned over the bar code at a normal speed, and It is set to a value with a margin that fully takes into account changes in speed. Furthermore, the bit/image conversion circuit 11 and the image/image conversion circuit 11
Character conversion circuit! 6 and output circuit 18 form the decoding means.

この様なスタート判定処理手順を有する構成は、1ci
84年4月1日CQ出版社発行雑誌トランジスタ技術の
第438頁〜第451頁に記載された[バーコード・シ
ステムの製作]中の表2を用いて説明され、これに一部
加筆修正された内容が1984年7月1日CQ出版社発
行雑誌別冊トランジスタ技術編集部編の第179頁〜第
199頁に記載された[バーコード・システムの製作]
中の表2を用いた説明が開示されている。
A configuration having such a start determination processing procedure is 1ci
It is explained using Table 2 in [Manufacturing of barcode system] described on pages 438 to 451 of the magazine Transistor Technology published by CQ Publishing on April 1, 1984, and some additions and modifications have been made to this. The contents were described on pages 179 to 199 of the separate magazine transistor technology editorial department published by CQ Publishing on July 1, 1984 [Production of barcode system]
An explanation using Table 2 is disclosed.

かかる構成において、第4図(1)の(a)のごとく、
バー・コードの前に充分なスタート・マージンが設けら
れており、バー・コードから充分に離れたスタート位置
から光電変換器1がバー・コード上を走査されたとすれ
ば、z値化回路2から第4図(2)のごとき2値化信号
が出力される。そして、“H”からL”に立下るエツジ
■が立下り検出回路5で検出されて計数回路6のカウン
トが開始される。次に、最初のバーで“L”から“H”
に立上るエツジ■がエツジ検出回路4で検出されるまで
のカウント値t1が定数値より大きく、最初のバーに光
電変換器1が至る前にカウント値≧定数値となるので、
比較回路12から信号が出力され、第3自己保持回路1
7はセット状態とされて第2スイツチ8が開成される。
In such a configuration, as shown in FIG. 4 (1) (a),
If a sufficient start margin is provided in front of the bar code and photoelectric converter 1 is scanned over the bar code from a starting position sufficiently distant from the bar code, then A binary signal as shown in FIG. 4(2) is output. Then, the edge (2) falling from "H" to "L" is detected by the falling detection circuit 5, and the counting circuit 6 starts counting.Next, at the first bar, the edge "2" falls from "L" to "H".
The count value t1 until the rising edge ■ is detected by the edge detection circuit 4 is larger than the constant value, and the count value becomes ≧ the constant value before the photoelectric converter 1 reaches the first bar.
A signal is output from the comparator circuit 12, and the third self-holding circuit 1
7 is set and the second switch 8 is opened.

そこで、エツジ検出回路4からエツジ■でエツジ検出信
号が出力されても、リセットライン13にリセット信号
として与えられない。そして、このエツジ■におけるエ
ツジ検出信号により計数回路6はカウントが開始され、
第2自己保持回路10はセット状態とされて第3スイツ
チ9が閉成され、以後のエツジ検出信号でビット・イメ
ージ変換回路11はエツジと次のエツジとの間に計数回
路6でカウントされたカウント値を順次読み込む。もっ
て、適正なスタート判定がなされる。バー・コード上の
走査が終了すれば、2値化回路2の2値化信号の変化が
なくなり、エツジ検出回路4からエツジ検出信号が出力
されずに計数回路6のカウント値は増加し、カウント値
≧定数値となって比較回路12から信号が出力される。
Therefore, even if an edge detection signal is output from the edge detection circuit 4 at the edge (2), it is not applied to the reset line 13 as a reset signal. Then, the counting circuit 6 starts counting by the edge detection signal at this edge ■.
The second self-holding circuit 10 is placed in the set state, the third switch 9 is closed, and the bit image conversion circuit 11 is counted by the counting circuit 6 between one edge and the next edge by the subsequent edge detection signal. Read count values sequentially. As a result, an appropriate start determination can be made. When the scanning on the bar code is completed, the binary signal of the binary conversion circuit 2 stops changing, the edge detection circuit 4 does not output an edge detection signal, and the count value of the counting circuit 6 increases. When the value is greater than or equal to the constant value, a signal is output from the comparator circuit 12.

ここで、第4スイツチ15は閉成されており、比較回路
12の信号がデコード信号としてイメージ・キャラクタ
変換回路16に与えられてストップ判定がなされる。
Here, the fourth switch 15 is closed, and the signal from the comparison circuit 12 is applied as a decode signal to the image/character conversion circuit 16 to make a stop determination.

(発明が解決しようとする問題点) しかしながら、i4図(1)の(b)のどとく、バー・
コードの前に汚れDがあると、バー・コードから充分に
離れたスタート位置から光電変換器1がバー・コード上
を走査されても、適正なスタート判定ができない。
(Problem to be solved by the invention) However, the throat, bar and
If there is dirt D in front of the code, a proper start determination cannot be made even if the photoelectric converter 1 is scanned over the bar code from a starting position sufficiently distant from the bar code.

第4図(1)の(b)のごとき光電変換器1の走査によ
り、2値化回路2から第4図(3)のごとき2値化信号
が出力される。そして、エツジω′が立下り検出回路5
で検出されて計数回路6のカウントが開始され、次のエ
ツジ■′がエツジ検出回路4で検出されるまでのカウン
ト値tbIが定数値より小さい。このため比較回路12
から未だ信号が出力されて゛おらず第3自己保持回路1
7はリセット状態のままで第2スイツチ8は閉成のまま
である。そこで、エツジ■′でエツジ検印回路4から出
力されるエツジ検出信号が、第2スイツチ8を介してリ
セットライン13にリセット信号として与えられ、計数
回路6のカウントを停止し、また第1と第2の自己保持
回路7.IOはリセットされる。したがフて、エツジ■
′ と次のエツジ■′の間のカウント値は、ビット・イ
メージ変換回路11に読み込まれない。さらに、エツジ
■′が立下り検出回路5で検出されて計数回路6のカウ
ントが開始されるが、次のエツジΦ′がエツジ検出回路
4で検出されるまでのカウント値tb2が定数値より小
さければ、上記と同様にエツジ■′のエツジ検出信号が
リセット信号としてリセットライン13に与えられ、こ
のエツジ■′ と次のエツジ■′の間のカウント値は、
ビット・イメージ変換回路11に読み込まれない。この
ように、バー・コードの前に汚れD等があると充分なス
タート・マージンが設けられたことにならず、適正なス
タート判定ができない。
By scanning the photoelectric converter 1 as shown in FIG. 4(1)(b), a binary signal as shown in FIG. 4(3) is outputted from the binarizing circuit 2. Then, the edge ω' falls in the falling detection circuit 5.
is detected, the counting circuit 6 starts counting, and the count value tbI until the next edge (2) is detected by the edge detection circuit 4 is smaller than the constant value. Therefore, the comparison circuit 12
No signal is output from the third self-holding circuit 1 yet.
7 remains in the reset state and the second switch 8 remains closed. Therefore, the edge detection signal outputted from the edge verification circuit 4 at the edge ■' is applied as a reset signal to the reset line 13 via the second switch 8, stopping the counting of the counting circuit 6, and 2 self-holding circuit 7. IO is reset. However, Etsuji■
The count value between ' and the next edge ■' is not read into the bit image conversion circuit 11. Furthermore, the edge ■' is detected by the falling detection circuit 5 and the counting circuit 6 starts counting, but if the count value tb2 until the next edge Φ' is detected by the edge detection circuit 4 is smaller than the constant value. For example, similarly to the above, the edge detection signal of edge ■' is applied to the reset line 13 as a reset signal, and the count value between this edge ■' and the next edge ■' is
It is not read into the bit image conversion circuit 11. In this way, if there is dirt D or the like in front of the bar code, a sufficient start margin will not be provided, and proper start determination will not be possible.

また、第4図(1)の(C)のごとく、バー・コードに
近いスタート位置から光電変換器1がバー・コード上を
走査されても適正なスタート判定ができない。これは、
第4図(1)の(C)のごとき光電変換器1の走査によ
り、2値化回路2から第4図(4)のごとき2値化信号
が出力される。そして、エツジ■″と次のエツジ■″と
の間にカウントされるカウント値tcが定数値より小さ
く、上記と同様にスタート判定ができない。
Furthermore, as shown in FIG. 4(1)(C), even if the photoelectric converter 1 scans the bar code from a starting position close to the bar code, a proper start determination cannot be made. this is,
By scanning the photoelectric converter 1 as shown in FIG. 4(1) (C), a binary signal as shown in FIG. 4(4) is output from the binarizing circuit 2. Then, the count value tc counted between the edge ■'' and the next edge ■'' is smaller than the constant value, and the start determination cannot be made in the same way as above.

ところで、バー・コード面が汚れていると、バーおよび
スペースの幅が誤って検出され、適正なバー・コードの
読み取りができない。そこで、従来のバー・コード・リ
ーダーの光学読取装置は、バー・コードの直前に設けら
れた所定幅のスペースに汚れDがなければ、バー・コー
ド面も汚れていないと推測する。このために、バー・コ
ードの直前にスタート・マージンを設け、このスタート
・マージンを光電変換器1で走査するように構成される
。そして、このスタート・マージンとして、ナローバー
の10倍以上の幅のスペースが設けられる。
By the way, if the bar code surface is dirty, the widths of bars and spaces will be detected incorrectly, making it impossible to read the bar code properly. Therefore, the optical reading device of the conventional bar code reader assumes that if there is no dirt D in the space of a predetermined width provided immediately in front of the bar code, the bar code surface is also free of dirt. For this purpose, a start margin is provided immediately before the bar code, and the photoelectric converter 1 is configured to scan this start margin. As this start margin, a space with a width more than 10 times the narrow bar is provided.

したがって、従来のバー・コード・リーダーの光学読取
装置にあっては、充分な幅のスター、ト・マージンを設
ける分だけ、バー・コードを密に配置することができな
いという問題点がある。
Therefore, the optical reading device of the conventional bar code reader has a problem in that the bar codes cannot be arranged densely enough to provide a sufficiently wide star margin.

なお、バー・コード・リーダーの光学読取装置の他の従
来例として、光電変換器1の走査開始による2値化信号
の立下りから最初のバーによる立上りまでの時間に応じ
た値と、最初のバーの幅を経過する時間に応じた値にあ
る定数値を乗算した積とを比較してスタート判定を行な
うものもあるが、走査開始のスタート位置から最初のバ
ーまである幅のスタート・マージンとしてのスペースが
やはり必要である。
In addition, as another conventional example of an optical reading device for a bar code reader, there is a value corresponding to the time from the fall of the binary signal due to the start of scanning of the photoelectric converter 1 to the rise due to the first bar, and Some methods determine the start by comparing the width of the bar with the product of a constant value multiplied by a value corresponding to the elapsed time. space is still required.

本発明の目的は、上記した従来のバー・コード・リーダ
ーの光学読取装置の問題点を解決すべくなされたもので
、バー・コードの前のスタート・マージンが短くてもス
タート判定のできるバー・コード・リーダーの光学読取
装置を提供することにある。
An object of the present invention is to solve the problems of the optical reading device of the conventional bar code reader described above. An object of the present invention is to provide an optical reading device for a code reader.

(問題点を解決するための手段) かかる目的を達成するために、本発明のバー・コード・
リーダーの光学読取装置は、媒体上に表示された符号に
応じた読取信号を出力する検出手段と、前記読取信号の
エツジを検出するエツジ検出手段と、このエツジ検出手
段で検出するエツジ毎にカウントを開始する計数手段と
、この計数手段でカウントを開始されたカウント値が前
記符号の許容最大幅を許容最小幅で割った商と前記計数
手段で直前のエツジ間にカウントされたカウント値との
積置上であるとき、または前記計数手段でカウントを開
始されたカウント値を前記直前のエツジ間にカウントさ
れたカウント値で割った商が前記符号の許容最大幅を許
容最小幅で割った高恩上であるとき、または前記計数手
段でカウントを開始されたカウント値を前記符号の許容
最大幅を許容最小幅で割った商で割った商が前記直前の
エツジ間にカウントされたカウント値以上であるときに
、前記カウント値を読み込み解読する解読手段にリセッ
ト信号を出力する判定手段と、を有して構成されている
(Means for solving the problem) In order to achieve this purpose, the bar code of the present invention
The optical reading device of the reader includes a detection means that outputs a read signal according to a code displayed on the medium, an edge detection means that detects an edge of the read signal, and a count for each edge detected by the edge detection means. a counting means for starting counting, and a count value started by this counting means that is a quotient of the maximum allowable width of the code divided by the minimum allowable width and the count value counted between the immediately preceding edges by the counting means. or the quotient obtained by dividing the count value started by the counting means by the count value counted between the immediately preceding edges is the height of the maximum allowable width of the code divided by the minimum allowable width. or the quotient obtained by dividing the count value started by the counting means by the quotient of the maximum allowable width of the code divided by the minimum allowable width is greater than or equal to the count value counted between the previous edges. and determining means for outputting a reset signal to the decoding means for reading and decoding the count value when .

(作用) したがって、計数手段でカウントが開始されたカウント
値と、直前の符号の幅に応じたエツジ間でカウントされ
たカウント値との数値関係により、解読手段にリセット
信号を与えて新たにカウント値を解読手段に読み込ませ
、または解読手段にリセット信号を与えることなくカウ
ント値の読み込みを継続させる。
(Function) Therefore, based on the numerical relationship between the count value at which counting was started by the counting means and the count value counted between edges according to the width of the immediately preceding code, a reset signal is given to the decoding means to start a new count. To read a value into a decoding means or to continue reading a count value without giving a reset signal to the decoding means.

(実施例) 以下、本発明の実施例を第1図および第2図を参照して
説明する。第1図は、本発明のバー・コード・リーダー
の光学読取装置のブロック回路図であり、第2図は、第
1図の装置の動作を説明する図である。第1図において
、第3図と同一回路ブロックには、同一符号を付けて重
複する説明を省略する。
(Example) Hereinafter, an example of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 is a block circuit diagram of an optical reading device for a bar code reader of the present invention, and FIG. 2 is a diagram illustrating the operation of the device of FIG. 1. In FIG. 1, circuit blocks that are the same as those in FIG. 3 are given the same reference numerals and redundant explanations will be omitted.

第1図において、z値化回路2から出力される2値化信
号が常開の第1スイツチ3を介してエツジ検出回路4に
与えられるとともに、スペース・バー・エツジ検出回路
20に与えられる。このスペース・バー・エツジ検出回
路20は、光電変換器1がスペースからバーに至るとき
に2値化回路2から出力されるL″から“H″に切り換
えられるエツジを検出して短いパルス状のエツジ検出信
号を出力する。このエツジ検出信号は、計数回路6に与
えられてこれをリセットさせるとともにカウントを開始
させ、また自己保持回路7に与えられて自己保持をセッ
ト状態とする。この自己保持回路7のセット状態により
、第1スイツチ3がエツジ検出信号より若干遅れて閉成
される。第1スイツチ3の閉成により、星ツジ検出回路
4は、以後の2値化信号の“H”から“L”、および“
L”から“H”に切り換わるいずれのエツジをも検出し
て短いパルス状のエツジ検出信号を出力する。このエツ
ジ検出信号は、計数回路6に与えられてこれをリセット
させるとともにカウントを開始させ、またエツジ計数回
路21と記憶手段である記憶回路22およびビット・イ
メージ変換回路11に与えられる。計数回路6のカウン
ト値は、ビット・イメージ変換回路11と乗算手段であ
る乗算回路23と第1と第2の比較回路24.25に与
えられる。乗算回路23は例えばワイドバーの許容最大
幅をナロースペースの許容最小幅で割った商より大きな
定数値、例えば定数8をカウント値に乗算し、その積を
切換回路26に出力する。この切換回路26は、乗算回
路23から積が与えられるとともに、第1定数回路27
から第1定数値が与えられ、通常は積が選択されるが、
リセットライン13からリセット信号が与えられたとき
のみ第1定数値を選択する。なお、この第1定数値は、
計数回路6の最大カウント値以上に予め設定される。切
換回路26により選択された値は、記憶回路22に与え
られ、エツジ検出回路4からのエツジ検出信号およびリ
セットライン13からのリセット信号が与えられる度に
、記憶値を更新して第1比較回路24に出力する。この
第1比較回路24は、計数回路6でカウントが開始され
た新たなカウント値と記憶値とを比較し、新たなカウン
ト値≧記憶値のとき信号を出力する。この信号は、常閉
の第2スイツチ28を介してイメージ・キャラクタ変換
回路16およびリセットライン13にリセット信号とし
て与えられる。エツジ計数回路21は、エツジ検出回路
4のエツジ検出信号を例えば3つカウントするとセット
状態となって、第2スイツチ28を開成するとともに常
開の第3スイツチ29を閉成し、リセットライン13か
らのリセット信号でリセットされる。第2比較回路25
は、第2定数回路30からの第2定数値とカウント値と
を比較し、カウント値≧第2定数値のとき信号を出力す
る。この信号が、第3スイツチ29を介してイメージ・
キャラクタ変換回路16にデコード信号として与えられ
る。なお、第2定数値は、光電変換器1が通常速度でバ
ー・コード上を走査されてワイドバーから得られるカウ
ント値よりも大きく、しかも光電変換器1の走査速度の
変化を充分に考慮した余裕のある値に予め設定される。
In FIG. 1, a binary signal outputted from a z-value conversion circuit 2 is applied to an edge detection circuit 4 via a normally open first switch 3, and is also applied to a space bar edge detection circuit 20. This space/bar/edge detection circuit 20 detects the edge that is switched from "L" to "H" output from the binarization circuit 2 when the photoelectric converter 1 goes from a space to a bar, and generates a short pulse-like edge. An edge detection signal is output. This edge detection signal is applied to the counting circuit 6 to reset it and start counting, and is also applied to the self-holding circuit 7 to set the self-holding. This self-holding Depending on the set state of the circuit 7, the first switch 3 is closed with a slight delay from the edge detection signal.By closing the first switch 3, the star/edge detection circuit 4 detects the "H" level of the subsequent binary signal. to “L”, and “
It detects any edge that switches from "L" to "H" and outputs a short pulse-like edge detection signal.This edge detection signal is applied to the counting circuit 6 to reset it and start counting. , is also given to an edge counting circuit 21, a memory circuit 22 serving as a memory means, and a bit image converting circuit 11. is given to the second comparison circuits 24 and 25. The multiplication circuit 23 multiplies the count value by a constant value, for example, a constant 8, which is larger than the quotient of the maximum allowable width of the wide bar divided by the minimum allowable width of the narrow space, and The product is output to the switching circuit 26.The switching circuit 26 receives the product from the multiplier circuit 23, and also receives the product from the first constant circuit 27.
The first constant value is given by , and the product is usually selected, but
The first constant value is selected only when a reset signal is applied from the reset line 13. Note that this first constant value is
It is set in advance to be greater than the maximum count value of the counting circuit 6. The value selected by the switching circuit 26 is given to the memory circuit 22, and each time the edge detection signal from the edge detection circuit 4 and the reset signal from the reset line 13 are given, the stored value is updated and the value is sent to the first comparison circuit. Output to 24. The first comparison circuit 24 compares the new count value whose counting has been started by the counting circuit 6 with the stored value, and outputs a signal when the new count value≧the stored value. This signal is applied as a reset signal to the image/character conversion circuit 16 and the reset line 13 via the normally closed second switch 28. When the edge counting circuit 21 counts, for example, three edge detection signals from the edge detection circuit 4, it enters the set state, opens the second switch 28, closes the normally open third switch 29, and connects the reset line 13 to the set state. It is reset by the reset signal. Second comparison circuit 25
compares the second constant value from the second constant circuit 30 with the count value, and outputs a signal when the count value≧the second constant value. This signal is sent to the image via the third switch 29.
It is given to the character conversion circuit 16 as a decode signal. The second constant value is larger than the count value obtained from the wide bar when the photoelectric converter 1 scans the bar code at a normal speed, and also takes into account changes in the scanning speed of the photoelectric converter 1. It is preset to a value with some margin.

また、記憶回路22と乗算回路23および第1比較回路
24を含んで判定手段が形成される。
Furthermore, a determining means is formed including the memory circuit 22, the multiplication circuit 23, and the first comparison circuit 24.

かかる構成において、第2図(1)の(a)のごとく、
バー・コードの直前に充分なスタート・マージンが設け
られており、充分に離れたスタート位置から光電変換器
1がバー−コード上を走査されたとすれば、2値化回路
2から第2図(2)のごとき2値化信号が出力される。
In such a configuration, as shown in FIG. 2 (1) (a),
If a sufficient start margin is provided just before the bar code, and the photoelectric converter 1 is scanned over the bar code from a sufficiently distant start position, then the binarization circuit 2 will be able to scan the bar code as shown in FIG. A binary signal as shown in 2) is output.

そして、最初のバーによる“L”から“H”に立上がる
エツジ■がスペース・バー・エツジ検出回路20で検出
されて計数回路6のカウントが開始される。この最初の
バーが終了してスペースに移行するH”から“L″に変
化するエツジ■がエツジ検出回路4で検出されるまでの
カウント値talは、第1定数値より小さく第1比較回
路24から信号は出力されない。そして、エツジ■でこ
のカウント値上〇に定数8が乗算された積が記憶回路2
2に記憶される。次にスペースによるエツジ■と次のエ
ツジ■との間がカウントされ、このスペースによる新た
なカウント値t42と記憶回路22に記憶された8×t
aIが、第1比較回路24で比較されるが、正常なバー
・コードであればtax<8Xta+であって第1比較
回路24は信号を出力しない。このようにしてスタート
が適正に行なわわたと判定される。さらに、エツジ検出
回路4が3つのエツジ検出信号を出力すると、第2スイ
ツチ28が開成されるとともに第3スイツチ29が閉成
されて以後はストップの判定が行なわれる。このストッ
プの判定は、バー・コード上の走査が終了し、最後のバ
ーの直後に設けられたストップ・マージンによりエツジ
の検出がなくなり計数回路6のカウント値が増加し、第
2定数回路30の第2定数値より大きくなると、第2比
較回路25よりデコード信号がイメージ・キャラクタ変
換回路16に与えられる。そして、このデコード信号に
よりキャラクタ信号が出力され、さらに出力回路18で
適宜な出力型式に変換されて出力される。この出力回路
18による出力が完了すれば、リセット信号がリセット
ライン13に出力されて初期の状態に復帰する。
Then, the space bar edge detection circuit 20 detects the edge (2) rising from "L" to "H" due to the first bar, and the counting circuit 6 starts counting. The count value tal until the edge (2) which changes from "H" to "L" at the end of this first bar and transitions to a space is detected by the edge detection circuit 4 is smaller than the first constant value and the first comparison circuit 24 No signal is output from .Then, at edge ■, the product of this count value 〇 multiplied by constant 8 is stored in memory circuit 2.
2. Next, the space between the edge ■ and the next edge ■ is counted, and a new count value t42 due to this space and 8×t stored in the memory circuit 22 are counted.
aI is compared in the first comparison circuit 24, but if it is a normal bar code, tax<8Xta+, and the first comparison circuit 24 does not output a signal. In this way, it is determined that the start has been properly performed. Furthermore, when the edge detection circuit 4 outputs three edge detection signals, the second switch 28 is opened and the third switch 29 is closed, and thereafter a stop determination is made. This stop judgment is made when the scanning on the bar code is completed, the edge is no longer detected due to the stop margin provided immediately after the last bar, and the count value of the counting circuit 6 increases, and the count value of the second constant circuit 30 increases. When it becomes larger than the second constant value, the second comparison circuit 25 provides a decode signal to the image/character conversion circuit 16 . Then, a character signal is output based on this decoded signal, and further converted into an appropriate output format by the output circuit 18 and output. When the output by the output circuit 18 is completed, a reset signal is output to the reset line 13 and the initial state is restored.

また、第2図(1)の(b)のごとく、バー・コードの
前に汚れDがあると、第2図(3)のごとき2値化信号
が出力される。そして、汚れDで2値化信号が“L”か
ら“H”に立上り、そのエツジ■′がスペース・バー・
エツジ検出回路20で検出されて計数回路6のカウント
が開始される。汚れDがなくなり、“H”から“L”に
切り換わるエツジ■′がエツジ検出回路4で検出される
までのカウント値tbjは、第1定数値より小さく第1
比較回W¥24から信号は出力されない。そして、エツ
ジ■′でこのカウント値tblに定数8が乗算された積
が記憶回路22に記憶される。次に、汚れDから最初の
バーに至るまでのスペースが広く、カウント値tb2が
大きくてtb2≧8Xtb、となれば第1比較回路24
からリセット信号がリセットライン13に出力されると
ともに、イメージ・キャラクタ変換回路16がクリアさ
れて初期の状態に復帰する。さらに、最初のバーのエツ
ジ■′がスペース・バー・エツジ検出回路20で検出さ
れてカウント回路6のカウントが開始され、汚れDがな
いときと同様の動作がなされ、エツジ■′と次のエツジ
■′との間のカウント値tb3に定数8を乗算した積と
、エツジ■′ と次のエツジ■′ との間のカウント値
tb4が比較され、全く汚れがない場合と同様に適正な
スタートと判定される。なお、上記の定数は、2値レベ
ル・バー・コード表示用のものにおいて“8”として説
明したが、マルチレベル・バー・コード表示(3〜n値
)であっても同様に例えばワイドバーの許容最大幅とナ
ロースペースの許容最小幅とに基づいた値を適宜選択し
て設定すれば良い。
Further, if there is dirt D in front of the bar code as shown in FIG. 2(1)(b), a binary signal as shown in FIG. 2(3) is output. Then, due to the dirt D, the binary signal rises from "L" to "H", and the edge
The edge detection circuit 20 detects this, and the counting circuit 6 starts counting. The count value tbj until the edge ■', which changes from "H" to "L" after the dirt D disappears, is detected by the edge detection circuit 4 is smaller than the first constant value and is the first constant value.
No signal is output from the comparison time W¥24. Then, at edge ■', the product obtained by multiplying this count value tbl by a constant 8 is stored in the storage circuit 22. Next, if the space from the stain D to the first bar is wide and the count value tb2 is large and tb2≧8Xtb, the first comparison circuit 24
A reset signal is output to the reset line 13, and the image/character conversion circuit 16 is cleared to return to its initial state. Furthermore, the edge ■' of the first bar is detected by the space bar edge detection circuit 20, and the counting circuit 6 starts counting, and the same operation as when there is no dirt D is performed, and the edge ■' and the next edge The product obtained by multiplying the count value tb3 between edge ■' and the next edge ■' by a constant 8 is compared with the count value tb4 between edge ■' and the next edge ■'. It will be judged. Note that the above constant was explained as "8" for binary level bar code display, but it can also be used for multilevel bar code display (3 to n values), for example, for wide bar. It is sufficient to appropriately select and set a value based on the maximum allowable width and the minimum allowable narrow space width.

このように、汚れDを判定するのは、汚れDの幅から得
られるカウント値tblに定数を乗算した積と、その後
に続くスペースの幅から得られる新たなカウント値tb
2とを比較して行なわれるので、汚れDの幅が細いほど
相対的にスペースの幅が広くなり確実に汚れDと判定で
きる。これは、バーの幅はどの汚れであればバー・コー
ドの視認により容易に気付いて取り除くこともできるが
、細かい汚れが気付かれずにバーとして読み取られるの
を防止でき、バー・コードの読み取りの信頼性を向上さ
せ得る。
In this way, the stain D is determined by multiplying the count value tbl obtained from the width of the stain D by a constant, and the new count value tb obtained from the width of the space that follows.
2, the smaller the width of the stain D is, the wider the space is relatively, so it can be determined to be the stain D with certainty. This means that while any contamination can be easily noticed and removed by visual inspection of the bar code, the width of the bar prevents fine contamination from being read as a bar unnoticed and increases the reliability of bar code reading. It can improve sex.

この汚れ等の一般的な表示環境の他に、走査される前方
表面に走査開始位置を光吸収率が高い線で例えば正方形
の枠(例えば、(株)東京ニュース通信社発行の週間雑
誌“週間TVガイド9月19日号” (1986/9/
19発行)第100頁に記載等の様な)が表示された新
たな表示環境であっても、この枠の後に少なくとも枠の
幅と定数との積より大きな光反射部があれば、上述した
汚れ等と同様に枠をバー・コードの一部でないものとす
る判定がなされる。
In addition to the general display environment such as dirt, etc., the scan start position is marked on the front surface to be scanned with a line with high light absorption rate, such as a square frame (for example, the weekly magazine "Weekly" published by Tokyo News Tsushinsha Co., Ltd.). TV Guide September 19th issue” (1986/9/
19 (Issue)) is displayed on page 100), if there is a light reflecting part after this frame that is at least larger than the product of the width of the frame and the constant, the above-mentioned Similar to stains, etc., the frame is determined to be not part of the bar code.

さらに、第2図(1)の(c)のごとく、バー・コード
に近いスタート位置から光電変換器1が走査されると、
第2図(4)のごとき2値化信号が出力される。そして
、エツジ■″がスペース・バー・エツジ検出回路20で
検出され、順次エツジ■″および次のエツジ■′がエツ
ジ検出回路4で検出され、そのエツジ■″と次のエツジ
■″おの間のカウント値telとエツジ■″と次のエツ
ジ■“との間のカウント値te2とから、第2図(2)
の2値化信号と同様に、適正なスタート判定がなされる
Furthermore, as shown in FIG. 2(1)(c), when the photoelectric converter 1 is scanned from a starting position close to the bar code,
A binary signal as shown in FIG. 2 (4) is output. Then, the edge ■'' is detected by the space bar edge detection circuit 20, and the edge ■'' and the next edge ■'' are sequentially detected by the edge detection circuit 4, and between that edge ■'' and the next edge ■'' Figure 2 (2)
Similarly to the binary signal, an appropriate start determination is made.

なお、上記実施例では、スペースを白色として“L”を
出力させ、バーを黒色として“H“を出力させるように
したが、これに限られない。そして、スペース・バー・
エツジ検出回路20は、スペースからバーへ移行するエ
ツジを検出してエツジ検出パルスを出力するものであれ
ば良い。
In the above embodiment, "L" is output with the space being white, and "H" is output with the bar being black, but the present invention is not limited to this. And the space bar
The edge detection circuit 20 may be of any type as long as it detects an edge transitioning from a space to a bar and outputs an edge detection pulse.

また、上記実施例では、スタートの判定として計数回路
6で直前のエツジ間にカウントされたカウント値と定数
の積が記憶回路z2に記憶され、この記憶された積が第
1比較回路24に与えられるようにしたが、計数回路6
で直前のエツジ間でカウントさ九たカウント値を記憶回
路に記憶させ、この直前のカウント値に乗算回路で定数
を乗算した積を第1比較回路24に与えるようにしても
良い。
Further, in the above embodiment, the product of the count value counted between the immediately preceding edges by the counting circuit 6 and a constant is stored in the storage circuit z2 as a start determination, and this stored product is applied to the first comparison circuit 24. However, the counting circuit 6
The count value counted between the immediately preceding edges may be stored in a storage circuit, and the product obtained by multiplying this immediately preceding count value by a constant in a multiplication circuit may be provided to the first comparator circuit 24.

そして、上記実施例では、計数回路6でカウントが開始
されたカウント値が直前のエツジ間にカウントされたカ
ウント値と定数との積置上になったときに第1比較回路
24からリセット信号を出力させるようにしたが、計数
回路6でカウントが開始されたカウント値を直前のエツ
ジ間にカウントされたカウント値で割った商が定数以上
となったとき、または計数回路6でカウントと開始され
たカウント値を定数で割った商が直前のエツジ間にカウ
ントされたカウント値以上となったときにリセット信号
を解読手段に出力させるように構成しても良い。
In the above embodiment, when the count value at which the counting circuit 6 has started counting is on the product of the count value counted between the immediately preceding edges and the constant, the first comparator circuit 24 outputs a reset signal. However, when the quotient obtained by dividing the count value at which the counting circuit 6 started counting by the count value counted between the immediately preceding edges becomes greater than a constant, or when the counting circuit 6 starts counting. The decoder may be configured to output a reset signal to the decoding means when the quotient obtained by dividing the counted value by a constant becomes equal to or greater than the count value counted between the immediately preceding edges.

さらに、上記実施例では、バー・コード表示を対象とし
て説明したが、−数文字やマーク記号等が最小幅および
最大幅の規定に従って表示されるならば、計数手段でカ
ウントを開始されたカウント値と、直前の符号の幅に応
じたエツジ間でカウントされたカウント値との数値関係
により、スタート判定をして解読手段をリセットし、ま
たはリセットしないことができ、解読確率の向上が図れ
る。
Furthermore, although the above embodiments have been described with reference to bar code display, if - several characters, marks, etc. are displayed in accordance with the minimum width and maximum width regulations, then the count value that is started by the counting means Based on the numerical relationship between this and the count value counted between edges according to the width of the immediately preceding code, it is possible to make a start determination and reset the decoding means or not to reset it, thereby improving the decoding probability.

そしてさらに、計数回路6のカウント値を一旦全て記憶
装置に記憶させ、後でカウント値を読み出してスタート
判定処理を行なう装置であっても、同様に解読確率の向
上が図れる。ここで、文字等のスタート判定にあっては
、文字の表示幅の許容最大幅とこの文字の表示間隔の許
容最小幅とに基づいて判定された定数に基づいて判定を
行ない、文字列全てのデータを一旦一文字分のデータと
して編集した後にスタート判定を行う処理とすることが
望ましい。
Further, even in a device in which all the count values of the counting circuit 6 are temporarily stored in a storage device and the count values are read out later and the start determination process is performed, the decoding probability can be similarly improved. Here, when determining the start of characters, etc., the determination is made based on a constant determined based on the maximum permissible display width of the character and the minimum permissible width of the display interval of this character. It is desirable that the process performs the start determination after the data is once edited as one character's worth of data.

(発明の効果) 以上説明したように、本発明の光学読取装置によれば、
計数手段でカウントが開始されたカウント値と、直前の
符号の幅に応じたエツジ間でカウントされたカウント値
との数値関係により、スタート判定をして不適正であれ
ば解読手段にリセット信号を与えるので、°適正でない
符号に応じたカウント値が解読手段に読み込まれれば直
ちにリセットされて新たにカウント値の読み込みがなさ
れ、解読手段に読み込まれた情報の解読確率が高い。ま
た、スタートが適正か不適正であるかの判定は、符号を
検出手段で読み取る走査速度に影響を受けず、しかも走
査速度に応じた時間で判定がなされる。さらに、表示さ
れる符号の前に設けるスペース等が従来のこの種の装置
に比較して狭くて足り、それだけ汚れ等による読み取り
誤動作の発生が減少するとともに、高密度に表示された
符号の読み取りが可能であるという優れた効果を奏する
(Effects of the Invention) As explained above, according to the optical reading device of the present invention,
The start is judged based on the numerical relationship between the count value at which counting was started by the counting means and the count value counted between edges according to the width of the immediately preceding code, and if it is incorrect, a reset signal is sent to the decoding means. Therefore, if a count value corresponding to an incorrect code is read into the decoding means, it is immediately reset and a new count value is read, and the probability of decoding the information read into the decoding means is high. Further, the determination as to whether the start is proper or improper is not affected by the scanning speed at which the code is read by the detection means, and is determined at a time corresponding to the scanning speed. Furthermore, the space provided in front of the displayed code is narrower than in conventional devices of this type, which reduces the occurrence of reading errors due to dirt, etc., and makes it easier to read codes displayed in high density. It has the excellent effect of being possible.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明のバー・コード・リーダーの光学読取
装置のブロック回路図であり、第2図は、第1図の装置
の動作を説明する図であり、第3図は、従来のバー・コ
ード・リーダーの光学読取装置のブロック回路図であり
、第4図は、第3図の装置の動作を説明する図である。 2:2値化回路、 4:エツジ検出回路、6:計数回路、 11:ビット・イメージ変換回路、 16:イメージ・キャラクタ変換回路、18:出力回路
、22:記憶回路、 23:乗算回路、24:第1比較回路。 特許出願人 アルプス電気株式会社
FIG. 1 is a block circuit diagram of an optical reading device for a bar code reader according to the present invention, FIG. 2 is a diagram explaining the operation of the device in FIG. 1, and FIG. 4 is a block circuit diagram of an optical reading device of a bar code reader, and FIG. 4 is a diagram explaining the operation of the device of FIG. 3. FIG. 2: Binarization circuit, 4: Edge detection circuit, 6: Counting circuit, 11: Bit/image conversion circuit, 16: Image/character conversion circuit, 18: Output circuit, 22: Memory circuit, 23: Multiplication circuit, 24 :First comparison circuit. Patent applicant Alps Electric Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] (1)媒体上に表示された符号に応じた読取信号を出力
する検出手段と、前記読取信号のエッジを検出するエッ
ジ検出手段と、このエッジ検出手段で検出するエッジ毎
にカウントを開始する計数手段と、この計数手段でカウ
ントを開始されたカウント値が前記符号の許容最大幅を
許容最小幅で割った商と前記計数手段で直前のエッジ間
にカウントされたカウント値との積以上であるとき、ま
たは前記計数手段でカウントを開始されたカウント値を
前記直前のエッジ間にカウントされたカウント値で割っ
た商が前記符号の許容最大幅を許容最小幅で割った商以
上であるとき、または前記計数手段でカウントを開始さ
れたカウント値を前記符号の許容最大幅を許容最小幅で
割った商で割った商が前記直前のエッジ間にカウントさ
れたカウント値以上であるときに、前記カウント値を読
み込み解読する解読手段にリセット信号を出力する判定
手段と、を有することを特徴とする光学読取装置。
(1) A detection means that outputs a read signal according to a code displayed on the medium, an edge detection means that detects an edge of the read signal, and a counter that starts counting for each edge detected by the edge detection means. means, and the count value started by the counting means is greater than or equal to the product of the quotient of the maximum allowable width of the code divided by the minimum allowable width and the count value counted between the immediately preceding edges by the counting means. or when the quotient obtained by dividing the count value started by the counting means by the count value counted between the immediately preceding edges is greater than or equal to the quotient obtained by dividing the maximum allowable width of the code by the minimum allowable width, or when the quotient obtained by dividing the count value started by the counting means by the quotient of the maximum allowable width of the code divided by the minimum allowable width is greater than or equal to the count value counted between the immediately preceding edges; 1. An optical reading device comprising: determination means for outputting a reset signal to decoding means for reading and decoding count values.
(2)前記判定手段が、前記計数手段でカウントされた
カウント値に、前記符号の許容最大幅を許容最小幅で割
った商以上の定数値を乗算する乗算手段と、この乗算手
段から出力される積を記憶する記憶手段と、この記憶手
段に記憶された記憶値と前記計数手段でカウントが開始
されたカウント値とを比較する比較手段と、を有するこ
とを特徴特許請求の範囲第1項記載の光学読取装置。
(2) The determination means includes a multiplication means for multiplying the count value counted by the counting means by a constant value greater than or equal to the quotient of the maximum allowable width of the code divided by the minimum allowable width, and an output from the multiplication means. Claim 1, characterized in that it has a storage means for storing the product obtained by the counting means, and a comparison means for comparing the stored value stored in the storage means with the count value at which counting is started by the counting means. The optical reader described.
JP62275036A 1987-10-30 1987-10-30 Optical reader Pending JPH01116776A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP62275036A JPH01116776A (en) 1987-10-30 1987-10-30 Optical reader
US07/208,182 US4859840A (en) 1987-10-30 1988-06-16 Code reading apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62275036A JPH01116776A (en) 1987-10-30 1987-10-30 Optical reader

Publications (1)

Publication Number Publication Date
JPH01116776A true JPH01116776A (en) 1989-05-09

Family

ID=17549972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62275036A Pending JPH01116776A (en) 1987-10-30 1987-10-30 Optical reader

Country Status (1)

Country Link
JP (1) JPH01116776A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE37635E1 (en) * 1993-05-10 2002-04-09 Psc Inc. System for enabling decoding of bar code and other symbols with a digital microcomputer connected via the input/output port thereof to the scanner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
USRE37635E1 (en) * 1993-05-10 2002-04-09 Psc Inc. System for enabling decoding of bar code and other symbols with a digital microcomputer connected via the input/output port thereof to the scanner

Similar Documents

Publication Publication Date Title
CA1159567A (en) Codabar label reader
EP0498678B1 (en) High speed scan bar code reader which can read more than one type of bar code
JP2616921B2 (en) Label identification device
EP0262924B1 (en) Method and apparatus for bar code data autodiscrimination
US4239151A (en) Method and apparatus for reducing the number of rejected documents when reading bar codes
JPH07101437B2 (en) Code reader
US4859840A (en) Code reading apparatus
CA2044935C (en) Bar-code reading apparatus
JPH01116776A (en) Optical reader
US3758752A (en) Automatic vehicle identification
JPH01116777A (en) Final display deciding circuit
JP2677805B2 (en) Code reader
JP2677806B2 (en) Code reader
US5270524A (en) Automatic discriminating and decoding apparatus
JP3234405B2 (en) Bar code reader and method
JP2923375B2 (en) Barcode reader
KR930002341B1 (en) Bar code decoder using digital signal processing chip
JPS6231485A (en) Bar code reader
JPH06195497A (en) Bar code decoder
KR970010372B1 (en) Similar character reading system of barcode decoder
KR940008244Y1 (en) B6zs coding error detecting circuit
JPH0782512B2 (en) Code reader
JPH01216491A (en) Code reader
JP2742140B2 (en) Optical reader
JPH05165996A (en) Bar code reader